[PATCH] D95877: [analyzer] Fix static_cast on pointer-to-member handling

Deep Majumder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 3 05:52:50 PST 2021


RedDocMD added a comment.

@vsavchenko could you please see the current logic if it is better now?



================
Comment at: clang/test/Analysis/pointer-to-member.cpp:304
+  grandpa.field = 10;
+  int Grandfather::*gpf1 = static_cast<int Grandfather::*>(sf);
+  int Grandfather::*gpf2 = static_cast<int Grandfather::*>(static_cast<int Father::*>(sf));
----------------
vsavchenko wrote:
> What about other type of casts?
I am looking into this.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D95877



More information about the cfe-commits mailing list