[PATCH] D17741: adds __FILE_BASENAME__ builtin macro
Sean Silva via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 1 11:59:26 PST 2016
On Tue, Mar 1, 2016 at 10:54 AM, Nico Weber via cfe-commits <
cfe-commits at lists.llvm.org> wrote:
> thakis added a comment.
> > I think we can do this separately. A "basename" macro is easier for
> programmers to use and no build system change needed.
> Hm, I would think that adding a flag to your CFLAGS is easier than getting
> all your dependencies to use a clang-only new macro…
Yeah, we have gotten an internal request for similar functionality and it
definitely was a "whole build" granularity (i.e. CFLAGS) that the behavior
was desired. That being said, __FILE_BASENAME__ might be useful to have in
its own right.
-- Sean Silva
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits