[PATCH] D153960: [clang][dataflow] Implement support for pointers to members.

Martin Böhme via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 28 07:27:06 PDT 2023


mboehme added a comment.

PTAL



================
Comment at: clang/lib/Analysis/FlowSensitive/Transfer.cpp:447
-      StorageLocation *PointeeLoc = Env.getStorageLocationStrict(*SubExpr);
-      if (PointeeLoc == nullptr)
         break;
----------------
While I'm here, streamline the code for the not-pointer-to-member case.


================
Comment at: clang/unittests/Analysis/FlowSensitive/TransferTest.cpp:2529
     struct Foo {};
-    void target(Foo *Foo) {
       int Foo::*MemberPointer = nullptr;
----------------
Noticed that the parameter here was unused, so I removed it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153960



More information about the cfe-commits mailing list