[clang] [clang][NFC] Bump the maximum number of Frontend diagnostics (PR #210345)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 17 07:16:24 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Tony Varghese (tonykuttai)

<details>
<summary>Changes</summary>

The number of Frontend diagnostics in DiagnosticFrontendKinds.td is close to the DIAG_SIZE_FRONTEND limit of 200 (195 in use), and in-flight PRs adding frontend diagnostics (e.g. #<!-- -->187986) run into the static assert in DiagnosticIDs.cpp. Increase the limit to 300, following the precedent of #<!-- -->200948 which did the same for Sema diagnostics.

---
Full diff: https://github.com/llvm/llvm-project/pull/210345.diff


1 Files Affected:

- (modified) clang/include/clang/Basic/DiagnosticIDs.h (+1-1) 


``````````diff
diff --git a/clang/include/clang/Basic/DiagnosticIDs.h b/clang/include/clang/Basic/DiagnosticIDs.h
index f71e47b5cba70..8e714efac46ae 100644
--- a/clang/include/clang/Basic/DiagnosticIDs.h
+++ b/clang/include/clang/Basic/DiagnosticIDs.h
@@ -36,7 +36,7 @@ enum class Group;
 enum {
   DIAG_SIZE_COMMON = 300,
   DIAG_SIZE_DRIVER = 400,
-  DIAG_SIZE_FRONTEND = 200,
+  DIAG_SIZE_FRONTEND = 300,
   DIAG_SIZE_SERIALIZATION = 120,
   DIAG_SIZE_LEX = 500,
   DIAG_SIZE_PARSE = 800,

``````````

</details>


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


More information about the cfe-commits mailing list