Relative Content

Tag Archive for clibclang

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.