<div dir="ltr">And if I could bet it's one of the standard library includes? That's because -cc1 invokes the frontend directly and not the driver. Frontend doesn't know where to find include files, you have to pass -I. A better option is to use -Xanalyze. So something like clang test.cpp -Xanalyze <span style="font-size:12.8000001907349px">-analyzer-checker=alpha.unix.</span><span style="font-size:12.8000001907349px">SimpleStream should work.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 8, 2015 at 6:59 PM, 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">I try to use "clang -cc1 -analyze -analyzer-checker=alpha.unix.SimpleStream<br>
test.cpp" to anlyze the test.cpp. However fatal error occured "header file<br>
not found!"<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-2Dtp4046425.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=hIdpD5btMh356QnX7X_LyDMwTDem1WszuiWRGnS-0QI&s=5Gejfx5bmK8r5lG4nhs62CVGKjfBmRL3Qrmu-ksKZmU&e=" rel="noreferrer" target="_blank">http://clang-developers.42468.n3.nabble.com/clang-cc1-analyze-can-t-identify-header-files-tp4046425.html</a><br>
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>
</blockquote></div><br></div>