[flang-commits] [flang] [flang] Add __COUNTER__ preprocessor macro (PR #136827)
Yussur Mustafa Oraji via flang-commits
flang-commits at lists.llvm.org
Fri May 9 05:34:03 PDT 2025
================
@@ -138,6 +138,18 @@ text.
OpenMP-style directives that look like comments are not addressed by
this scheme but are obvious extensions.
+## Currently implemented built-ins
+
+* `__DATE__`: Date, given as e.g. "Jun 16 1904"
+* `__TIME__`: Time in 24-hour format including seconds, e.g. "09:24:13"
+* `__TIMESTAMP__`: Date, time and year of last modification, given as e.g. "Fri May 9 09:16:17 2025"
+* `__FILE__`: Current file
+* `__LINE__`: Current line
+
+### Non-standard extensions
----------------
N00byKing wrote:
Hm, to me this reads more like exceptions, or documenting quirks, instead of extensions to the preprocessor.
If you think it fits there more, I'll move it though
https://github.com/llvm/llvm-project/pull/136827
More information about the flang-commits
mailing list