[PATCH] D13318: Add a utility function to add target information to a command line

Eric Christopher via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 30 19:31:07 PDT 2015


This seems a little odd, could you explain in a bit more detail? Me not
understanding I imagine. :)

-eric

On Wed, Sep 30, 2015, 7:48 PM Luke Zarko <zarko at google.com> wrote:

> zarko created this revision.
> zarko added reviewers: rnk, echristo, klimek.
> zarko added a subscriber: cfe-commits.
> Herald added subscribers: srhines, danalbert, tberghammer, klimek.
>
> This diff adds `addTargetAndModeForProgramName`, a utility function that
> will add appropriate `-target foo` and `--driver-mode=g++` tokens to a
> command line for driver invocations of the form `a/b/foo-g++`. It is
> intended to support tooling: for example, should a compilation database
> record some invocation of `foo-g++` without these implicit flags, a Clang
> tool may use this function to add them back.
>
> Note that a compilation database won't necessarily store these invocations
> without their corresponding implicit flags. Some may use
> `addTargetAndModeForProgramName` when the database is first written out so
> that later readers don't need to repeat the operation.
>
> http://reviews.llvm.org/D13318
>
> Files:
>   include/clang/Tooling/Tooling.h
>   lib/Tooling/Tooling.cpp
>   unittests/Tooling/ToolingTest.cpp
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151001/5ccc3fb2/attachment.html>


More information about the cfe-commits mailing list