[cfe-dev] "clang -cc1 -analyze" can't identify header files?

Nikola Smiljanic popizdeh at gmail.com
Wed Jul 8 16:06:17 PDT 2015


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
-analyzer-checker=alpha.unix.SimpleStream should work.

On Wed, Jul 8, 2015 at 6:59 PM, WangLiuShuai <dashuniuniu at hotmail.com>
wrote:

> I try to use "clang -cc1 -analyze -analyzer-checker=alpha.unix.SimpleStream
> test.cpp" to anlyze the test.cpp. However fatal error occured "header file
> not found!"
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/clang-cc1-analyze-can-t-identify-header-files-tp4046425.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150709/40274f3e/attachment.html>


More information about the cfe-dev mailing list