[cfe-dev] Unable to View Results Produced by scan-build

Devin Coughlin via cfe-dev cfe-dev at lists.llvm.org
Tue May 30 09:27:23 PDT 2017


> On May 30, 2017, at 3:59 AM, Malhar Thakkar via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
> I have an additional query.
> After scan-build completes, it says, Run 'scan-view /Users/malharthakkar/Desktop/scan-build-isl/2017-05-30-161222-546-1' to examine bug reports.
> When I run the above command, it somehow opens the results which I obtained 4 days ago (look at the dates in the browser window and the terminal in the attached screenshot). Any idea why that is happening?
> Also, when I ran scan-build along with -o, only a few files were compiled and analyzed, not the entire codebase (How do I build the entire codebase?).

Did you clean the built project before running scan-build again? Since scan-build interposes on calls to the compiler, if the build system doesn’t build a source file then scan-build won’t see it. This is a common pitfall — we should really mention this in the documentation for scan-build!

Also, don’t forget to run any ./configure script through scan-build as well so you don’t get hard-wired paths to the wrong compiler. <https://clang-analyzer.llvm.org/scan-build.html#recommended_autoconf <https://clang-analyzer.llvm.org/scan-build.html#recommended_autoconf>>

Devin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170530/e598717d/attachment.html>


More information about the cfe-dev mailing list