Home | History | Annotate | Download | only in Basic

Lines Matching refs:DiagStorage

120   mutable Storage *DiagStorage;
127 if (DiagStorage)
128 return DiagStorage;
131 DiagStorage = Allocator->Allocate();
134 DiagStorage = new Storage;
136 return DiagStorage;
140 if (!DiagStorage)
154 Allocator->Deallocate(DiagStorage);
156 delete DiagStorage;
157 DiagStorage = nullptr;
161 if (!DiagStorage)
162 DiagStorage = getStorage();
164 DiagStorage->DiagRanges.push_back(R);
171 if (!DiagStorage)
172 DiagStorage = getStorage();
174 DiagStorage->FixItHints.push_back(Hint);
182 : DiagID(0), DiagStorage(nullptr), Allocator(nullptr) { }
185 : DiagID(DiagID), DiagStorage(nullptr), Allocator(&Allocator) { }
188 : DiagID(Other.DiagID), DiagStorage(nullptr), Allocator(Other.Allocator)
190 if (Other.DiagStorage) {
191 DiagStorage = getStorage();
192 *DiagStorage = *Other.DiagStorage;
197 : DiagID(Other.DiagID), DiagStorage(Other.DiagStorage),
199 Other.DiagStorage = nullptr;
202 PartialDiagnostic(const PartialDiagnostic &Other, Storage *DiagStorage)
203 : DiagID(Other.DiagID), DiagStorage(DiagStorage),
206 if (Other.DiagStorage)
207 *this->DiagStorage = *Other.DiagStorage;
211 : DiagID(Other.getID()), DiagStorage(nullptr), Allocator(&Allocator)
232 if (Other.DiagStorage) {
233 if (!DiagStorage)
234 DiagStorage = getStorage();
236 *DiagStorage = *Other.DiagStorage;
248 DiagStorage = Other.DiagStorage;
251 Other.DiagStorage = nullptr;
261 std::swap(DiagStorage, PD.DiagStorage);
268 if (!DiagStorage)
269 DiagStorage = getStorage();
271 assert(DiagStorage->NumDiagArgs < Storage::MaxArguments &&
273 DiagStorage->DiagArgumentsKind[DiagStorage->NumDiagArgs] = Kind;
274 DiagStorage->DiagArgumentsVal[DiagStorage->NumDiagArgs++] = V;
278 if (!DiagStorage)
279 DiagStorage = getStorage();
281 assert(DiagStorage->NumDiagArgs < Storage::MaxArguments &&
283 DiagStorage->DiagArgumentsKind[DiagStorage->NumDiagArgs]
285 DiagStorage->DiagArgumentsStr[DiagStorage->NumDiagArgs++] = V;
289 if (!DiagStorage)
293 for (unsigned i = 0, e = DiagStorage->NumDiagArgs; i != e; ++i) {
294 if ((DiagnosticsEngine::ArgumentKind)DiagStorage->DiagArgumentsKind[i]
296 DB.AddString(DiagStorage->DiagArgumentsStr[i]);
298 DB.AddTaggedVal(DiagStorage->DiagArgumentsVal[i],
299 (DiagnosticsEngine::ArgumentKind)DiagStorage->DiagArgumentsKind[i]);
303 for (const CharSourceRange &Range : DiagStorage->DiagRanges)
307 for (const FixItHint &Fix : DiagStorage->FixItHints)
330 bool hasStorage() const { return DiagStorage != nullptr; }