Skip to content

Show all preprocessor macros recognized by CPPTools #11334

Answered by bobbrow
tim-hilt asked this question in Q&A
Discussion options

You must be logged in to vote

@tim-hilt are you looking for the default preprocessor defines coming from the command line and compiler, the ones defined by the source file and its included headers, or both?

The first is possible by running the C/C++: Log Diagnostics command. The second isn't currently possible in the way you'd probably like to consume it - they all show up in the code completion suggestion list, but there's currently no way to filter that to just preprocessor defines. The third is limited by the answer to the second option.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tim-hilt
Comment options

@bobbrow
Comment options

Answer selected by tim-hilt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants