From 1d0c8a7f4b9f60f27b1d16312037a2077e2bfde4 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 3 Feb 2015 06:23:36 +0000 Subject: [PATCH] [analyzer] Change ccc-analyzer to accept both -isystem and -isystem 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer index 9de38d42aa..aa02653a49 100755 --- a/tools/scan-build/ccc-analyzer +++ b/tools/scan-build/ccc-analyzer @@ -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. -- 2.40.0