diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-02-14 00:32:25 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-02-14 00:32:25 +0000 |
commit | 544450e449c2fa1af63199b047b2d378be1760ec (patch) | |
tree | 227760e8fe8cd756eafa7edb77e2e00652495fdf | |
parent | 3a09444debc457a70110e917eeb6ca9a8e8bb84f (diff) |
Teach ccc-analyze to pass on -iquote with no spaces between it an the argument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175115 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | tools/scan-build/ccc-analyzer | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer index df694f5027..bb6dd9563b 100755 --- a/tools/scan-build/ccc-analyzer +++ b/tools/scan-build/ccc-analyzer @@ -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}) { |