Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 dot in module names throws off VA parser
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

.oisyn
Tomato Guru

162 Posts

Posted - Oct 25 2022 :  6:39:58 PM  Show Profile  Reply with Quote
In C++20's modules, you can use the dot in a module's name. It has no hierarchical significance whatsoever, it's just an allowed character. However, VA seems to break up these module names and make the individual parts accessible as symbols.

For instance, when you have a module called "foo.std" and you import it like so:
import foo.std;

VA subsequently colors all occurences of "std" using the color for variables, rather than the color for namespaces like it would normally do.

I would expect VA to parse module names as-is, but I'd be perfectly fine with an alternative solution where module names are skipped over altogether and not clutter the table of symbols at all, as they're essentially not even C++ symbols.

Edited by - .oisyn on Oct 25 2022 7:22:32 PM

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Nov 15 2022 :  11:59:53 AM  Show Profile  Reply with Quote
Apologies for the slow reply, I am seeing some colouring problems with a dot in a module name, but not the follow on problems with "std" that you are describing. In the file where I am using my module with a dot in the name I have the following result:



this is VS2022, with VA 2463, and IDE intellisense disabled, so the pink underlining is coming from VA, which just confirms our parser isn't expecting a dot in the module name:

We are still working on C++20 module support, so I have added this to our modules case, since it is good to be aware of it:

case=95226

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000