Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp30 AST.getTranslationUnitDecl()->addDecl(HLSLNamespace); in InitializeSema()
44 AST.getTranslationUnitDecl()->addDecl(UsingDecl); in InitializeSema()
95 HLSLNamespace->addDecl(Template); in defineHLSLVectorAlias()
H A DSemaLambda.cpp254 DC->addDecl(Class); in createLambdaClosureType()
397 Class->addDecl(Method); in startLambdaDefinition()
411 Class->addDecl(TemplateMethod); in startLambdaDefinition()
1470 Class->addDecl(ConversionTemplate); in addFunctionPointerConversion()
1472 Class->addDecl(Conversion); in addFunctionPointerConversion()
1509 Class->addDecl(StaticInvokerTemplate); in addFunctionPointerConversion()
1511 Class->addDecl(Invoke); in addFunctionPointerConversion()
1565 Class->addDecl(Conversion); in addBlockPointerConversion()
1740 RD->addDecl(Field); in BuildCaptureField()
H A DSemaTemplateInstantiateDecl.cpp909 Owner->addDecl(Inst); in VisitLabelDecl()
928 Owner->addDecl(Inst); in VisitNamespaceAliasDecl()
1064 Owner->addDecl(Inst); in VisitTypeAliasTemplateDecl()
1263 Owner->addDecl(Field); in VisitFieldDecl()
1366 Owner->addDecl(FD); in VisitFriendDecl()
1385 Owner->addDecl(FD); in VisitFriendDecl()
1456 Owner->addDecl(Enum); in VisitEnumDecl()
1698 Owner->addDecl(Inst); in VisitClassTemplateDecl()
1781 Owner->addDecl(Inst); in VisitVarTemplateDecl()
3419 Owner->addDecl(TD); in VisitOMPThreadPrivateDecl()
[all …]
H A DSemaLookup.cpp644 addDecl(*DI); in addDeclsFromBasePaths()
951 R.addDecl(D); in LookupBuiltin()
1109 R.addDecl(D); in LookupDirect()
1328 R.addDecl(ND); in CppLookupName()
1466 R.addDecl(ND); in CppLookupName()
2215 R.addDecl(D); in LookupName()
2654 R.addDecl(ND, AS); in LookupQualifiedName()
2763 R.addDecl(I.getDecl(), in LookupInSuper()
4966 Res.addDecl(Ivar); in LookupPotentialTypoResult()
4974 Res.addDecl(Prop); in LookupPotentialTypoResult()
[all …]
H A DSemaModule.cpp532 CurContext->addDecl(Import); in ActOnModuleImport()
606 TU->addDecl(ImportD); in BuildModuleInclude()
696 TU->addDecl(ImportD); in createImplicitModuleImportForErrorRecovery()
713 CurContext->addDecl(D); in ActOnStartExportDecl()
H A DSemaRISCVVectorLookup.cpp357 LR.addDecl(RVVIntrinsicDecl); in CreateRVVIntrinsicDecl()
H A DSemaDeclCXX.cpp11242 Parent->addDecl(UD); in ActOnStartNamespaceDef()
11734 Ctx->addDecl(UDir); in PushUsingDirective()
12368 CurContext->addDecl(D); in BuildUsingDeclaration()
12471 R.addDecl(Ctor); in BuildUsingDeclaration()
12477 R.addDecl(ND); in BuildUsingDeclaration()
12571 CurContext->addDecl(UD); in BuildUsingEnumDeclaration()
12603 CurContext->addDecl(UPD); in BuildUsingPackDecl()
16322 CurContext->addDecl(D); in ActOnStartLinkageSpecification()
16358 CurContext->addDecl(ED); in ActOnEmptyDeclaration()
16940 CurContext->addDecl(D); in ActOnFriendTypeDecl()
[all …]
H A DSemaCXXScopeSpec.cpp567 Found.addDecl(ScopeLookupResult); in BuildCXXNestedNameSpecifier()
658 Found.addDecl(ND); in BuildCXXNestedNameSpecifier()
H A DSemaDeclObjC.cpp1827 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1875 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1937 CurContext->addDecl(CDecl); in ActOnStartCategoryImplementation()
2141 ImpDecl->addDecl(ivars[i]); in CheckImplementationIvars()
2174 ImpDecl->addDecl(ImplIvar); in CheckImplementationIvars()
3996 OID->addDecl(Getter); in ActOnAtEnd()
3999 OID->addDecl(Setter); in ActOnAtEnd()
4975 cast<DeclContext>(ClassDecl)->addDecl(ObjCMethod); in ActOnMethodDeclaration()
5123 Record->addDecl(FD); in ActOnDefs()
H A DSemaTemplate.cpp523 Found.addDecl(ND); in LookupTemplateName()
2068 CurContext->addDecl(Friend); in CheckClassTemplate()
2463 DC->addDecl(GuideTemplate);
4523 CurContext->addDecl(Specialization); in ActOnVarTemplateSpecialization()
4533 PrevSpec.addDecl(PrevDecl); in ActOnVarTemplateSpecialization()
8650 CurContext->addDecl(Friend); in ActOnClassTemplateSpecialization()
8655 CurContext->addDecl(Specialization); in ActOnClassTemplateSpecialization()
9274 Previous.addDecl(Specialization); in CheckFunctionTemplateSpecialization()
9378 Previous.addDecl(FoundInstantiation); in CheckMemberSpecialization()
9449 Previous.addDecl(FoundInstantiation); in CheckMemberSpecialization()
[all …]
H A DSemaObjCProperty.cpp631 DC->addDecl(PDecl); in CreatePropertyDecl()
1341 ClassImpDecl->addDecl(Ivar); in ActOnPropertyImplDecl()
2497 CD->addDecl(GetterMethod); in ProcessPropertyDecl()
2584 CD->addDecl(SetterMethod); in ProcessPropertyDecl()
H A DSemaDecl.cpp1265 Result.addDecl(Found); in ActOnNameClassifiedAsNonType()
1520 CurContext->addDecl(D); in PushOnScopeChains()
5640 Owner->addDecl(Anon); in BuildAnonymousStructOrUnion()
5706 CurContext->addDecl(Anon); in BuildMicrosoftCAnonymousStruct()
8230 Previous.addDecl(Prev); in checkGlobalOrExternCConflict()
8782 Previous.addDecl(FD); in DiagnoseInvalidRedeclaration()
9907 NewFD->addDecl(TD); in ActOnFunctionDeclarator()
11407 Previous.addDecl(OldDecl); in CheckFunctionDeclaration()
17064 CurContext->addDecl(New); in ActOnTag()
17454 Record->addDecl(NewFD); in HandleField()
[all …]
H A DSemaStmt.cpp4657 DC->addDecl(RD); in CreateCapturedStmtRecordDecl()
4663 DC->addDecl(CD); in CreateCapturedStmtRecordDecl()
4722 DC->addDecl(Param); in ActOnCapturedRegionStart()
4762 DC->addDecl(Param); in ActOnCapturedRegionStart()
4770 DC->addDecl(Param); in ActOnCapturedRegionStart()
4782 DC->addDecl(Param); in ActOnCapturedRegionStart()
H A DSemaAttr.cpp509 Context.getTranslationUnitDecl()->addDecl(PCD); in ActOnPragmaMSComment()
517 Context.getTranslationUnitDecl()->addDecl(PDMD); in ActOnPragmaDetectMismatch()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DUnresolvedSet.h91 void addDecl(NamedDecl *D) { in addDecl() function
92 addDecl(D, AS_none); in addDecl()
95 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl() function
H A DASTUnresolvedSet.h55 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { in addDecl() function
110 Impl.addDecl(C, reinterpret_cast<NamedDecl *>(ID << 2), AS); in addLazyDecl()
H A DDeclObjC.h2443 addDecl(method); in addInstanceMethod()
2449 addDecl(method); in addClassMethod()
/llvm-project-15.0.7/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCDeclVendor.cpp175 ast_ctx.getTranslationUnitDecl()->addDecl(new_iface_decl); in GetDeclForISA()
449 interface_decl->addDecl(method_decl); in FinishDecl()
467 interface_decl->addDecl(method_decl); in FinishDecl()
498 interface_decl->addDecl(ivar_decl); in FinishDecl()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DLookup.h452 void addDecl(NamedDecl *D) { in addDecl() function
453 addDecl(D, D->getAccess()); in addDecl()
458 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl() function
459 Decls.addDecl(D, AS); in addDecl()
/llvm-project-15.0.7/clang/unittests/Sema/
H A DExternalSemaSourceTest.cpp125 DestContext->addDecl(NewNamespace); in CorrectTypo()
168 DestContext->addDecl(NewFunction); in CorrectTypo()
/llvm-project-15.0.7/clang/lib/AST/
H A DCommentSema.cpp996 void addDecl(const NamedDecl *ND);
1011 void SimpleTypoCorrector::addDecl(const NamedDecl *ND) { in addDecl() function in clang::comments::__anon5983895a0211::SimpleTypoCorrector
1038 Corrector.addDecl(ParamVars[i]); in correctTypoInParmVarReference()
1088 Corrector.addDecl(Param); in CorrectTypoInTParamReferenceHelper()
H A DDeclCXX.cpp866 Conversions.addDecl(Ctx, Primary, AS); in addedMember()
1344 data().Conversions.get(Ctx).addDecl(Ctx, Shadow, Shadow->getAccess()); in addedMember()
1690 VOutput.addDecl(I.getDecl(), IAccess); in CollectVisibleConversions()
1692 Output.addDecl(Context, I.getDecl(), IAccess); in CollectVisibleConversions()
1753 Output.addDecl(Context, I.getDecl(), I.getAccess()); in CollectVisibleConversions()
H A DASTContext.cpp1214 getTranslationUnitDecl()->addDecl(BuiltinTemplate); in buildBuiltinTemplateDecl()
1495 getTranslationUnitDecl()->addDecl(MSGuidTagDecl); in InitBuiltinTypes()
7230 CFConstantStringTagDecl->addDecl(Field); in getCFConstantStringDecl()
7296 RD->addDecl(Field); in getBlockDescriptorType()
7336 RD->addDecl(Field); in getBlockDescriptorExtendedType()
8689 VaListTagDecl->addDecl(Field); in CreateAArch64ABIBuiltinVaListDecl()
8741 VaListTagDecl->addDecl(Field); in CreatePowerABIBuiltinVaListDecl()
8801 VaListTagDecl->addDecl(Field); in CreateX86_64ABIBuiltinVaListDecl()
8854 VaListDecl->addDecl(Field); in CreateAAPCSABIBuiltinVaListDecl()
8904 VaListTagDecl->addDecl(Field); in CreateSystemZBuiltinVaListDecl()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp1337 decl_ctx->addDecl(decl); in CreateRecordType()
1366 cxx_record_decl->addDecl( in AddAccessSpecifierDecl()
1927 ctx->addDecl(decl); in CreateBlockDeclaration()
1962 decl_ctx->addDecl(using_decl); in CreateUsingDirectiveDeclaration()
2164 decl_ctx->addDecl(func_decl); in CreateFunctionDeclaration()
2223 decl_ctx->addDecl(decl); in CreateParameterDeclaration()
2328 decl_ctx->addDecl(enum_decl); in CreateEnumerationType()
4622 decl_ctx->addDecl(decl); in CreateTypedef()
7379 record_decl->addDecl(field); in AddFieldToRecordType()
7517 record_decl->addDecl(*ifi); in BuildIndirectFields()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.cpp380 DC->addDecl(result_decl); in SynthesizeBodyResult()

123