summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorKristina Brooks <notstina@gmail.com>2019-05-17 06:46:12 +0000
committerKristina Brooks <notstina@gmail.com>2019-05-17 06:46:12 +0000
commit5652063eff609449933faeb3c1d3f4dc5745e7cf (patch)
tree4e9a2c20775d31567dc312c26a1a258d7640a056 /clang/docs
parent61ed46c737a83da4d7d69e9c48cbe8629319ff64 (diff)
downloadbcm5719-llvm-5652063eff609449933faeb3c1d3f4dc5745e7cf.tar.gz
bcm5719-llvm-5652063eff609449933faeb3c1d3f4dc5745e7cf.zip
[Clang][Docs] Document __FILE_NAME__. NFC
Document the `__FILE_NAME__` preprocessor extension. llvm-svn: 360994
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/LanguageExtensions.rst5
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
OpenPOWER on IntegriCloud