Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaDeclObjC.cpp785 for (auto *typeParam : typeParams) { in actOnObjCTypeParamList() local
786 auto known = knownParams.find(typeParam->getIdentifier()); in actOnObjCTypeParamList()
788 Diag(typeParam->getLocation(), diag::err_objc_type_param_redecl) in actOnObjCTypeParamList()
789 << typeParam->getIdentifier() in actOnObjCTypeParamList()
792 typeParam->setInvalidDecl(); in actOnObjCTypeParamList()
794 knownParams.insert(std::make_pair(typeParam->getIdentifier(), typeParam)); in actOnObjCTypeParamList()
797 PushOnScopeChains(typeParam, S, /*AddToContext=*/false); in actOnObjCTypeParamList()
806 for (auto *typeParam : *typeParamList) { in popObjCTypeParamList()
807 if (!typeParam->isInvalidDecl()) { in popObjCTypeParamList()
808 S->RemoveDecl(typeParam); in popObjCTypeParamList()
[all …]
H A DSemaType.cpp916 ObjCTypeParamDecl *typeParam = nullptr; in applyObjCTypeArgs() local
919 typeParam = typeParams->begin()[i]; in applyObjCTypeArgs()
942 if (!typeParam) { in applyObjCTypeArgs()
948 QualType bound = typeParam->getUnderlyingType(); in applyObjCTypeArgs()
965 << typeArg << bound << typeParam->getDeclName(); in applyObjCTypeArgs()
966 S.Diag(typeParam->getLocation(), diag::note_objc_type_param_here) in applyObjCTypeArgs()
967 << typeParam->getDeclName(); in applyObjCTypeArgs()
980 if (!typeParam) { in applyObjCTypeArgs()
986 QualType bound = typeParam->getUnderlyingType(); in applyObjCTypeArgs()
993 << typeArg << bound << typeParam->getDeclName(); in applyObjCTypeArgs()
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DDeclObjC.cpp347 for (auto *typeParam : *TypeParamList) in setTypeParamList()
348 typeParam->setDeclContext(this); in setTypeParamList()
1534 for (auto *typeParam : *this) in gatherDefaultTypeArgs()
1535 typeArgs.push_back(typeParam->getUnderlyingType()); in gatherDefaultTypeArgs()
2183 for (auto *typeParam : *TypeParamList) in setTypeParamList()
2184 typeParam->setDeclContext(this); in setTypeParamList()
H A DType.cpp1272 ObjCTypeParamDecl *typeParam = OTPTy->getDecl(); in VisitObjCTypeParamType() local
1275 QualType argType = TypeArgs[typeParam->getIndex()]; in VisitObjCTypeParamType()
1293 return typeParam->getUnderlyingType(); in VisitObjCTypeParamType()
1299 typeParam->getUnderlyingType()->castAs<ObjCObjectPointerType>(); in VisitObjCTypeParamType()
1304 return typeParam->getUnderlyingType(); in VisitObjCTypeParamType()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DASTNodeTraverser.h336 for (const auto &typeParam : *typeParams) { in dumpObjCTypeParamList()
337 Visit(typeParam); in dumpObjCTypeParamList()
H A DRecursiveASTVisitor.h1647 for (auto typeParam : *typeParamList) {
1648 TRY_TO(TraverseObjCTypeParamDecl(typeParam));
1665 for (auto typeParam : *typeParamList) {
1666 TRY_TO(TraverseObjCTypeParamDecl(typeParam));
/openbsd-src/gnu/llvm/clang/lib/Parse/
H A DParseObjc.cpp466 DeclResult typeParam = Actions.actOnObjCTypeParam( in parseObjCTypeParamListOrProtocolRefs() local
469 if (typeParam.isUsable()) in parseObjCTypeParamListOrProtocolRefs()
470 typeParams.push_back(typeParam.get()); in parseObjCTypeParamListOrProtocolRefs()
544 DeclResult typeParam = Actions.actOnObjCTypeParam( in parseObjCTypeParamListOrProtocolRefs() local
547 if (typeParam.isUsable()) in parseObjCTypeParamListOrProtocolRefs()
548 typeParams.push_back(typeParam.get()); in parseObjCTypeParamListOrProtocolRefs()
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DASTReaderDecl.cpp1189 auto *typeParam = readDeclAs<ObjCTypeParamDecl>(); in ReadObjCTypeParamList() local
1190 if (!typeParam) in ReadObjCTypeParamList()
1193 typeParams.push_back(typeParam); in ReadObjCTypeParamList()
H A DASTWriterDecl.cpp173 for (auto *typeParam : *typeParams) { in AddObjCTypeParamList()
174 Record.AddDeclRef(typeParam); in AddObjCTypeParamList()
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCIndex.cpp1160 for (auto *typeParam : *typeParamList) { in VisitObjCTypeParamList()
1162 if (Visit(MakeCXCursor(typeParam, TU, RegionOfInterest))) in VisitObjCTypeParamList()