[clang] [clang-tools-extra] [clang] Don't add documentation comments to the AST if not requested (PR #206363)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 30 05:25:18 PDT 2026


================
@@ -121,7 +121,7 @@ buildCompilerInvocation(const ParseInputs &Inputs, clang::DiagnosticConsumer &D,
   // createInvocationFromCommandLine sets DisableFree.
   CI->getFrontendOpts().DisableFree = false;
   CI->getLangOpts().CommentOpts.ParseAllComments = true;
-  CI->getLangOpts().RetainCommentsFromSystemHeaders = true;
+  CI->getLangOpts().CommentOpts.RetainCommentsFromSystemHeaders = true;
----------------
cor3ntin wrote:

Same here

https://github.com/llvm/llvm-project/pull/206363


More information about the cfe-commits mailing list