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

Nikola Smiljanic popizdeh at gmail.com
Mon Jul 13 05:42:08 PDT 2015


Adding Ted and Anna to get an official answer :)

On Mon, Jul 13, 2015 at 11:45 AM, WangLiuShuai <dashuniuniu at hotmail.com>
wrote:

> I found a temporary solution to this problem. We can add some hard-code in
> llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp, these code will tell
> clang where to search the c++ standard library. According to the existing
> code, we also can put the standard library to the corresponding path. Then
> when we use "clang -cc1 -analyze -analyzer-checker=alpha.unix.SimpleStream
> test.cpp" we don't even need to use "-I" option, the clang static analyzer
> can also execute correctly.
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/clang-cc1-analyze-can-t-identify-header-files-tp4046425p4046505.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/20150713/c45b980f/attachment.html>


More information about the cfe-dev mailing list