[PATCH] D83115: [Analyzer] Report every bug if only uniqueing location differs.

Balogh, Ádám via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 3 03:12:20 PDT 2020


baloghadamsoftware added inline comments.


================
Comment at: clang/lib/Analysis/PathDiagnostic.cpp:333
+  if (XL.isValid() && YL.isInvalid())
+    return false;
   std::pair<FileID, unsigned> XOffs = XL.getDecomposedLoc();
----------------
Why this asymmetry?


================
Comment at: clang/lib/Analysis/PathDiagnostic.cpp:389
+      return *Result;
   }
   PathDiagnostic::meta_iterator XI = X.meta_begin(), XE = X.meta_end();
----------------
Asymmetry again. What if YUL is valid?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83115/new/

https://reviews.llvm.org/D83115





More information about the cfe-commits mailing list