]> granicus.if.org Git - clang/commit
[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)
commitdc6892d9b4534a7f68f21cfccc67de0e55c34e8d
tree2ae28fcb0f53826718a6e5e691dbc99c37aaed25
parent3752b19a9d76733a32732781edd8aa218451b61d
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280360 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.def [new file with mode: 0644]
test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.h [new file with mode: 0644]
test/Analysis/diagnostics/plist-diagnostics-include-check.cpp [new file with mode: 0644]