[PATCH] D74467: [analyzer] Teach scan-build how to rebuild index.html without analyzing.

Csaba Dabis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 4 09:00:22 PST 2020


Charusso added a comment.

In D74467#1905416 <https://reviews.llvm.org/D74467#1905416>, @NoQ wrote:

> In D74467#1905011 <https://reviews.llvm.org/D74467#1905011>, @Charusso wrote:
>
> > Could you mention how to use this feature in the Summary please?
> >  And something is not right, I have tried it:
> >
> >   Use of uninitialized value $Clang in concatenation (.) or string at /llvm-project/clang/tools/scan-build/bin/scan-build line 1895.
> >
>
>
> Uh-oh. Does this still show up if you specify `--use-analyzer` explicitly? Because `%scan_build` in tests includes this flag because otherwise it has no knowledge of the clang build directory.
>
> >   sh: 1: : Permission denied
>
> This looks like a separate problem, dunno.


Well, then please mention the proper usage is:

  cd reports
  scan-build --use-analyzer clang --generate-index-only .

With that none of the concatenation and `sh` permission issue shows up. However it would be a nice QoL if that extra flag is not needed to generate HTML.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74467/new/

https://reviews.llvm.org/D74467





More information about the cfe-commits mailing list