summaryrefslogtreecommitdiff
blob: 78ca922b6366d1472d81dde7d1f8d8ab264be0ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
https://bugs.gentoo.org/586168

Index: tools/clang/tools/scan-build/ccc-analyzer
===================================================================
--- a/tools/clang/tools/scan-build/ccc-analyzer	(revision 250980)
+++ b/tools/clang/tools/scan-build/ccc-analyzer	(working copy)
@@ -586,9 +586,9 @@
   }
 
   # Compile mode flags.
-  if ($Arg =~ /^-[D,I,U,isystem](.*)$/) {
+  if ($Arg =~ /^-(D|I|U|isystem)(.*)$/) {
     my $Tmp = $Arg;
-    if ($1 eq '') {
+    if ($2 eq '') {
       # FIXME: Check if we are going off the end.
       ++$i;
       $Tmp = $Arg . $ARGV[$i];