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

Nikola Smiljanic popizdeh at gmail.com
Wed Jul 8 20:27:16 PDT 2015


Sorry about that, it should be -Xclang followed by whatever frontend flag
you need, in your case -analyze and checker name.

On Thu, Jul 9, 2015 at 11:59 AM, WangLiuShuai <dashuniuniu at hotmail.com>
wrote:

> Thank you Nikola! It's indeed standard library.
> If I use "clang test.cpp -Xanalyze
> -analyzer-checker=alpha.unix.SimpleStream", will produce following
> warnings.
> "warning: argument unused during compilation:'-Xanalyze'"
> "warning: argument unused during
> compilation:'-analyzer-checker=alpha.unix.SimpleStream'"
> And I have not found "-Xanalyze" int the clang usage options, instead I
> found "-Xanalyzer". But even if I use "-Xanalyzer", it still doesn't work.
> Originally I want to use "scan-build" to invoke static analyzer on windows
> 7, but I have difficulty in this method.
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/clang-cc1-analyze-can-t-identify-header-files-tp4046425p4046461.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/08e30a55/attachment.html>


More information about the cfe-dev mailing list