[cfe-dev] DIRS missing scan-build in build/tools/clang/tools/Makefile?
ganna at apple.com
Tue Nov 27 09:30:10 PST 2012
On Nov 26, 2012, at 4:14 PM, Peeter Joot <peeter.joot at gmail.com> wrote:
>> In particular, it doesn't add: --analyze. Do I need to both add that to my compilation options and also call scan-build?
> You can look at the Analyze() routine in ccc-analyzer. It does not call "clang --analyze" directly, but calls a lower level "clang -cc1 -analyze -analyzer-checker=.." the command built by scan-build. Unless you specify extra options to scan-build they will be equivalent (scan-build calls clang --analyzer -### to get the equivalent cc1 command).
> Thanks, the issue was that %LangMap was missing C (capital C), which is the suffix used by most C++ code in our product, and then skipped my source file silently. I've added:
> 'C' => 'c++',
It would be a good patch to submit to mainline. Whenever you need to submit a patch, you should send an email to cfe-commits mailing list with the diff attached (See http://clang.llvm.org/hacking.html).
> to my version of this script.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev