[clang] [C2y] Support WG14 N3457, the __COUNTER__ macro (PR #162662)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 10 04:53:11 PDT 2025


================
@@ -90,6 +90,14 @@ def err_unterminated___pragma : Error<"missing terminating ')' character">;
 
 def err_conflict_marker : Error<"version control conflict marker in file">;
 
+def err_counter_overflow : Error<
+  "'__COUNTER__' value cannot exceed 2147483647">;
----------------
AaronBallman wrote:

Okay, I'm sold. :-)

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


More information about the cfe-commits mailing list