diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-03-22 22:32:05 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-03-22 22:32:05 +0000 |
| commit | fe449a24a805a6006e2350fab68e4ef32e0b6194 (patch) | |
| tree | 9fa9b9a73dd32396be5464ba543e6c04e28f540e | |
| parent | 28ec56d7ddf1ed2caa56bc7e8650f0defccb684a (diff) | |
| download | bcm5719-llvm-fe449a24a805a6006e2350fab68e4ef32e0b6194.tar.gz bcm5719-llvm-fe449a24a805a6006e2350fab68e4ef32e0b6194.zip | |
Disable the emission of frontend warnings (not errors) under --analyze.
Fixes <rdar://problem/7405601>.
llvm-svn: 99222
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 1c34df05b1c..41333466ecd 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -796,6 +796,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, else CmdArgs.push_back("plist"); + // Disable the presentation of standard compiler warnings when + // using --analyze. We only want to show static analyzer diagnostics + // or frontend errors. + CmdArgs.push_back("-w"); + // Add -Xanalyzer arguments when running as analyzer. Args.AddAllArgValues(CmdArgs, options::OPT_Xanalyzer); } |

