[clang] Add 'enum_select' diagnostic selection to clang. (PR #122505)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 14 11:37:38 PST 2025


================
@@ -1042,6 +1119,9 @@ Piece *DiagnosticTextBuilder::DiagText::parseDiagText(StringRef &Text,
                                 Modifier);
     };
 
+    if (ModType != MT_EnumSelect && Text[0] == '<')
+      Builder.PrintFatalError("modifier '<' syntax not valid with " + Modifier);
----------------
AaronBallman wrote:

Test coverage for this bit?

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


More information about the cfe-commits mailing list