This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Add more FileIDs to PlistDiagnostic map
ClosedPublic

Authored by a.sidorin on Jul 7 2016, 6:04 AM.

Details

Summary

Some FileIDs that may be used by PlistDiagnostics are not added while building a list of pieces. This leads to assertion violation in GetFID() function. This patch tries to add such missing FileIDs. It also contains small refactoring of this piece of code.

Authors: Aleksei Sidorin, Ilya Palachev.

Diff Detail

Repository
rL LLVM

Event Timeline

a.sidorin updated this revision to Diff 63062.Jul 7 2016, 6:04 AM
a.sidorin retitled this revision from to [analyzer] Add more FileIDs to PlistDiagnostic map.
a.sidorin updated this object.
a.sidorin added reviewers: zaks.anna, dcoughlin.
a.sidorin added a subscriber: cfe-commits.
NoQ added a subscriber: NoQ.Jul 11 2016, 8:55 AM
zaks.anna added inline comments.Jul 27 2016, 10:33 PM
test/Analysis/diagnostics/Inputs/include/Something.h
1 ↗(On Diff #63062)

Please, choose better file names. Every test that adds something cannot add a header called something:) It won't scale.

test/Analysis/diagnostics/plist-diagnostics-include-check.cpp
1 ↗(On Diff #63062)

Please, check that output is produced. Search for other tests with -analyzer-poutput=plist-multi-file for examples.

zaks.anna edited edge metadata.Jul 30 2016, 11:00 AM
a.sidorin updated this revision to Diff 68987.Aug 23 2016, 6:48 AM
a.sidorin edited edge metadata.

Add plist output; give test files meaningful names.

zaks.anna accepted this revision.Aug 23 2016, 9:24 PM
zaks.anna edited edge metadata.

Thanks!

This revision is now accepted and ready to land.Aug 23 2016, 9:24 PM
This revision was automatically updated to reflect the committed changes.