reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
2211 if (New->isInvalidDecl()) return; 2216 const IdentifierInfo *TypeID = New->getIdentifier(); 2223 QualType T = New->getUnderlyingType(); 2233 New->setTypeForDecl(Context.getObjCIdType().getTypePtr()); 2239 Context.setObjCClassRedefinitionType(New->getUnderlyingType()); 2241 New->setTypeForDecl(Context.getObjCClassType().getTypePtr()); 2246 Context.setObjCSelRedefinitionType(New->getUnderlyingType()); 2248 New->setTypeForDecl(Context.getObjCSelType().getTypePtr()); 2257 Diag(New->getLocation(), diag::err_redefinition_different_kind) 2258 << New->getDeclName(); 2262 notePreviousDefinition(OldD, New->getLocation()); 2264 return New->setInvalidDecl(); 2269 return New->setInvalidDecl(); 2273 auto *NewTag = New->getAnonDeclWithTypedefName(); 2280 New->setTypeForDecl(OldTD->getTypeForDecl()); 2282 New->setModedTypeSourceInfo(OldTD->getTypeSourceInfo(), 2285 New->setTypeSourceInfo(OldTD->getTypeSourceInfo()); 2307 if (isIncompatibleTypedef(Old, New)) 2313 New->setPreviousDecl(Typedef); 2314 mergeDeclAttributes(New, Old); 2352 Diag(New->getLocation(), diag::err_redefinition) 2353 << New->getDeclName(); 2354 notePreviousDefinition(Old, New->getLocation()); 2355 return New->setInvalidDecl(); 2370 Context.getSourceManager().isInSystemHeader(New->getLocation()))) 2373 Diag(New->getLocation(), diag::ext_redefinition_of_typedef) 2374 << New->getDeclName(); 2375 notePreviousDefinition(Old, New->getLocation());