[clang] [clang-tools-extra] Reland "[clang] Don't add documentation comments to the AST if not requested (#206363)" (PR #221605)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 13 04:06:21 PDT 2026
================
@@ -589,6 +589,12 @@ class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
return GetDiagStateForLoc(Loc);
}
+ /// Returns whether \p Loc is in a system header and/or a system macro, as a
+ /// value in [0, 4). Severity depends on this through
+ /// DiagnosticIDs::shouldSuppressAsSystemWarning(), so a cache keyed on
+ /// getDiagStateKeyForLoc() must take it into account as well.
+ unsigned getDiagStateSystemClassForLoc(SourceLocation Loc) const;
----------------
AnonMiraj wrote:
Didn't think of it
https://github.com/llvm/llvm-project/pull/221605
More information about the cfe-commits
mailing list