Lines Matching refs:Allocator
126 /// \brief Allocator used to allocate storage for this diagnostic.
127 StorageAllocator *Allocator;
134 if (Allocator)
135 DiagStorage = Allocator->Allocate();
137 assert(Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0)));
157 if (Allocator)
158 Allocator->Deallocate(DiagStorage);
159 else if (Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0)))
189 : DiagID(0), DiagStorage(0), Allocator(0) { }
191 PartialDiagnostic(unsigned DiagID, StorageAllocator &Allocator)
192 : DiagID(DiagID), DiagStorage(0), Allocator(&Allocator) { }
195 : DiagID(Other.DiagID), DiagStorage(0), Allocator(Other.Allocator)
205 Allocator(reinterpret_cast<StorageAllocator *>(~uintptr_t(0)))
211 PartialDiagnostic(const Diagnostic &Other, StorageAllocator &Allocator)
212 : DiagID(Other.getID()), DiagStorage(0), Allocator(&Allocator)
252 std::swap(Allocator, PD.Allocator);