[clang] [clang][dataflow] Model the fields that are accessed via inline accessors (PR #66368)
    Kinuko Yasuda via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Fri Sep 15 17:07:52 PDT 2023
    
    
  
================
@@ -1446,6 +1446,51 @@ TEST(TransferTest, BaseClassInitializer) {
       llvm::Succeeded());
 }
 
+TEST(TransferTest, StructModeledFieldsWithAccessor) {
+  std::string Code = R"(
+    class S {
+      int *P;
+      int *Q;
+      int X;
+      int Y;
+      int Z;
+    public:
+      int *getPtr() const { return P; }
+      int *getPtrNonConst() { return Q; }
+      int getInt(int i) const { return X; }
----------------
kinu wrote:
Done.
https://github.com/llvm/llvm-project/pull/66368
    
    
More information about the cfe-commits
mailing list