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

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 9 11:52:04 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">;
----------------
tbaederr wrote:

Increasingly, see https://github.com/llvm/llvm-project/commit/32baec4483d8723f594e04918d6a22d9d1423606 and https://github.com/llvm/llvm-project/commit/a2330a398db398e33687a6bed71092a85312e481 :)

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


More information about the cfe-commits mailing list