Home
last modified time | relevance | path

Searched refs:newTypeParam (Results 1 – 1 of 1) sorted by relevance

/external/clang/lib/Sema/
DSemaDeclObjC.cpp776 ObjCTypeParamDecl *newTypeParam = newTypeParams->begin()[i]; in checkTypeParamListConsistency() local
779 if (newTypeParam->getVariance() != prevTypeParam->getVariance()) { in checkTypeParamListConsistency()
780 if (newTypeParam->getVariance() == ObjCTypeParamVariance::Invariant && in checkTypeParamListConsistency()
784 newTypeParam->setVariance(prevTypeParam->getVariance()); in checkTypeParamListConsistency()
796 SourceLocation diagLoc = newTypeParam->getVarianceLoc(); in checkTypeParamListConsistency()
798 diagLoc = newTypeParam->getLocStart(); in checkTypeParamListConsistency()
802 << static_cast<unsigned>(newTypeParam->getVariance()) in checkTypeParamListConsistency()
803 << newTypeParam->getDeclName() in checkTypeParamListConsistency()
808 diag << FixItHint::CreateRemoval(newTypeParam->getVarianceLoc()); in checkTypeParamListConsistency()
817 if (newTypeParam->getVariance() in checkTypeParamListConsistency()
[all …]