diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2016-10-07 19:25:10 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2016-10-07 19:25:10 +0000 |
commit | b1991c5fa7c813ae3e0b0e34e8ef9f6f6c8c2bd9 (patch) | |
tree | 3798a22ebb6b155112e43774b2624f859a2dc6ab /clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp | |
parent | 2620d22b2bbc158981f37213b9a1d7fd4495a135 (diff) | |
download | bcm5719-llvm-b1991c5fa7c813ae3e0b0e34e8ef9f6f6c8c2bd9.tar.gz bcm5719-llvm-b1991c5fa7c813ae3e0b0e34e8ef9f6f6c8c2bd9.zip |
[analyzer] Re-apply r283092, attempt no.4, chunk no.4 (last)
The problem that caused the msvc crash has been indentified and fixed
in the previous commit. This patch contains the rest of r283092.
llvm-svn: 283584
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp b/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp index 54c668cd2d6..86c194e8fae 100644 --- a/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp +++ b/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp @@ -344,3 +344,10 @@ bool AnalyzerOptions::shouldWidenLoops() { WidenLoops = getBooleanOption("widen-loops", /*Default=*/false); return WidenLoops.getValue(); } + +bool AnalyzerOptions::shouldDisplayNotesAsEvents() { + if (!DisplayNotesAsEvents.hasValue()) + DisplayNotesAsEvents = + getBooleanOption("notes-as-events", /*Default=*/false); + return DisplayNotesAsEvents.getValue(); +} |