<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 29, 2014 at 2:05 PM, 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"><div dir="ltr"><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Tue, Apr 29, 2014 at 1:17 PM, Arnaud Allard de Grandmaison <span dir="ltr"><<a href="mailto:arnaud.adegm@gmail.com" target="_blank">arnaud.adegm@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">In clang/lib/Tooling/CompilationDatabase.cpp:241, this really looks weird:<div><br></div><div>   // Remove -no-integrated-as; it's not used for syntax checking,<br>

</div><div><div>   // and it confuses targets which don't support this option.</div>
<div>   std::remove_if(Args.begin(), Args.end(),</div><div>                 MatchesAny(std::string("-no-integrated-as")));</div><div><br></div></div><div><div>The attached patch adds the extra erase step necessary to really remove the elements --- as the comment states. But it bothers me to see that the current code seems to work as it is, hinting that those lines may no longer be necessary.</div>

</div></div></blockquote></div><br></div></div>I don't see how those lines work as is. I think they are only working in the absence of that flag.</div></div></blockquote><div><br></div><div>I guess integrated-as works on Win32 now? Either that, or the test is broken too.</div>
</div></div></div>