Skip to content

Commit 5652063

Browse files
committed
[Clang][Docs] Document __FILE_NAME__. NFC
Document the `__FILE_NAME__` preprocessor extension. llvm-svn: 360994
1 parent 61ed46c commit 5652063

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/docs/LanguageExtensions.rst

+5
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ Builtin Macros
330330
``__BASE_FILE__``
331331
Defined to a string that contains the name of the main input file passed to
332332
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.
333338

334339
``__COUNTER__``
335340
Defined to an integer value that starts at zero and is incremented each time

0 commit comments

Comments
 (0)