[clang] [C2y] Support WG14 N3457, the __COUNTER__ macro (PR #162662)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 9 08:23:00 PDT 2025
================
@@ -226,7 +226,7 @@ class Preprocessor {
LangOptions::FPEvalMethodKind::FEM_UnsetOnCommandLine;
// Next __COUNTER__ value, starts at 0.
- unsigned CounterValue = 0;
+ unsigned long CounterValue = 0;
----------------
Sirraide wrote:
I’d prefer it if this was a `uint32_t` rather than an `unsigned long` but I don’t feel too strongly about it.
https://github.com/llvm/llvm-project/pull/162662
More information about the cfe-commits
mailing list