Add an option to silence all analyzer warnings.
People have been incorrectly using "-analyzer-disable-checker" to silence analyzer warnings on a file, when analyzing a project. Add the "-analyzer-disable-all-checks" option, which would allow the suppression and suggest it as part of the error message for "-analyzer-disable-checker". The idea here is to compose this with "--analyze" so that users can selectively opt out specific files from static analysis. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216763 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticFrontendKinds.td 3 additions, 0 deletionsinclude/clang/Basic/DiagnosticFrontendKinds.td
- include/clang/Driver/CC1Options.td 3 additions, 0 deletionsinclude/clang/Driver/CC1Options.td
- include/clang/StaticAnalyzer/Core/AnalyzerOptions.h 8 additions, 0 deletionsinclude/clang/StaticAnalyzer/Core/AnalyzerOptions.h
- lib/Frontend/CompilerInvocation.cpp 2 additions, 0 deletionslib/Frontend/CompilerInvocation.cpp
- lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp 6 additions, 1 deletionlib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
- lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp 4 additions, 1 deletionlib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
- test/Analysis/disable-all-checks.c 10 additions, 0 deletionstest/Analysis/disable-all-checks.c
Loading
Please register or sign in to comment