<p dir="ltr">This seems a little odd, could you explain in a bit more detail? Me not understanding I imagine. :)</p>
<p dir="ltr">-eric</p>
<br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 30, 2015, 7:48 PM Luke Zarko <<a href="mailto:zarko@google.com">zarko@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">zarko created this revision.<br>
zarko added reviewers: rnk, echristo, klimek.<br>
zarko added a subscriber: cfe-commits.<br>
Herald added subscribers: srhines, danalbert, tberghammer, klimek.<br>
<br>
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.<br>
<br>
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.<br>
<br>
<a href="http://reviews.llvm.org/D13318" rel="noreferrer" target="_blank">http://reviews.llvm.org/D13318</a><br>
<br>
Files:<br>
  include/clang/Tooling/Tooling.h<br>
  lib/Tooling/Tooling.cpp<br>
  unittests/Tooling/ToolingTest.cpp<br>
<br>
</blockquote></div>