[flang-commits] [flang] [flang] Add __COUNTER__ preprocessor macro (PR #136827)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Thu May 8 06:20:06 PDT 2025
================
@@ -421,6 +423,8 @@ std::optional<TokenSequence> Preprocessor::MacroReplacement(
repl = "\""s + time + '"';
}
}
+ } else if (name == "__COUNTER__") {
+ repl = std::to_string(CounterValue++);
----------------
eugeneepshteyn wrote:
Well, ok, since you accepted the variable renaming above, you should also rename it here :)
https://github.com/llvm/llvm-project/pull/136827
More information about the flang-commits
mailing list