File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ buildCompilerInvocation(const ParseInputs &Inputs,
63
63
// createInvocationFromCommandLine sets DisableFree.
64
64
CI->getFrontendOpts ().DisableFree = false ;
65
65
CI->getLangOpts ()->CommentOpts .ParseAllComments = true ;
66
+ CI->getLangOpts ()->RetainCommentsFromSystemHeaders = true ;
66
67
return CI;
67
68
}
68
69
Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ class IndexAction : public ASTFrontendAction {
160
160
bool BeginInvocation (CompilerInstance &CI) override {
161
161
// We want all comments, not just the doxygen ones.
162
162
CI.getLangOpts ().CommentOpts .ParseAllComments = true ;
163
+ CI.getLangOpts ().RetainCommentsFromSystemHeaders = true ;
163
164
// Index the whole file even if there are warnings and -Werror is set.
164
165
// Avoids some analyses too. Set in two places as we're late to the party.
165
166
CI.getDiagnosticOpts ().IgnoreWarnings = true ;
You can’t perform that action at this time.
0 commit comments