[LLVMbugs] [Bug 8202] I get no reports from running "scan-build <args...> make -k"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 22 10:50:01 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8202

Ted Kremenek <kremenek at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |kremenek at apple.com
         Resolution|                            |INVALID

--- Comment #1 from Ted Kremenek <kremenek at apple.com> 2010-09-22 12:50:01 CDT ---
(In reply to comment #0)
> When I run "clang --analyze" on my c++ source files individually I get reports,
> but none when using the scan-build tool.

This is intended behavior.  C++ support is still alpha and so it isn't enabled
by default in scan-build.  It's really only intended to be used by those
currently hacking on the analyzer.

If you want to enable C++ analysis, you must define the environment variable
CCC_ANALYZER_CPLUSPLUS.

It works with 'clang --analyze' because that's not intended to be a public way
to use the analyzer.  It should probably be disabled there as well.  In the
future that flag may go away as the analyzer evolves to do cross-file analysis.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list