r360994 - [Clang][Docs] Document __FILE_NAME__. NFC
Kristina Brooks via cfe-commits
cfe-commits at lists.llvm.org
Thu May 16 23:46:13 PDT 2019
Author: kristina
Date: Thu May 16 23:46:12 2019
New Revision: 360994
URL: http://llvm.org/viewvc/llvm-project?rev=360994&view=rev
Log:
[Clang][Docs] Document __FILE_NAME__. NFC
Document the `__FILE_NAME__` preprocessor extension.
Modified:
cfe/trunk/docs/LanguageExtensions.rst
Modified: cfe/trunk/docs/LanguageExtensions.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LanguageExtensions.rst?rev=360994&r1=360993&r2=360994&view=diff
==============================================================================
--- cfe/trunk/docs/LanguageExtensions.rst (original)
+++ cfe/trunk/docs/LanguageExtensions.rst Thu May 16 23:46:12 2019
@@ -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
More information about the cfe-commits
mailing list