Teach ccc-analyze to pass on -iquote with no spaces between it an the argument.
authorTed Kremenek <kremenek@apple.com>
Thu, 14 Feb 2013 00:32:25 +0000 (00:32 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 14 Feb 2013 00:32:25 +0000 (00:32 +0000)
llvm-svn: 175115

clang/tools/scan-build/ccc-analyzer

index df694f5..bb6dd95 100755 (executable)
@@ -495,6 +495,11 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) {
     push @CompileOpts,$Arg;
     next;
   }
+  # Handle the case where there isn't a space after -iquote
+  if ($Arg =~ /-iquote.*/) {
+    push @CompileOpts,$Arg;
+    next;
+  }
 
   # Options with possible arguments that should pass through to linker.
   if (defined $LinkerOptionMap{$ArgKey}) {