Lines Matching refs:readDeclAs

144     T *readDeclAs() {  in readDeclAs()  function in clang::ASTDeclReader
145 return Record.readDeclAs<T>(); in readDeclAs()
578 auto *SemaDC = readDeclAs<DeclContext>(); in VisitDecl()
579 auto *LexicalDC = readDeclAs<DeclContext>(); in VisitDecl()
698 if (auto *Template = readDeclAs<TypeAliasTemplateDecl>()) in VisitTypeAliasDecl()
783 if (auto *InstED = readDeclAs<EnumDecl>()) { in VisitEnumDecl()
899 NamedDecl *ND = Record.readDeclAs<NamedDecl>(); in VisitFunctionDecl()
914 FD->setDescribedFunctionTemplate(readDeclAs<FunctionTemplateDecl>()); in VisitFunctionDecl()
917 auto *InstFD = readDeclAs<FunctionDecl>(); in VisitFunctionDecl()
926 auto *Template = readDeclAs<FunctionTemplateDecl>(); in VisitFunctionDecl()
958 auto *FD = readDeclAs<FunctionDecl>(); in VisitFunctionDecl()
976 auto *CanonTemplate = readDeclAs<FunctionTemplateDecl>(); in VisitFunctionDecl()
1003 TemplDecls.addDecl(readDeclAs<NamedDecl>()); in VisitFunctionDecl()
1030 Params.push_back(readDeclAs<ParmVarDecl>()); in VisitFunctionDecl()
1042 MD->setSelfDecl(readDeclAs<ImplicitParamDecl>()); in VisitObjCMethodDecl()
1043 MD->setCmdDecl(readDeclAs<ImplicitParamDecl>()); in VisitObjCMethodDecl()
1056 readDeclAs<ObjCMethodDecl>()); in VisitObjCMethodDecl()
1068 Params.push_back(readDeclAs<ParmVarDecl>()); in VisitObjCMethodDecl()
1103 auto *typeParam = readDeclAs<ObjCTypeParamDecl>(); in ReadObjCTypeParamList()
1130 Protocols.push_back(readDeclAs<ObjCProtocolDecl>()); in ReadObjCDefinitionData()
1143 Protocols.push_back(readDeclAs<ObjCProtocolDecl>()); in ReadObjCDefinitionData()
1205 ProtoRefs.push_back(readDeclAs<ObjCProtocolDecl>()); in ReadObjCDefinitionData()
1263 CD->ClassInterface = readDeclAs<ObjCInterfaceDecl>(); in VisitObjCCategoryDecl()
1269 ProtoRefs.push_back(readDeclAs<ObjCProtocolDecl>()); in VisitObjCCategoryDecl()
1286 CAD->setClassInterface(readDeclAs<ObjCInterfaceDecl>()); in VisitObjCCompatibleAliasDecl()
1307 D->setGetterMethodDecl(readDeclAs<ObjCMethodDecl>()); in VisitObjCPropertyDecl()
1308 D->setSetterMethodDecl(readDeclAs<ObjCMethodDecl>()); in VisitObjCPropertyDecl()
1309 D->setPropertyIvarDecl(readDeclAs<ObjCIvarDecl>()); in VisitObjCPropertyDecl()
1314 D->setClassInterface(readDeclAs<ObjCInterfaceDecl>()); in VisitObjCImplDecl()
1324 D->setSuperClass(readDeclAs<ObjCInterfaceDecl>()); in VisitObjCImplementationDecl()
1338 D->setPropertyDecl(readDeclAs<ObjCPropertyDecl>()); in VisitObjCPropertyImplDecl()
1339 D->PropertyIvarDecl = readDeclAs<ObjCIvarDecl>(); in VisitObjCPropertyImplDecl()
1341 D->setGetterMethodDecl(readDeclAs<ObjCMethodDecl>()); in VisitObjCPropertyImplDecl()
1342 D->setSetterMethodDecl(readDeclAs<ObjCMethodDecl>()); in VisitObjCPropertyImplDecl()
1362 if (auto *Tmpl = readDeclAs<FieldDecl>()) in VisitFieldDecl()
1406 FD->Chaining[I] = readDeclAs<NamedDecl>(); in VisitIndirectFieldDecl()
1476 VD->setDescribedVarTemplate(readDeclAs<VarTemplateDecl>()); in VisitVarDeclImpl()
1479 auto *Tmpl = readDeclAs<VarDecl>(); in VisitVarDeclImpl()
1521 BDs[I] = readDeclAs<BindingDecl>(); in VisitDecompositionDecl()
1545 Params.push_back(readDeclAs<ParmVarDecl>()); in VisitBlockDecl()
1559 auto *decl = readDeclAs<VarDecl>(); in VisitBlockDecl()
1577 CD->setParam(I, readDeclAs<ImplicitParamDecl>()); in VisitCapturedDecl()
1579 CD->setContextParam(I, readDeclAs<ImplicitParamDecl>()); in VisitCapturedDecl()
1638 D->Namespace = readDeclAs<NamedDecl>(); in VisitNamespaceAliasDecl()
1647 D->FirstUsingShadow.setPointer(readDeclAs<UsingShadowDecl>()); in VisitUsingDecl()
1649 if (auto *Pattern = readDeclAs<NamedDecl>()) in VisitUsingDecl()
1656 D->InstantiatedFrom = readDeclAs<NamedDecl>(); in VisitUsingPackDecl()
1659 Expansions[I] = readDeclAs<NamedDecl>(); in VisitUsingPackDecl()
1666 D->Underlying = readDeclAs<NamedDecl>(); in VisitUsingShadowDecl()
1668 D->UsingOrNextShadow = readDeclAs<NamedDecl>(); in VisitUsingShadowDecl()
1669 auto *Pattern = readDeclAs<UsingShadowDecl>(); in VisitUsingShadowDecl()
1678 D->NominatedBaseClassShadowDecl = readDeclAs<ConstructorUsingShadowDecl>(); in VisitConstructorUsingShadowDecl()
1679 D->ConstructedBaseClassShadowDecl = readDeclAs<ConstructorUsingShadowDecl>(); in VisitConstructorUsingShadowDecl()
1688 D->NominatedNamespace = readDeclAs<NamedDecl>(); in VisitUsingDirectiveDecl()
1689 D->CommonAncestor = readDeclAs<DeclContext>(); in VisitUsingDirectiveDecl()
1768 auto *Var = readDeclAs<VarDecl>(); in ReadCXXDefinitionData()
1908 auto *Template = readDeclAs<ClassTemplateDecl>(); in VisitCXXRecordDeclImpl()
1922 auto *RD = readDeclAs<CXXRecordDecl>(); in VisitCXXRecordDeclImpl()
1968 if (auto *MD = readDeclAs<CXXMethodDecl>()) in VisitCXXMethodDecl()
1983 auto *Shadow = readDeclAs<ConstructorUsingShadowDecl>(); in VisitCXXConstructorDecl()
1984 auto *Ctor = readDeclAs<CXXConstructorDecl>(); in VisitCXXConstructorDecl()
1995 if (auto *OperatorDelete = readDeclAs<FunctionDecl>()) { in VisitCXXDestructorDecl()
2029 D->Friend = readDeclAs<NamedDecl>(); in VisitFriendDecl()
2048 D->Friend = readDeclAs<NamedDecl>(); in VisitFriendTemplateDecl()
2090 if (auto *RTD = readDeclAs<RedeclarableTemplateDecl>()) { in VisitRedeclarableTemplateDecl()
2183 auto *CanonPattern = readDeclAs<ClassTemplateDecl>(); in VisitClassTemplateSpecializationDeclImpl()
2237 readDeclAs<ClassTemplatePartialSpecializationDecl>()); in VisitClassTemplatePartialSpecializationDecl()
2245 D->Specialization = readDeclAs<CXXMethodDecl>(); in VisitClassScopeFunctionSpecializationDecl()
2309 auto *CanonPattern = readDeclAs<VarTemplateDecl>(); in VisitVarTemplateSpecializationDeclImpl()
2340 readDeclAs<VarTemplatePartialSpecializationDecl>()); in VisitVarTemplatePartialSpecializationDecl()
2353 ConceptDecl *NamedConcept = Record.readDeclAs<ConceptDecl>(); in VisitTemplateTypeParmDecl()
2428 D->ExtendingDecl = readDeclAs<ValueDecl>(); in VisitLifetimeExtendedTemporaryDecl()
4442 auto *Anon = readDeclAs<NamespaceDecl>(); in UpdateDecl()
4575 readDeclAs<ClassTemplatePartialSpecializationDecl>(); in UpdateDecl()
4608 auto *Del = readDeclAs<FunctionDecl>(); in UpdateDecl()