reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
134 if (DiagStorage) 135 return DiagStorage; 138 DiagStorage = Allocator->Allocate(); 141 DiagStorage = new Storage; 143 return DiagStorage; 147 if (!DiagStorage) 161 Allocator->Deallocate(DiagStorage); 163 delete DiagStorage; 164 DiagStorage = nullptr; 168 if (!DiagStorage) 169 DiagStorage = getStorage(); 171 DiagStorage->DiagRanges.push_back(R); 178 if (!DiagStorage) 179 DiagStorage = getStorage(); 181 DiagStorage->FixItHints.push_back(Hint); 196 if (Other.DiagStorage) { 197 DiagStorage = getStorage(); 198 *DiagStorage = *Other.DiagStorage; 198 *DiagStorage = *Other.DiagStorage; 203 : DiagID(Other.DiagID), DiagStorage(Other.DiagStorage), 205 Other.DiagStorage = nullptr; 211 if (Other.DiagStorage) 212 *this->DiagStorage = *Other.DiagStorage; 212 *this->DiagStorage = *Other.DiagStorage; 236 if (Other.DiagStorage) { 237 if (!DiagStorage) 238 DiagStorage = getStorage(); 240 *DiagStorage = *Other.DiagStorage; 240 *DiagStorage = *Other.DiagStorage; 252 DiagStorage = Other.DiagStorage; 252 DiagStorage = Other.DiagStorage; 255 Other.DiagStorage = nullptr; 265 std::swap(DiagStorage, PD.DiagStorage); 265 std::swap(DiagStorage, PD.DiagStorage); 272 if (!DiagStorage) 273 DiagStorage = getStorage(); 275 assert(DiagStorage->NumDiagArgs < Storage::MaxArguments && 277 DiagStorage->DiagArgumentsKind[DiagStorage->NumDiagArgs] = Kind; 277 DiagStorage->DiagArgumentsKind[DiagStorage->NumDiagArgs] = Kind; 278 DiagStorage->DiagArgumentsVal[DiagStorage->NumDiagArgs++] = V; 278 DiagStorage->DiagArgumentsVal[DiagStorage->NumDiagArgs++] = V; 282 if (!DiagStorage) 283 DiagStorage = getStorage(); 285 assert(DiagStorage->NumDiagArgs < Storage::MaxArguments && 287 DiagStorage->DiagArgumentsKind[DiagStorage->NumDiagArgs] 287 DiagStorage->DiagArgumentsKind[DiagStorage->NumDiagArgs] 289 DiagStorage->DiagArgumentsStr[DiagStorage->NumDiagArgs++] = V; 289 DiagStorage->DiagArgumentsStr[DiagStorage->NumDiagArgs++] = V; 293 if (!DiagStorage) 297 for (unsigned i = 0, e = DiagStorage->NumDiagArgs; i != e; ++i) { 298 if ((DiagnosticsEngine::ArgumentKind)DiagStorage->DiagArgumentsKind[i] 300 DB.AddString(DiagStorage->DiagArgumentsStr[i]); 302 DB.AddTaggedVal(DiagStorage->DiagArgumentsVal[i], 303 (DiagnosticsEngine::ArgumentKind)DiagStorage->DiagArgumentsKind[i]); 307 for (const CharSourceRange &Range : DiagStorage->DiagRanges) 311 for (const FixItHint &Fix : DiagStorage->FixItHints) 334 bool hasStorage() const { return DiagStorage != nullptr; } 338 assert(DiagStorage && "No diagnostic storage?"); 339 assert(I < DiagStorage->NumDiagArgs && "Not enough diagnostic args"); 340 assert(DiagStorage->DiagArgumentsKind[I] 342 return DiagStorage->DiagArgumentsStr[I];