[clang] [analyzer] Improve bug report hashing, merge similar reports (PR #98621)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 02:04:39 PDT 2024


=?utf-8?q?DonĂ¡t?= Nagy <donat.nagy at ericsson.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/98621 at github.com>


================
@@ -2213,7 +2213,7 @@ void BasicBugReport::Profile(llvm::FoldingSetNodeID& hash) const {
 void PathSensitiveBugReport::Profile(llvm::FoldingSetNodeID &hash) const {
   hash.AddInteger(static_cast<int>(getKind()));
   hash.AddPointer(&BT);
-  hash.AddString(Description);
+  hash.AddString(getShortDescription());
----------------
steakhal wrote:

Is it intentional that you use a member function here instead of the member variable?

https://github.com/llvm/llvm-project/pull/98621


More information about the cfe-commits mailing list