[Analyzer] Remove inclusion of uniqueing decl from diagnostic profile.
authorBalázs Kéri <1.int32@gmail.com>
Thu, 30 Jul 2020 06:36:05 +0000 (08:36 +0200)
committerBalázs Kéri <1.int32@gmail.com>
Thu, 30 Jul 2020 07:52:28 +0000 (09:52 +0200)
commit1745ba41b196d80d8a6739dffcbb6f613d371f29
tree6c95772af927958ca630402ca5fb39dbd3c7a9f6
parent23ad660b5d34930b2b5362f1bba63daee78f6aa4
[Analyzer] Remove inclusion of uniqueing decl from diagnostic profile.

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.

Reviewed By: vsavchenko, NoQ

Differential Revision: https://reviews.llvm.org/D84843
clang/lib/Analysis/PathDiagnostic.cpp
clang/test/Analysis/report-uniqueing.cpp [new file with mode: 0644]