We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0720a15 commit de75a22Copy full SHA for de75a22
src/lib/AST/ASTVisitor.cpp
@@ -3555,6 +3555,11 @@ struct ASTAction
3555
if(! CI.hasPreprocessor())
3556
return;
3557
3558
+ // ensure comments in system headers are retained.
3559
+ // we may want them if e.g. a declaration was extracted
3560
+ // as a dependency
3561
+ CI.getLangOpts().RetainCommentsFromSystemHeaders = true;
3562
+
3563
if(! CI.hasSema())
3564
CI.createSema(getTranslationUnitKind(), nullptr);
3565
0 commit comments