[clang] [clang-tools-extra] [clang] Don't add documentation comments to the AST if not requested (PR #206363)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 21 03:08:06 PDT 2026
================
@@ -167,7 +167,7 @@ class IndexAction : public ASTFrontendAction {
bool BeginInvocation(CompilerInstance &CI) override {
// We want all comments, not just the doxygen ones.
CI.getLangOpts().CommentOpts.ParseAllComments = true;
- CI.getLangOpts().RetainCommentsFromSystemHeaders = true;
+ CI.getLangOpts().CommentOpts.RetainCommentsFromSystemHeaders = true;
----------------
AnonMiraj wrote:
Makes sense.
Done.
https://github.com/llvm/llvm-project/pull/206363
More information about the cfe-commits
mailing list