Home
last modified time | relevance | path

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

/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
HDSemaDeclObjC.cpp784 for (auto typeParam : typeParams) { in actOnObjCTypeParamList() local
785 auto known = knownParams.find(typeParam->getIdentifier()); in actOnObjCTypeParamList()
787 Diag(typeParam->getLocation(), diag::err_objc_type_param_redecl) in actOnObjCTypeParamList()
788 << typeParam->getIdentifier() in actOnObjCTypeParamList()
791 typeParam->setInvalidDecl(); in actOnObjCTypeParamList()
793 knownParams.insert(std::make_pair(typeParam->getIdentifier(), typeParam)); in actOnObjCTypeParamList()
796 PushOnScopeChains(typeParam, S, /*AddToContext=*/false); in actOnObjCTypeParamList()
805 for (auto typeParam : *typeParamList) { in popObjCTypeParamList()
806 if (!typeParam->isInvalidDecl()) { in popObjCTypeParamList()
807 S->RemoveDecl(typeParam); in popObjCTypeParamList()
[all …]
HDSemaType.cpp917 ObjCTypeParamDecl *typeParam = nullptr; in applyObjCTypeArgs() local
920 typeParam = typeParams->begin()[i]; in applyObjCTypeArgs()
943 if (!typeParam) { in applyObjCTypeArgs()
949 QualType bound = typeParam->getUnderlyingType(); in applyObjCTypeArgs()
966 << typeArg << bound << typeParam->getDeclName(); in applyObjCTypeArgs()
967 S.Diag(typeParam->getLocation(), diag::note_objc_type_param_here) in applyObjCTypeArgs()
968 << typeParam->getDeclName(); in applyObjCTypeArgs()
981 if (!typeParam) { in applyObjCTypeArgs()
987 QualType bound = typeParam->getUnderlyingType(); in applyObjCTypeArgs()
994 << typeArg << bound << typeParam->getDeclName(); in applyObjCTypeArgs()
[all …]
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
HDDeclObjC.cpp333 for (auto *typeParam : *TypeParamList) in setTypeParamList()
334 typeParam->setDeclContext(this); in setTypeParamList()
1473 for (auto typeParam : *this) in gatherDefaultTypeArgs()
1474 typeArgs.push_back(typeParam->getUnderlyingType()); in gatherDefaultTypeArgs()
2059 for (auto *typeParam : *TypeParamList) in setTypeParamList()
2060 typeParam->setDeclContext(this); in setTypeParamList()
HDType.cpp1198 ObjCTypeParamDecl *typeParam = OTPTy->getDecl(); in VisitObjCTypeParamType() local
1201 QualType argType = TypeArgs[typeParam->getIndex()]; in VisitObjCTypeParamType()
1219 return typeParam->getUnderlyingType(); in VisitObjCTypeParamType()
1225 typeParam->getUnderlyingType()->castAs<ObjCObjectPointerType>(); in VisitObjCTypeParamType()
1230 return typeParam->getUnderlyingType(); in VisitObjCTypeParamType()
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
HDASTNodeTraverser.h292 for (const auto &typeParam : *typeParams) { in dumpObjCTypeParamList()
293 Visit(typeParam); in dumpObjCTypeParamList()
HDRecursiveASTVisitor.h1547 for (auto typeParam : *typeParamList) {
1548 TRY_TO(TraverseObjCTypeParamDecl(typeParam));
1561 for (auto typeParam : *typeParamList) {
1562 TRY_TO(TraverseObjCTypeParamDecl(typeParam));
/freebsd-11-stable/contrib/llvm-project/clang/lib/Parse/
HDParseObjc.cpp435 DeclResult typeParam = Actions.actOnObjCTypeParam( in parseObjCTypeParamListOrProtocolRefs() local
438 if (typeParam.isUsable()) in parseObjCTypeParamListOrProtocolRefs()
439 typeParams.push_back(typeParam.get()); in parseObjCTypeParamListOrProtocolRefs()
513 DeclResult typeParam = Actions.actOnObjCTypeParam( in parseObjCTypeParamListOrProtocolRefs() local
516 if (typeParam.isUsable()) in parseObjCTypeParamListOrProtocolRefs()
517 typeParams.push_back(typeParam.get()); in parseObjCTypeParamListOrProtocolRefs()
/freebsd-11-stable/contrib/llvm-project/clang/lib/Serialization/
HDASTReaderDecl.cpp1089 auto *typeParam = readDeclAs<ObjCTypeParamDecl>(); in ReadObjCTypeParamList() local
1090 if (!typeParam) in ReadObjCTypeParamList()
1093 typeParams.push_back(typeParam); in ReadObjCTypeParamList()
HDASTWriterDecl.cpp166 for (auto typeParam : *typeParams) { in AddObjCTypeParamList()
167 Record.AddDeclRef(typeParam); in AddObjCTypeParamList()