[clang] [clang] Make documentation warnings faster with --warning-suppression-mappings= (PR #244714)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 23 02:35:35 PST 2026


================
@@ -535,6 +535,9 @@ class WarningsSpecialCaseList : public llvm::SpecialCaseList {
   bool isDiagSuppressed(diag::kind DiagId, SourceLocation DiagLoc,
                         const SourceManager &SM) const;
 
+  /// The diagnostics that have a section.
+  auto mappedDiags() const { return DiagToSection.keys(); }
----------------
zmodem wrote:

nit: Return type deduction for a method like this feels unusual in LLVM style.

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


More information about the cfe-commits mailing list