Home | History | Annotate | Download | only in Basic

Lines Matching refs:Other

187   PartialDiagnostic(const PartialDiagnostic &Other)
188 : DiagID(Other.DiagID), DiagStorage(nullptr), Allocator(Other.Allocator)
190 if (Other.DiagStorage) {
192 *DiagStorage = *Other.DiagStorage;
196 PartialDiagnostic(PartialDiagnostic &&Other)
197 : DiagID(Other.DiagID), DiagStorage(Other.DiagStorage),
198 Allocator(Other.Allocator) {
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;
210 PartialDiagnostic(const Diagnostic &Other, StorageAllocator &Allocator)
211 : DiagID(Other.getID()), DiagStorage(nullptr), Allocator(&Allocator)
214 for (unsigned I = 0, N = Other.getNumArgs(); I != N; ++I) {
215 if (Other.getArgKind(I) == DiagnosticsEngine::ak_std_string)
216 AddString(Other.getArgStdStr(I));
218 AddTaggedVal(Other.getRawArg(I), Other.getArgKind(I));
222 for (unsigned I = 0, N = Other.getNumRanges(); I != N; ++I)
223 AddSourceRange(Other.getRange(I));
226 for (unsigned I = 0, N = Other.getNumFixItHints(); I != N; ++I)
227 AddFixItHint(Other.getFixItHint(I));
230 PartialDiagnostic &operator=(const PartialDiagnostic &Other) {
231 DiagID = Other.DiagID;
232 if (Other.DiagStorage) {
236 *DiagStorage = *Other.DiagStorage;
244 PartialDiagnostic &operator=(PartialDiagnostic &&Other) {
247 DiagID = Other.DiagID;
248 DiagStorage = Other.DiagStorage;
249 Allocator = Other.Allocator;
251 Other.DiagStorage = nullptr;
367 // other arguments that derive from DeclContext (e.g., RecordDecls) will not