[clang] [C2y] Support WG14 N3457, the __COUNTER__ macro (PR #162662)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 9 09:06:53 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:
C also has digit separators, but we don't seem to ever use them in diagnostics. I don't have a strong opinion though. WDYT?
https://github.com/llvm/llvm-project/pull/162662
More information about the cfe-commits
mailing list