[analyzer] Add more FileIDs to PlistDiagnostic map to avoid assertion
authorAleksei Sidorin <a.sidorin@samsung.com>
Thu, 1 Sep 2016 12:25:16 +0000 (12:25 +0000)
committerAleksei Sidorin <a.sidorin@samsung.com>
Thu, 1 Sep 2016 12:25:16 +0000 (12:25 +0000)
commite1beaf1ee7fb57a6af5b555b5eb0462c0090b906
tree51c1358612972a1485e4cb4afc67f50e911709a7
parent25df3b853bb6db0c2208f92c37863a3edc35d831
[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
clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.def [new file with mode: 0644]
clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.h [new file with mode: 0644]
clang/test/Analysis/diagnostics/plist-diagnostics-include-check.cpp [new file with mode: 0644]