Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaDeclObjC.cpp775 ObjCTypeParamDecl *prevTypeParam = prevTypeParams->begin()[i]; in checkTypeParamListConsistency() local
779 if (newTypeParam->getVariance() != prevTypeParam->getVariance()) { in checkTypeParamListConsistency()
784 newTypeParam->setVariance(prevTypeParam->getVariance()); in checkTypeParamListConsistency()
785 } else if (prevTypeParam->getVariance() in checkTypeParamListConsistency()
787 !(isa<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) && in checkTypeParamListConsistency()
788 cast<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) in checkTypeParamListConsistency()
789 ->getDefinition() == prevTypeParam->getDeclContext())) { in checkTypeParamListConsistency()
804 << static_cast<unsigned>(prevTypeParam->getVariance()) in checkTypeParamListConsistency()
805 << prevTypeParam->getDeclName(); in checkTypeParamListConsistency()
806 switch (prevTypeParam->getVariance()) { in checkTypeParamListConsistency()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaDeclObjC.cpp852 ObjCTypeParamDecl *prevTypeParam = prevTypeParams->begin()[i]; in checkTypeParamListConsistency() local
856 if (newTypeParam->getVariance() != prevTypeParam->getVariance()) { in checkTypeParamListConsistency()
861 newTypeParam->setVariance(prevTypeParam->getVariance()); in checkTypeParamListConsistency()
862 } else if (prevTypeParam->getVariance() in checkTypeParamListConsistency()
864 !(isa<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) && in checkTypeParamListConsistency()
865 cast<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) in checkTypeParamListConsistency()
866 ->getDefinition() == prevTypeParam->getDeclContext())) { in checkTypeParamListConsistency()
881 << static_cast<unsigned>(prevTypeParam->getVariance()) in checkTypeParamListConsistency()
882 << prevTypeParam->getDeclName(); in checkTypeParamListConsistency()
883 switch (prevTypeParam->getVariance()) { in checkTypeParamListConsistency()
[all …]