File bsc-972334.patch of Package llvm.openSUSE_Leap_42.1_Update

Index: cfe-3.7.0.src/tools/scan-build/ccc-analyzer
===================================================================
--- cfe-3.7.0.src.orig/tools/scan-build/ccc-analyzer
+++ cfe-3.7.0.src/tools/scan-build/ccc-analyzer
@@ -579,7 +579,7 @@ foreach (my $i = 0; $i < scalar(@ARGV);
   }
 
   # Compile mode flags.
-  if ($Arg =~ /^-[D,I,U,isystem](.*)$/) {
+  if ($Arg =~ /^-(?:[DIU]|isystem)(.*)$/) {
     my $Tmp = $Arg;
     if ($1 eq '') {
       # FIXME: Check if we are going off the end.
openSUSE Build Service is sponsored by