diff options
author | Anna Zaks <ganna@apple.com> | 2017-03-10 00:33:19 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2017-03-10 00:33:19 +0000 |
commit | ae4772140fb9eb5c13386f5642bb78a700ba951e (patch) | |
tree | e9944597afb15b6dc14e7ebf48bd7d789f6fcc99 /clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp | |
parent | e3e69e16805402796b8fec913ba90d4d054aeac0 (diff) | |
download | bcm5719-llvm-ae4772140fb9eb5c13386f5642bb78a700ba951e.tar.gz bcm5719-llvm-ae4772140fb9eb5c13386f5642bb78a700ba951e.zip |
[analyzer] Turn suppress-c++-stdlib on by default
We have several reports of false positives coming from libc++. For example,
there are reports of false positives in std::regex, std::wcout, and also
a bunch of issues are reported in https://reviews.llvm.org/D30593. In many
cases, the analyzer trips over the complex libc++ code invariants. Let's turn
off the reports coming from these headers until we can re-evalate the support.
We can turn this back on once we individually suppress all known false
positives and perform deeper evaluation on large codebases that use libc++.
We'd also need to commit to doing these evaluations regularly as libc++
headers change.
Differential Revision: https://reviews.llvm.org/D30798
llvm-svn: 297429
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp b/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp index 15422633ba3..45ef612ee1d 100644 --- a/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp +++ b/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp @@ -230,7 +230,7 @@ bool AnalyzerOptions::shouldSuppressInlinedDefensiveChecks() { bool AnalyzerOptions::shouldSuppressFromCXXStandardLibrary() { return getBooleanOption(SuppressFromCXXStandardLibrary, "suppress-c++-stdlib", - /* Default = */ false); + /* Default = */ true); } bool AnalyzerOptions::shouldReportIssuesInMainSourceFile() { |