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

Sylvestre Ledru via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 16 11:47:29 PDT 2018


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 --------------
A non-text attachment was scrubbed...
Name: D52151.165687.patch
Type: text/x-patch
Size: 508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180916/652d2340/attachment.bin>


More information about the cfe-commits mailing list