Getting enum type from clang::EnumConstantDecl
I’m trying to write a clang tool that finds all calls to a fucntion with variable args and returns the type of argument.
When I put in a constant enum value, for example:
libclang CXTranslationUnit_DetailedPreprocessingRecord doesn’t affect parse
While trying to use the C libclang bindings to parse some sources, I have found that preprocessor directives do not show up in the AST.
Following recommendations from this previous question, and calling clang_parseTranslationUnit
with the CXTranslationUnit_DetailedPreprocessingRecord
flag does not resolve the issue.