r227946 - [analyzer] Change ccc-analyzer to accept both -isystem <path> and -isystem<path>

Ted Kremenek kremenek at apple.com
Mon Feb 2 22:23:37 PST 2015


Author: kremenek
Date: Tue Feb  3 00:23:36 2015
New Revision: 227946

URL: http://llvm.org/viewvc/llvm-project?rev=227946&view=rev
Log:
[analyzer] Change ccc-analyzer to accept both -isystem <path> and -isystem<path>

Patch by Thomas Hauth!

Modified:
    cfe/trunk/tools/scan-build/ccc-analyzer

Modified: cfe/trunk/tools/scan-build/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/ccc-analyzer?rev=227946&r1=227945&r2=227946&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/ccc-analyzer (original)
+++ cfe/trunk/tools/scan-build/ccc-analyzer Tue Feb  3 00:23:36 2015
@@ -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);
   }
 
   # 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.





More information about the cfe-commits mailing list