Is there a reason to put the change there rather than in CompilerInvocation::setLangDefaults? It seems like this would do the wrong thing for tools which don't use the driver.<br><br><div class="gmail_quote">On Wed, Jul 11, 2012 at 9:28 AM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">LGTM.<div><br></div><div>It would be good to document this behavior somewhere.</div><div class="gmail_extra"><br><br><div class="gmail_quote">
<div><div class="h5">On Wed, Jul 11, 2012 at 9:21 AM, Nico Weber <span dir="ltr"><<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi,<br>
<br>
the attached patch lets clang default to -std=c++11 on windows, as<br>
discussed on this list previously.<br>
<br>
This could be done in either the driver or in the frontend, both<br>
currently do some language standard processing. A comment in<br>
lib/Driver/Tools.cpp (2 lines above my patch) suggests that eventually<br>
all this code should move to the driver, so that's where I put my<br>
change.<br>
<br>
This could also keyed off various things. I settled on comparing the<br>
triple's OS to llvm::Triple::Win32, since that's what enables<br>
-fms-compatibility by default too.<br>
<br>
Ok?<br>
<span><font color="#888888"><br>
Nico<br>
</font></span><br></div></div>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br>