diff options
-rw-r--r-- | clang/docs/LanguageExtensions.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst index 9871c23d9b4..1e4f72902ec 100644 --- a/clang/docs/LanguageExtensions.rst +++ b/clang/docs/LanguageExtensions.rst @@ -330,6 +330,11 @@ Builtin Macros ``__BASE_FILE__`` Defined to a string that contains the name of the main input file passed to Clang. + +``__FILE_NAME__`` + Clang-specific extension that functions similar to ``__FILE__`` but only + renders the last path component (the filename) instead of an invocation + dependent full path to that file. ``__COUNTER__`` Defined to an integer value that starts at zero and is incremented each time |