We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61ed46c commit 5652063Copy full SHA for 5652063
clang/docs/LanguageExtensions.rst
@@ -330,6 +330,11 @@ Builtin Macros
330
``__BASE_FILE__``
331
Defined to a string that contains the name of the main input file passed to
332
Clang.
333
+
334
+``__FILE_NAME__``
335
+ Clang-specific extension that functions similar to ``__FILE__`` but only
336
+ renders the last path component (the filename) instead of an invocation
337
+ dependent full path to that file.
338
339
``__COUNTER__``
340
Defined to an integer value that starts at zero and is incremented each time
0 commit comments