[PATCH] D126801: [analyzer][NFC] Add partial specializations for ProgramStateTraits

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 2 07:26:22 PDT 2022


martong accepted this revision.
martong added a comment.
This revision is now accepted and ready to land.

LGTM!



================
Comment at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h:292
 
-    static void *MakeVoidPtr(data_type d) {
-      return const_cast<void *>(d);
-    }
-  };
+  // Partial specialization for non-const and const pointers.
+  template <typename T>
----------------



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

https://reviews.llvm.org/D126801



More information about the cfe-commits mailing list