aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Object.cpp
diff options
context:
space:
mode:
authorKristina Brooks <notstina@gmail.com>2019-05-16 00:52:41 +0000
committerKristina Brooks <notstina@gmail.com>2019-05-16 00:52:41 +0000
commit3acc1d1be329d9f6e363c34c455fec86e0c4935c (patch)
tree69a501f5b6ce0545070ad7128315093288a6b158 /llvm/lib/Object/Object.cpp
parente7ab59eda98094183cd4d75f5edde9e07e27072b (diff)
downloadllvm-3acc1d1be329d9f6e363c34c455fec86e0c4935c.zip
llvm-3acc1d1be329d9f6e363c34c455fec86e0c4935c.tar.gz
llvm-3acc1d1be329d9f6e363c34c455fec86e0c4935c.tar.bz2
[Clang][PP] Add the __FILE_NAME__ builtin macro.
This patch adds the `__FILE_NAME__` macro that expands to the last component of the path, similar to `__FILE__` except with a guarantee that only the last path component (without the separator) will be rendered. I intend to follow through with discussion of this with WG14 as a potential inclusion in the C standard or failing that, try to discuss this with GCC developers since this extension is desired by GCC and Clang users/developers alike. Differential Revision: https://reviews.llvm.org/D61756 llvm-svn: 360833
Diffstat (limited to 'llvm/lib/Object/Object.cpp')
0 files changed, 0 insertions, 0 deletions