[PATCH] D52151: Also manages clang-X as tool for scan-build

Jon Roelofs via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 16 12:30:35 PDT 2018


lgtm

On Sun, Sep 16, 2018 at 12:47 PM Sylvestre Ledru via Phabricator <
reviews at reviews.llvm.org> wrote:

> sylvestre.ledru created this revision.
> sylvestre.ledru added a reviewer: jroelofs.
>
> This will make
> scan-build-7 clang-7 -c foo.c &> /dev/null
>
>
> Repository:
>   rC Clang
>
> https://reviews.llvm.org/D52151
>
> Files:
>   tools/scan-build/bin/scan-build
>
>
> Index: tools/scan-build/bin/scan-build
> ===================================================================
> --- tools/scan-build/bin/scan-build
> +++ tools/scan-build/bin/scan-build
> @@ -1079,7 +1079,7 @@
>    if ($Cmd =~ /(.*\/?gcc[^\/]*$)/ or
>        $Cmd =~ /(.*\/?cc[^\/]*$)/ or
>        $Cmd =~ /(.*\/?llvm-gcc[^\/]*$)/ or
> -      $Cmd =~ /(.*\/?clang$)/ or
> +      $Cmd =~ /(.*\/?clang[^\/]*$)/ or
>        $Cmd =~ /(.*\/?ccc-analyzer[^\/]*$)/) {
>
>      if (!($Cmd =~ /ccc-analyzer/) and !defined $ENV{"CCC_CC"}) {
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180916/7154e2ae/attachment.html>


More information about the cfe-commits mailing list