<div dir="ltr">Sorry about that, it should be -Xclang followed by whatever frontend flag you need, in your case -analyze and checker name.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 9, 2015 at 11:59 AM, WangLiuShuai <span dir="ltr"><<a href="mailto:dashuniuniu@hotmail.com" target="_blank">dashuniuniu@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you Nikola! It's indeed standard library.<br>
If I use "clang test.cpp -Xanalyze<br>
-analyzer-checker=alpha.unix.SimpleStream", will produce following warnings.<br>
"warning: argument unused during compilation:'-Xanalyze'"<br>
"warning: argument unused during<br>
compilation:'-analyzer-checker=alpha.unix.SimpleStream'"<br>
And I have not found "-Xanalyze" int the clang usage options, instead I<br>
found "-Xanalyzer". But even if I use "-Xanalyzer", it still doesn't work.<br>
Originally I want to use "scan-build" to invoke static analyzer on windows<br>
7, but I have difficulty in this method.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__clang-2Ddevelopers.42468.n3.nabble.com_clang-2Dcc1-2Danalyze-2Dcan-2Dt-2Didentify-2Dheader-2Dfiles-2Dtp4046425p4046461.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=hMUf7XQy8VetTs6A_ssHCla-BH18oFqsIQ2Kx_jQWfE&s=p6GkeNm86Jj6MZa90tC3hxpGXXhNu5I_MqItL6nPMrA&e=" rel="noreferrer" target="_blank">http://clang-developers.42468.n3.nabble.com/clang-cc1-analyze-can-t-identify-header-files-tp4046425p4046461.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Clang Developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>