Intelliscence unexpectingly expanding a macro in c++. #13107
              
                Unanswered
              
          
                  
                    
                      andrewjavao
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Something strange is happening about the hint given by vscode on cpp macros when I'm working with a cpp project using VSCode:
I have a utility macro for broadcast a given macro to all arguments:
When I use above macro:
The hint given by VSCode at the line "SSTR(info, 1, 2, 3, 4)" is:

which is not correct code, Then I delete configurationProvider in settings.json:
the hints looks good after rescan:

So my questionis:
why "ms-vscode.cmake-tools" differs?
according to document in https://code.visualstudio.com/docs/cpp/configure-intellisense:
does that mean "ms-vscode.cmake-tools" is setting intelliscene in a way that such macro is not supported?
how to fix this?
Im not sure if such macro is not compatible enough or it's just a matter of settings.
Sorry for the verboseness, and thank you for any suggestion.
Beta Was this translation helpful? Give feedback.
All reactions