diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-08-14 18:20:50 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-08-14 18:20:50 +0000 |
commit | 0895937d2ce1e73926b42e71f076be3071de68d9 (patch) | |
tree | 513ccb4afffc8f2abbd8453a9e1a3f68b9c532a2 | |
parent | b11d798984a4cef5beeea8c0152090d8af77ab6e (diff) |
Pass '-Wno-' options to clang-cc. This fixes <rdar://problem/6943988>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79011 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/ccc-analyzer | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index 598e7024e9..e60c69425e 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -539,11 +539,20 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) { open(IN, $ARGV[$i+1]); while (<IN>) { s/\015?\012//; push @Files,$_; } close(IN); - ++$i; next; + ++$i; + next; } + # Handle -Wno-. We don't care about extra warnings, but + # we should suppress ones that we don't want to see. + if ($Arg =~ /^-Wno-/) { + push @CompileOpts, $Arg; + next; + } + if (!($Arg =~ /^-/)) { - push @Files,$Arg; next; + push @Files, $Arg; + next; } } |