Lines Matching refs:readDeclAs
147 T *readDeclAs() { in readDeclAs() function in clang::ASTDeclReader
148 return Record.readDeclAs<T>(); in readDeclAs()
618 auto *SemaDC = readDeclAs<DeclContext>(); in VisitDecl()
620 HasStandaloneLexicalDC ? readDeclAs<DeclContext>() : nullptr; in VisitDecl()
748 if (auto *Template = readDeclAs<TypeAliasTemplateDecl>()) in VisitTypeAliasDecl()
843 if (auto *InstED = readDeclAs<EnumDecl>()) { in VisitEnumDecl()
950 FD->setInstantiatedFromDecl(readDeclAs<FunctionDecl>()); in VisitFunctionDecl()
953 auto *Template = readDeclAs<FunctionTemplateDecl>(); in VisitFunctionDecl()
959 auto *InstFD = readDeclAs<FunctionDecl>(); in VisitFunctionDecl()
967 auto *Template = readDeclAs<FunctionTemplateDecl>(); in VisitFunctionDecl()
988 auto *FD = readDeclAs<FunctionDecl>(); in VisitFunctionDecl()
1006 auto *CanonTemplate = readDeclAs<FunctionTemplateDecl>(); in VisitFunctionDecl()
1033 Candidates.addDecl(readDeclAs<NamedDecl>()); in VisitFunctionDecl()
1116 NamedDecl *ND = Record.readDeclAs<NamedDecl>(); in VisitFunctionDecl()
1157 Params.push_back(readDeclAs<ParmVarDecl>()); in VisitFunctionDecl()
1169 MD->setSelfDecl(readDeclAs<ImplicitParamDecl>()); in VisitObjCMethodDecl()
1170 MD->setCmdDecl(readDeclAs<ImplicitParamDecl>()); in VisitObjCMethodDecl()
1183 readDeclAs<ObjCMethodDecl>()); in VisitObjCMethodDecl()
1196 Params.push_back(readDeclAs<ParmVarDecl>()); in VisitObjCMethodDecl()
1231 auto *typeParam = readDeclAs<ObjCTypeParamDecl>(); in ReadObjCTypeParamList()
1260 Protocols.push_back(readDeclAs<ObjCProtocolDecl>()); in ReadObjCDefinitionData()
1273 Protocols.push_back(readDeclAs<ObjCProtocolDecl>()); in ReadObjCDefinitionData()
1378 ProtoRefs.push_back(readDeclAs<ObjCProtocolDecl>()); in ReadObjCDefinitionData()
1448 CD->ClassInterface = readDeclAs<ObjCInterfaceDecl>(); in VisitObjCCategoryDecl()
1454 ProtoRefs.push_back(readDeclAs<ObjCProtocolDecl>()); in VisitObjCCategoryDecl()
1471 CAD->setClassInterface(readDeclAs<ObjCInterfaceDecl>()); in VisitObjCCompatibleAliasDecl()
1492 D->setGetterMethodDecl(readDeclAs<ObjCMethodDecl>()); in VisitObjCPropertyDecl()
1493 D->setSetterMethodDecl(readDeclAs<ObjCMethodDecl>()); in VisitObjCPropertyDecl()
1494 D->setPropertyIvarDecl(readDeclAs<ObjCIvarDecl>()); in VisitObjCPropertyDecl()
1499 D->setClassInterface(readDeclAs<ObjCInterfaceDecl>()); in VisitObjCImplDecl()
1509 D->setSuperClass(readDeclAs<ObjCInterfaceDecl>()); in VisitObjCImplementationDecl()
1523 D->setPropertyDecl(readDeclAs<ObjCPropertyDecl>()); in VisitObjCPropertyImplDecl()
1524 D->PropertyIvarDecl = readDeclAs<ObjCIvarDecl>(); in VisitObjCPropertyImplDecl()
1526 D->setGetterMethodDecl(readDeclAs<ObjCMethodDecl>()); in VisitObjCPropertyImplDecl()
1527 D->setSetterMethodDecl(readDeclAs<ObjCMethodDecl>()); in VisitObjCPropertyImplDecl()
1545 if (auto *Tmpl = readDeclAs<FieldDecl>()) in VisitFieldDecl()
1600 FD->Chaining[I] = readDeclAs<NamedDecl>(); in VisitIndirectFieldDecl()
1680 VD->setDescribedVarTemplate(readDeclAs<VarTemplateDecl>()); in VisitVarDeclImpl()
1683 auto *Tmpl = readDeclAs<VarDecl>(); in VisitVarDeclImpl()
1750 BDs[I] = readDeclAs<BindingDecl>(); in VisitDecompositionDecl()
1779 Params.push_back(readDeclAs<ParmVarDecl>()); in VisitBlockDecl()
1793 auto *decl = readDeclAs<VarDecl>(); in VisitBlockDecl()
1811 CD->setParam(I, readDeclAs<ImplicitParamDecl>()); in VisitCapturedDecl()
1813 CD->setContextParam(I, readDeclAs<ImplicitParamDecl>()); in VisitCapturedDecl()
1884 D->Namespace = readDeclAs<NamedDecl>(); in VisitNamespaceAliasDecl()
1893 D->FirstUsingShadow.setPointer(readDeclAs<UsingShadowDecl>()); in VisitUsingDecl()
1895 if (auto *Pattern = readDeclAs<NamedDecl>()) in VisitUsingDecl()
1905 D->FirstUsingShadow.setPointer(readDeclAs<UsingShadowDecl>()); in VisitUsingEnumDecl()
1906 if (auto *Pattern = readDeclAs<UsingEnumDecl>()) in VisitUsingEnumDecl()
1913 D->InstantiatedFrom = readDeclAs<NamedDecl>(); in VisitUsingPackDecl()
1916 Expansions[I] = readDeclAs<NamedDecl>(); in VisitUsingPackDecl()
1923 D->Underlying = readDeclAs<NamedDecl>(); in VisitUsingShadowDecl()
1925 D->UsingOrNextShadow = readDeclAs<NamedDecl>(); in VisitUsingShadowDecl()
1926 auto *Pattern = readDeclAs<UsingShadowDecl>(); in VisitUsingShadowDecl()
1935 D->NominatedBaseClassShadowDecl = readDeclAs<ConstructorUsingShadowDecl>(); in VisitConstructorUsingShadowDecl()
1936 D->ConstructedBaseClassShadowDecl = readDeclAs<ConstructorUsingShadowDecl>(); in VisitConstructorUsingShadowDecl()
1945 D->NominatedNamespace = readDeclAs<NamedDecl>(); in VisitUsingDirectiveDecl()
1946 D->CommonAncestor = readDeclAs<DeclContext>(); in VisitUsingDirectiveDecl()
2061 auto *Var = readDeclAs<ValueDecl>(); in ReadCXXDefinitionData()
2235 auto *Template = readDeclAs<ClassTemplateDecl>(); in VisitCXXRecordDeclImpl()
2249 auto *RD = readDeclAs<CXXRecordDecl>(); in VisitCXXRecordDeclImpl()
2291 D->Ctor = readDeclAs<CXXConstructorDecl>(); in VisitCXXDeductionGuideDecl()
2305 if (auto *MD = readDeclAs<CXXMethodDecl>()) in VisitCXXMethodDecl()
2320 auto *Shadow = readDeclAs<ConstructorUsingShadowDecl>(); in VisitCXXConstructorDecl()
2321 auto *Ctor = readDeclAs<CXXConstructorDecl>(); in VisitCXXConstructorDecl()
2332 if (auto *OperatorDelete = readDeclAs<FunctionDecl>()) { in VisitCXXDestructorDecl()
2366 D->Friend = readDeclAs<NamedDecl>(); in VisitFriendDecl()
2385 D->Friend = readDeclAs<NamedDecl>(); in VisitFriendTemplateDecl()
2396 D->init(readDeclAs<NamedDecl>()); in VisitTemplateDecl()
2435 if (auto *RTD = readDeclAs<RedeclarableTemplateDecl>()) { in VisitRedeclarableTemplateDecl()
2523 auto *CanonPattern = readDeclAs<ClassTemplateDecl>(); in VisitClassTemplateSpecializationDeclImpl()
2577 readDeclAs<ClassTemplatePartialSpecializationDecl>()); in VisitClassTemplatePartialSpecializationDecl()
2641 auto *CanonPattern = readDeclAs<VarTemplateDecl>(); in VisitVarTemplateSpecializationDeclImpl()
2676 readDeclAs<VarTemplatePartialSpecializationDecl>()); in VisitVarTemplatePartialSpecializationDecl()
2762 D->ExtendingDecl = readDeclAs<ValueDecl>(); in VisitLifetimeExtendedTemporaryDecl()
4485 auto *Anon = readDeclAs<NamespaceDecl>(); in UpdateDecl()
4612 readDeclAs<ClassTemplatePartialSpecializationDecl>(); in UpdateDecl()
4645 auto *Del = readDeclAs<FunctionDecl>(); in UpdateDecl()