<div dir="ltr"><div>+  /// Whether the drvier was invoked as a C++ compiler<br></div><div>+  /// (e.g. clang++ or clang-cl).</div><div>+  bool CCCIsCXX() const { return Mode == GXXMode || Mode == CLMode; }</div><div><br></div>
<div>Looks good, but what needs this?  My understanding is that all of clang, cl, and gcc can be invoked on .c or .cpp files and they will auto-detect the language from the extension.  The main behavior difference is whether to link the standard C++ library.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 19, 2013 at 2:31 PM, Hans Wennborg <span dir="ltr"><<a href="mailto:hans@chromium.org" target="_blank">hans@chromium.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
The attached patch adds a cl.exe compatible mode to the driver. It<br>
doesn't actually do anything yet, but the plan is to make it accept<br>
cl.exe style command line flags as discussed in [1].<br>
<br>
Please take a look!<br>
<br>
Thanks,<br>
Hans<br>
<br>
[1]. <a href="http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-June/030439.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-June/030439.html</a><br>
</blockquote></div><br></div>