]> granicus.if.org Git - clang/commitdiff
[analyzer] Change ccc-analyzer to accept both -isystem <path> and -isystem<path>
authorTed Kremenek <kremenek@apple.com>
Tue, 3 Feb 2015 06:23:36 +0000 (06:23 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 3 Feb 2015 06:23:36 +0000 (06:23 +0000)
Patch by Thomas Hauth!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227946 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/ccc-analyzer

index 9de38d42aafadc1290527171e268748d1ecfe027..aa02653a49e3d79c0d299e6a4786df1322ea7ffd 100755 (executable)
@@ -353,7 +353,6 @@ my %CompileOptionMap = (
   '-imacros' => 1,
   '-iprefix' => 1,
   '-iquote' => 1,
-  '-isystem' => 1,
   '-iwithprefix' => 1,
   '-iwithprefixbefore' => 1
 );
@@ -572,7 +571,7 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) {
   }
 
   # Compile mode flags.
-  if ($Arg =~ /^-[D,I,U](.*)$/) {
+  if ($Arg =~ /^-[D,I,U,isystem](.*)$/) {
     my $Tmp = $Arg;
     if ($1 eq '') {
       # FIXME: Check if we are going off the end.