reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
76 P->Pointee = &B;
tools/clang/lib/AST/Interp/Pointer.cpp19 Pointer::Pointer(const Pointer &P) : Pointer(P.Pointee, P.Base, P.Offset) {} 22 : Pointee(P.Pointee), Base(P.Base), Offset(P.Offset) { 23 if (Pointee) 24 Pointee->movePointer(&P, this); 35 if (Pointee) { 36 Pointee->removePointer(this); 37 Pointee->cleanup(); 42 Block *Old = Pointee; 44 if (Pointee) 45 Pointee->removePointer(this); 50 Pointee = P.Pointee; 50 Pointee = P.Pointee; 51 if (Pointee) 52 Pointee->addPointer(this); 59 Block *Old = Pointee; 61 if (Pointee) 62 Pointee->removePointer(this); 67 Pointee = P.Pointee; 67 Pointee = P.Pointee; 68 if (Pointee) 69 Pointee->movePointer(&P, this); 136 assert(Pointee && "Cannot check if null pointer was initialized"); 139 if (Pointee->IsStatic) 155 assert(Pointee && "Cannot initialize null pointer"); 158 if (!Pointee->IsStatic) { 188 return A.Pointee == B.Pointee; 188 return A.Pointee == B.Pointee;tools/clang/lib/AST/Interp/Pointer.h
60 return Pointer(Pointee, RootPtrMark, getDeclDesc()->getSize()); 66 return Pointer(Pointee, Base, Base + Off); 72 return Pointer(Pointee, Field, Field); 83 return Pointer(Pointee, 0, Offset == 0 ? Offset : PastEndMark); 87 return Pointer(Pointee, Base, PastEndMark); 96 return Pointer(Pointee, Base, Offset + sizeof(InitMap *)); 101 return Pointer(Pointee, Offset, Offset); 108 return Pointer(Pointee, NewBase, NewBase); 120 return Pointer(Pointee, Base, Base + getSize() + Adjust); 129 return Pointer(Pointee, RootPtrMark, 0); 136 return Pointer(Pointee, Next, Offset); 140 bool isZero() const { return Pointee == nullptr; } 142 bool isLive() const { return Pointee && !Pointee->IsDead; } 142 bool isLive() const { return Pointee && !Pointee->IsDead; } 147 Descriptor *getDeclDesc() const { return Pointee->Desc; } 154 return Pointer(Pointee, Base, 0); 158 return Pointer(Pointee, NewBase, NewBase); 164 return Pointer(Pointee, Base, 0); 167 return Pointer(Pointee, Base, Base); 229 bool isExtern() const { return Pointee->isExtern(); } 231 bool isStatic() const { return Pointee->isStatic(); } 233 bool isTemporary() const { return Pointee->isTemporary(); } 252 llvm::Optional<unsigned> getDeclID() const { return Pointee->getDeclID(); } 282 return *reinterpret_cast<T *>(Pointee->data() + Offset); 287 return reinterpret_cast<T *>(Pointee->data())[I]; 305 if (Pointee) 306 OS << Pointee->getSize(); 324 return reinterpret_cast<InlineDescriptor *>(Pointee->data() + Offset) - 1; 329 return *reinterpret_cast<InitMap **>(Pointee->data() + Base);