Home
last modified time | relevance | path

Searched refs:addDecl (Results 1 – 25 of 43) sorted by relevance

12

/external/clang/include/clang/AST/
DUnresolvedSet.h82 void addDecl(NamedDecl *D) { in addDecl() function
83 addDecl(D, AS_none); in addDecl()
86 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl() function
DASTUnresolvedSet.h50 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { in addDecl() function
104 Impl.addDecl(C, reinterpret_cast<NamedDecl*>(ID << 2), AS); in addLazyDecl()
DDeclObjC.h2332 addDecl(method); in addInstanceMethod()
2337 addDecl(method); in addClassMethod()
DDeclBase.h1626 void addDecl(Decl *D);
/external/clang/include/clang/Sema/
DLookup.h410 void addDecl(NamedDecl *D) { in addDecl() function
411 addDecl(D, D->getAccess()); in addDecl()
416 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl() function
417 Decls.addDecl(D, AS); in addDecl()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp446 Owner->addDecl(Inst); in VisitLabelDecl()
465 Owner->addDecl(Inst); in VisitNamespaceAliasDecl()
547 Owner->addDecl(Typedef); in VisitTypedefDecl()
554 Owner->addDecl(Typedef); in VisitTypeAliasDecl()
596 Owner->addDecl(Inst); in VisitTypeAliasTemplateDecl()
739 Owner->addDecl(Field); in VisitFieldDecl()
784 Owner->addDecl(Property); in VisitMSPropertyDecl()
813 Owner->addDecl(IndirectField); in VisitIndirectFieldDecl()
842 Owner->addDecl(FD); in VisitFriendDecl()
861 Owner->addDecl(FD); in VisitFriendDecl()
[all …]
DSemaLambda.cpp258 DC->addDecl(Class); in createLambdaClosureType()
796 LSI->Lambda->addDecl(Field); in buildInitCaptureField()
1282 Class->addDecl(ConversionTemplate); in addFunctionPointerConversion()
1284 Class->addDecl(Conversion); in addFunctionPointerConversion()
1323 Class->addDecl(StaticInvokerTemplate); in addFunctionPointerConversion()
1325 Class->addDecl(Invoke); in addFunctionPointerConversion()
1370 Class->addDecl(Conversion); in addBlockPointerConversion()
1522 Class->addDecl(TemplateOrNonTemplateCallOperatorDecl); in BuildLambdaExpr()
DSemaLookup.cpp634 addDecl(*DI); in addDeclsFromBasePaths()
685 R.addDecl(S.getASTContext().getMakeIntegerSeqDecl()); in LookupBuiltin()
688 R.addDecl(S.getASTContext().getTypePackElementDecl()); in LookupBuiltin()
705 R.addDecl(D); in LookupBuiltin()
841 R.addDecl(D); in LookupDirect()
874 R.addDecl(ConvTemplate); in LookupDirect()
911 R.addDecl(Specialization); in LookupDirect()
1110 R.addDecl(ND); in CppLookupName()
1169 R.addDecl(ND); in CppLookupName()
1263 R.addDecl(ND); in CppLookupName()
[all …]
DSemaAttr.cpp183 Context.getTranslationUnitDecl()->addDecl(PCD); in ActOnPragmaMSComment()
191 Context.getTranslationUnitDecl()->addDecl(PDMD); in ActOnPragmaDetectMismatch()
DSemaDeclCXX.cpp3463 MemberLookup.addDecl(Indirect ? cast<ValueDecl>(Indirect) in BuildImplicitMemberInitializer()
7434 CurContext->addDecl(Namespc); in ActOnStartNamespaceDef()
7461 Parent->addDecl(UD); in ActOnStartNamespaceDef()
7697 R.addDecl(Corrected.getFoundDecl()); in TryNamespaceTypoCorrection()
7737 R.addDecl(getOrCreateStdNamespace()); in ActOnUsingDirective()
7794 Ctx->addDecl(UDir); in PushUsingDirective()
8078 CurContext->addDecl(Shadow); in BuildUsingShadowDecl()
8312 CurContext->addDecl(D); in BuildUsingDeclaration()
8321 CurContext->addDecl(UD); in BuildUsingDeclaration()
8392 R.addDecl(Ctor); in BuildUsingDeclaration()
[all …]
DSemaCXXScopeSpec.cpp551 Found.addDecl(ScopeLookupResult); in BuildCXXNestedNameSpecifier()
639 Found.addDecl(ND); in BuildCXXNestedNameSpecifier()
DSemaTemplate.cpp335 Found.addDecl(ND); in LookupTemplateName()
1188 CurContext->addDecl(Friend); in CheckClassTemplate()
2719 CurContext->addDecl(Specialization); in ActOnVarTemplateSpecialization()
2729 PrevSpec.addDecl(PrevDecl); in ActOnVarTemplateSpecialization()
6567 CurContext->addDecl(Friend); in ActOnClassTemplateSpecialization()
6572 CurContext->addDecl(Specialization); in ActOnClassTemplateSpecialization()
6929 Candidates.addDecl(Specialization, I.getAccess()); in CheckFunctionTemplateSpecialization()
7039 Previous.addDecl(Specialization); in CheckFunctionTemplateSpecialization()
7138 Previous.addDecl(FoundInstantiation); in CheckMemberSpecialization()
7239 Previous.addDecl(FoundInstantiation); in CheckMemberSpecialization()
[all …]
DSemaDecl.cpp835 Result.addDecl(D); in ClassifyName()
897 Result.addDecl(FirstDecl); in ClassifyName()
1255 CurContext->addDecl(D); in PushOnScopeChains()
1813 Parent->addDecl(CLinkageDecl); in LazilyCreateBuiltin()
4471 Owner->addDecl(Anon); in BuildAnonymousStructOrUnion()
4539 CurContext->addDecl(Anon); in BuildMicrosoftCAnonymousStruct()
6659 Previous.addDecl(Prev); in checkGlobalOrExternCConflict()
6735 Previous.addDecl(Prev); in checkForConflictWithNonVisibleExternC()
7215 Previous.addDecl(FD); in DiagnoseInvalidRedeclaration()
8611 CurContext->addDecl(NewSpec); in ActOnFunctionDeclarator()
[all …]
DSemaDeclObjC.cpp1737 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1784 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1836 CurContext->addDecl(CDecl); in ActOnStartCategoryImplementation()
2034 ImpDecl->addDecl(ivars[i]); in CheckImplementationIvars()
2067 ImpDecl->addDecl(ImplIvar); in CheckImplementationIvars()
4427 cast<DeclContext>(ClassDecl)->addDecl(ObjCMethod); in ActOnMethodDeclaration()
4557 Record->addDecl(FD); in ActOnDefs()
DSemaObjCProperty.cpp629 DC->addDecl(PDecl); in CreatePropertyDecl()
1152 ClassImpDecl->addDecl(Ivar); in ActOnPropertyImplDecl()
2234 CD->addDecl(GetterMethod); in ProcessPropertyDecl()
2311 CD->addDecl(SetterMethod); in ProcessPropertyDecl()
DSemaStmt.cpp3843 DC->addDecl(RD); in CreateCapturedStmtRecordDecl()
3849 DC->addDecl(CD); in CreateCapturedStmtRecordDecl()
3894 DC->addDecl(Param); in ActOnCapturedRegionStart()
3929 DC->addDecl(Param); in ActOnCapturedRegionStart()
3936 DC->addDecl(Param); in ActOnCapturedRegionStart()
3947 DC->addDecl(Param); in ActOnCapturedRegionStart()
DSema.cpp1322 OverloadSet.addDecl(*it); in tryExprAsCall()
1435 PlausibleOverloads.addDecl(It.getDecl()); in notePlausibleOverloads()
DSemaOpenMP.cpp1281 CurContext->addDecl(D); in ActOnOpenMPThreadprivateDirective()
8592 CurContext->addDecl(VDPrivate); in ActOnOpenMPFirstprivateClause()
8928 Lookups.back().addDecl(DRD); in buildDeclareReductionRef()
8944 ResSet.addDecl(Set[Set.size() - 1]); in buildDeclareReductionRef()
11159 DC->addDecl(DRD); in ActOnOpenMPDeclareReductionDirectiveStart()
11208 DRD->addDecl(OmpInParm); in ActOnOpenMPDeclareReductionCombinerStart()
11209 DRD->addDecl(OmpOutParm); in ActOnOpenMPDeclareReductionCombinerStart()
11262 DRD->addDecl(OmpPrivParm); in ActOnOpenMPDeclareReductionInitializerStart()
11263 DRD->addDecl(OmpOrigParm); in ActOnOpenMPDeclareReductionInitializerStart()
DTreeTransform.h1866 getSema().CurContext->addDecl(Var); in RebuildExceptionDecl()
2150 R.addDecl(FoundDecl); in RebuildMemberExpr()
7898 Decls.addDecl(InstD, InstD->getAccess()); in TransformOMPReductionClause()
9686 R.addDecl(I); in TransformUnresolvedLookupExpr()
9690 R.addDecl(InstD); in TransformUnresolvedLookupExpr()
10572 R.addDecl(I); in TransformUnresolvedMemberExpr()
10576 R.addDecl(InstD); in TransformUnresolvedMemberExpr()
11816 Functions.addDecl(ND); in RebuildCXXOperatorCallExpr()
/external/clang/unittests/Sema/
DExternalSemaSourceTest.cpp126 DestContext->addDecl(NewNamespace); in CorrectTypo()
168 DestContext->addDecl(NewFunction); in CorrectTypo()
/external/clang/lib/AST/
DCommentSema.cpp968 void addDecl(const NamedDecl *ND);
983 void SimpleTypoCorrector::addDecl(const NamedDecl *ND) { in addDecl() function in clang::comments::__anon17632f150211::SimpleTypoCorrector
1010 Corrector.addDecl(ParamVars[i]); in correctTypoInParmVarReference()
1060 Corrector.addDecl(Param); in CorrectTypoInTParamReferenceHelper()
DDeclCXX.cpp616 Conversions.addDecl(Ctx, Primary, AS); in addedMember()
975 data().Conversions.get(Ctx).addDecl(Ctx, Shadow, Shadow->getAccess()); in addedMember()
1157 VOutput.addDecl(I.getDecl(), IAccess); in CollectVisibleConversions()
1159 Output.addDecl(Context, I.getDecl(), IAccess); in CollectVisibleConversions()
1220 Output.addDecl(Context, I.getDecl(), I.getAccess()); in CollectVisibleConversions()
DASTContext.cpp917 TUDecl->addDecl(BuiltinTemplate); in buildBuiltinTemplateDecl()
4921 CFConstantStringTagDecl->addDecl(Field); in getCFConstantStringDecl()
4949 TUDecl->addDecl(ObjCSuperTypeDecl); in getObjCSuperType()
4990 RD->addDecl(Field); in getBlockDescriptorType()
5030 RD->addDecl(Field); in getBlockDescriptorExtendedType()
6242 VaListTagDecl->addDecl(Field); in CreateAArch64ABIBuiltinVaListDecl()
6294 VaListTagDecl->addDecl(Field); in CreatePowerABIBuiltinVaListDecl()
6354 VaListTagDecl->addDecl(Field); in CreateX86_64ABIBuiltinVaListDecl()
6408 VaListDecl->addDecl(Field); in CreateAAPCSABIBuiltinVaListDecl()
6458 VaListTagDecl->addDecl(Field); in CreateSystemZBuiltinVaListDecl()
DDeclBase.cpp1296 void DeclContext::addDecl(Decl *D) { in addDecl() function in DeclContext
/external/clang/lib/Parse/
DParseDeclCXX.cpp2535 CommonLateParsedAttrs[i]->addDecl(FunDecl); in ParseCXXClassMemberDeclaration()
2538 LateParsedAttrs[i]->addDecl(FunDecl); in ParseCXXClassMemberDeclaration()
2666 CommonLateParsedAttrs[i]->addDecl(ThisDecl); in ParseCXXClassMemberDeclaration()
2669 LateParsedAttrs[i]->addDecl(ThisDecl); in ParseCXXClassMemberDeclaration()

12