summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2016-10-07 10:44:09 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2016-10-07 10:44:09 +0000
commitfc36b586fb07904dc9f0e311c9630a0d1c768e45 (patch)
tree356ec053db0830dbf12a9485ec40e0ed778f77d8 /clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
parent6ad5da7c81287cc96c2b5de58b1a0379a6e435b3 (diff)
downloadbcm5719-llvm-fc36b586fb07904dc9f0e311c9630a0d1c768e45.tar.gz
bcm5719-llvm-fc36b586fb07904dc9f0e311c9630a0d1c768e45.zip
[analyzer] Try to re-apply r283092 "Extend bug reports with extra notes"
Replace SmallVector<IntrusiveRefCntPtr> with a vector of plain pointers. Would insignificantly increase memory usage. llvm-svn: 283536
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp7
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();
+}
OpenPOWER on IntegriCloud