This is an archive of the discontinued LLVM Phabricator instance.

[Analyzer] Remove inclusion of uniqueing decl from diagnostic profile.
ClosedPublic

Authored by balazske on Jul 29 2020, 6:52 AM.

Details

Summary

The uniqueing decl in PathDiagnostic is the declaration with the
uniqueing loc, as stated by documentation comments.
It is enough to include the uniqueing loc in the profile. It is possible
to have objects with different uniqueing decl but same location, at
least with templates. These belong to the same class and should have
same profile.

Diff Detail

Event Timeline

balazske created this revision.Jul 29 2020, 6:52 AM
balazske requested review of this revision.Jul 29 2020, 6:52 AM
vsavchenko accepted this revision.Jul 29 2020, 8:46 AM
vsavchenko added a subscriber: vsavchenko.

LGTM! Thanks for the fast fix!

This revision is now accepted and ready to land.Jul 29 2020, 8:46 AM
NoQ accepted this revision.Jul 29 2020, 10:25 AM
NoQ added a subscriber: NoQ.

Aha, ok, yeah, so that's what caused it!

I guess if we want a uniqueing decl for this case, we should use the original template decl rather than the instantiation.

This revision was landed with ongoing or failed builds.Jul 30 2020, 12:49 AM
This revision was automatically updated to reflect the committed changes.