{PATCH] clang::tooling::ArgumentAdjuster - Add file name argument to Adjust callback
Manuel Klimek
klimek at google.com
Mon Aug 12 06:34:23 PDT 2013
Hi John,
first, I'd be eternally thankful if you submitted patches to Tooling via
phabricator (http://llvm.org/docs/Phabricator.html) :)
Second, I'm not yet convinced this patch is the right direction. I'm trying
to understand what you're doing:
1. when running a tool over code, I'd assume you don't need to change the
include file arguments
2. after run modularize, if I understand you correctly, the header search
paths are now not correct any more - this looks to me like it needs build
system support, rather than trying to work around this with the include
paths
Cheers,
/Manuel
On Mon, Aug 12, 2013 at 6:16 AM, Thompson, John <
John_Thompson at playstation.sony.com> wrote:
> This patch adds an input file name parameter to ArgumentAdjuster’s
> Adjust function in Tooling, in order to allow support of changes to a
> compile’s arguments based on the file name.****
>
> ** **
>
> I’m in a testing phase for a new feature for modularize which allows you
> to add dependencies to the header files in the input header list. In using
> modularize for a real-world set of headers, I found that some headers
> needed other headers to be included first, as opposed to including them
> themselves or relying on a master header to include the subset of headers
> in the right order. With this patch, I can create an ArgumentAdjuster
> derivation that’s given a map with the dependencies keyed on the file name,
> and have the Adjust function look up the dependencies using the input file
> name and then add -include options to first include the depended-on
> headers. This seemed easier than other changes or derivations that would
> need to be done.****
>
> ** **
>
> Thanks.****
>
> ** **
>
> -John****
>
> ** **
>
> ** **
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130812/9f7be1e6/attachment.html>
More information about the cfe-commits
mailing list