feline
Whole Tomato Software
    
United Kingdom
19184 Posts |
Posted - Jun 05 2025 : 08:45:08 AM
|
Thank you for the sample code. I am not sure what results I should be getting, but I am certainly seeing a problem with the "do" filter.
Instead of adding the #define to your code, can you please navigate to the folder holding your SLN file, and in this folder create a new, empty text file called "va_stdafx.h", then edit it to have the content:
#define CLI
making sure there is a blank line at the end of the file.� Now press the button:
VA Options -> Performance -> Rebuild symbol databases
and restart Visual Studio.
When rebuilding its symbol database VA looks for this file, and if found, it parses it before parsing anything else in your solution.� Since we look for this file specifically, there is no need to add it to your solution, and in fact it should not be added to your solution, but it should be safe to check it into source control if you want.
This file is used to help our parser make sense of any odd code that it might encounter, especially macros that might cause us problems.
In this case I am using the file to hide the CLI macro from VA.
As for what should be visible in a given file, VA isn't attempting to compile your code. We are trying to be aware of, and help with, types that have not yet been included, since you may be writing the code, only to add the required #include later. In fact we even have the Add Include command to help with this situation. |
zen is the art of being at one with the two'ness |
 |
|