summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/diagnostics/Inputs/include
diff options
context:
space:
mode:
authorAleksei Sidorin <a.sidorin@samsung.com>2016-09-01 12:25:16 +0000
committerAleksei Sidorin <a.sidorin@samsung.com>2016-09-01 12:25:16 +0000
commite1beaf1ee7fb57a6af5b555b5eb0462c0090b906 (patch)
tree51c1358612972a1485e4cb4afc67f50e911709a7 /clang/test/Analysis/diagnostics/Inputs/include
parent25df3b853bb6db0c2208f92c37863a3edc35d831 (diff)
downloadbcm5719-llvm-e1beaf1ee7fb57a6af5b555b5eb0462c0090b906.tar.gz
bcm5719-llvm-e1beaf1ee7fb57a6af5b555b5eb0462c0090b906.zip
[analyzer] Add more FileIDs to PlistDiagnostic map to avoid assertion
Some FileIDs that may be used by PlistDiagnostics were not added while building a list of pieces. This caused assertion violation in GetFID() function. This patch adds some missing FileIDs to avoid the assertion. It also contains small refactoring of PlistDiagnostics::FlushDiagnosticsImpl(). Patch by Aleksei Sidorin, Ilya Palachev. Differential Revision: https://reviews.llvm.org/D22090 llvm-svn: 280360
Diffstat (limited to 'clang/test/Analysis/diagnostics/Inputs/include')
-rw-r--r--clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.def1
-rw-r--r--clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.def b/clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.def
new file mode 100644
index 00000000000..9bbd9366906
--- /dev/null
+++ b/clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.def
@@ -0,0 +1 @@
+PLIST_DEF_MACRO
diff --git a/clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.h b/clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.h
new file mode 100644
index 00000000000..9ce68ed08d1
--- /dev/null
+++ b/clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.h
@@ -0,0 +1,9 @@
+void clang_analyzer_warnIfReached();
+
+class PlistCheckMacro {
+public:
+ PlistCheckMacro () { }
+ void run() {
+ clang_analyzer_warnIfReached();
+ }
+};
OpenPOWER on IntegriCloud