[clang] [analyzer][NFC] Make RegionStore dumps deterministic (PR #115615)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 9 10:33:04 PST 2024


================
@@ -232,27 +233,86 @@ class RegionBindingsRef : public llvm::ImmutableMapRef<const MemRegion *,
 
   void printJson(raw_ostream &Out, const char *NL = "\n",
                  unsigned int Space = 0, bool IsDot = false) const {
-    for (iterator I = begin(), E = end(); I != E; ++I) {
-      // TODO: We might need a .printJson for I.getKey() as well.
----------------
steakhal wrote:

I dropped this TODO. It's not relevant. The key is always a base memory region, which obeys the json rules.

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


More information about the cfe-commits mailing list