[PATCH] D61756: Add a __FILE_NAME__ macro.
Kristina Brooks via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 9 13:20:31 PDT 2019
kristina created this revision.
kristina added reviewers: aaron.ballman, rsmith, rnk.
Herald added a project: clang.
A much simplified version of D17741 <https://reviews.llvm.org/D17741> which adds a new builtin macro `__FILE_NAME__` that is similar to `__FILE__` but only renders the last path component. It seems that this functionality is highly desired from the consensus on D17741 <https://reviews.llvm.org/D17741> as a separate macro versus a much more complicated and niche patch originally proposed in that differential.
Repository:
rC Clang
https://reviews.llvm.org/D61756
Files:
include/clang/Lex/Preprocessor.h
lib/Lex/PPMacroExpansion.cpp
test/Preprocessor/Inputs/include-subdir/file_name_macro_include.h
test/Preprocessor/Inputs/include-subdir/h
test/Preprocessor/file_name_macro.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61756.198893.patch
Type: text/x-patch
Size: 4768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190509/76dd8176/attachment.bin>
More information about the cfe-commits
mailing list