On Fri, Apr 4, 2014 at 3:47 AM, Lubos Lunak <[email protected]> wrote:

>
>  This is a re-send of
>
> http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131125/094231.html
> which went without any answer.
>
>  See PR15614 for a testcase.


The combination of -Wunused-macro and -frewrite-includes still doesn't
really work with this patch applied: if the only use of a macro is within a
preprocessor directive that -frewrite-includes expands, we'll still warn
about it. Unfortunately I don't have any great ideas as to how to solve
this; the least bad idea I have is to add a '#pragma clang macro_used
BLAH', and emit that for each macro that's used in the -frewrite-includes
run.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to