| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| H A D | SemaModule.cpp | 347 checkModuleImportContext(*this, Mod, ImportLoc, CurContext); in ActOnModuleImport() 384 ImportDecl *Import = ImportDecl::Create(Context, CurContext, StartLoc, in ActOnModuleImport() 386 CurContext->addDecl(Import); in ActOnModuleImport() 405 checkModuleImportContext(*this, Mod, DirectiveLoc, CurContext, true); in ActOnModuleInclude() 439 checkModuleImportContext(*this, Mod, DirectiveLoc, CurContext, true); in ActOnModuleBegin() 452 for (auto *DC = CurContext; DC; DC = DC->getLexicalParent()) { in ActOnModuleBegin() 493 for (auto *DC = CurContext; DC; DC = DC->getLexicalParent()) { in ActOnModuleEnd() 525 ExportDecl *D = ExportDecl::Create(Context, CurContext, ExportLoc); in ActOnStartExportDecl() 547 for (const DeclContext *DC = CurContext; DC; DC = DC->getLexicalParent()) { in ActOnStartExportDecl() 577 CurContext->addDecl(D); in ActOnStartExportDecl()
|
| H A D | SemaCodeComplete.cpp | 313 bool CheckHiddenResult(Result &R, DeclContext *CurContext, 323 void MaybeAddResult(Result R, DeclContext *CurContext = nullptr); 336 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding, 386 if (isa<BlockDecl>(S.CurContext)) { in enterReturn() 392 } else if (const auto *Function = dyn_cast<FunctionDecl>(S.CurContext)) { in enterReturn() 396 } else if (const auto *Method = dyn_cast<ObjCMethodDecl>(S.CurContext)) { in enterReturn() 708 getRequiredQualification(ASTContext &Context, const DeclContext *CurContext, in getRequiredQualification() argument 713 CommonAncestor && !CommonAncestor->Encloses(CurContext); in getRequiredQualification() 811 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, in CheckHiddenResult() argument 834 R.Qualifier = getRequiredQualification(SemaRef.Context, CurContext, in CheckHiddenResult() [all …]
|
| H A D | SemaCUDA.cpp | 687 if (!isa<FunctionDecl>(CurContext)) in CUDADiagIfDeviceCode() 701 return (getEmissionStatus(cast<FunctionDecl>(CurContext)) == in CUDADiagIfDeviceCode() 710 dyn_cast<FunctionDecl>(CurContext), *this); in CUDADiagIfDeviceCode() 717 if (!isa<FunctionDecl>(CurContext)) in CUDADiagIfHostCode() 730 return (getEmissionStatus(cast<FunctionDecl>(CurContext)) == in CUDADiagIfHostCode() 739 dyn_cast<FunctionDecl>(CurContext), *this); in CUDADiagIfHostCode() 752 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in CheckCUDACall() 818 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in CUDACheckLambdaCapture()
|
| H A D | SemaCXXScopeSpec.cpp | 28 DeclContext *CurContext) { in getCurrentInstantiationOf() argument 36 Record->isCurrentInstantiation(CurContext)) in getCurrentInstantiationOf() 58 return ::getCurrentInstantiationOf(T, CurContext); in computeDeclContext() 187 return ::getCurrentInstantiationOf(T, CurContext); in getCurrentInstantiationOf() 798 DeclContext *DC = LookupCtx ? LookupCtx : CurContext; in BuildCXXNestedNameSpecifier() 1025 if (isa<ObjCContainerDecl>(CurContext) || isa<ObjCMethodDecl>(CurContext)) in ShouldEnterDeclaratorScope() 1050 return CurContext->getRedeclContext()->isFileContext(); in ShouldEnterDeclaratorScope()
|
| H A D | SemaDeclCXX.cpp | 743 DeclContext *const DC = CurContext; in ActOnDecompositionDeclarator() 897 CurContext->addHiddenDecl(New); in ActOnDecompositionDeclarator() 2389 return dyn_cast_or_null<CXXRecordDecl>(CurContext); in getCurrentClass() 2416 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassNameTypo() 3023 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext, in ActOnAccessSpecifier() 3025 CurContext->addHiddenDecl(ASDecl); in ActOnAccessSpecifier() 3241 assert(isa<CXXRecordDecl>(CurContext)); in ActOnCXXMemberDeclarator() 3248 if (cast<CXXRecordDecl>(CurContext)->isInterface()) { in ActOnCXXMemberDeclarator() 3413 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator() 3419 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator() [all …]
|
| H A D | SemaOpenMP.cpp | 1398 DeclContext *DC = SemaRef.CurContext; in buildVarDecl() 2729 if (!CurContext->isDependentContext()) in EndOpenMPDSABlock() 2921 CurContext->addDecl(D); in ActOnOpenMPThreadprivateDirective() 3202 if (!CurContext->isFileContext()) { in ActOnOpenMPRequiresDirective() 3207 CurContext->addDecl(D); in ActOnOpenMPRequiresDirective() 3242 auto *Ctx = CurContext; in ActOnOpenMPAssumesDirective() 4281 DSAStack->setContext(CurContext); in ActOnOpenMPRegionStart() 4314 auto *CED = OMPCapturedExprDecl::Create(C, S.CurContext, Id, Ty, in buildCaptureDecl() 4318 S.CurContext->addHiddenDecl(CED); in buildCaptureDecl() 4388 if (!CurContext->isDependentContext() && in tryCaptureOpenMPLambdas() [all …]
|
| H A D | SemaDecl.cpp | 243 for (DeclContext *DC = S.CurContext; in recoverFromTypeInKnownDependentBase() 570 NNS = synthesizeCurrentNestedNameSpecifier(Context, CurContext); in ActOnMSVCUnknownTypeName() 573 findRecordWithDependentBasesOfEnclosingMethod(CurContext)) { in ActOnMSVCUnknownTypeName() 643 if (CurContext->isRecord()) { in isMicrosoftMissingTypename() 649 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext); in isMicrosoftMissingTypename() 655 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); in isMicrosoftMissingTypename() 1283 assert(DC->getLexicalParent() == CurContext && in PushDeclContext() 1285 CurContext = DC; in PushDeclContext() 1290 assert(CurContext && "DeclContext imbalance!"); in PopDeclContext() 1292 CurContext = CurContext->getLexicalParent(); in PopDeclContext() [all …]
|
| H A D | SemaCoroutine.cpp | 196 auto *FD = dyn_cast<FunctionDecl>(S.CurContext); in isValidCoroutineContext() 198 S.Diag(Loc, isa<ObjCMethodDecl>(S.CurContext) in isValidCoroutineContext() 529 assert(isa<FunctionDecl>(CurContext) && "not in a function scope"); in buildCoroutinePromise() 530 auto *FD = cast<FunctionDecl>(CurContext); in buildCoroutinePromise() 634 assert(isa<FunctionDecl>(S.CurContext) && "not in a function scope"); in checkCoroutineContext() 677 S.Diag(cast<FunctionDecl>(S.CurContext)->getLocation(), in checkNoThrow() 743 auto *Fn = cast<FunctionDecl>(CurContext); in ActOnCoroutineBodyStart() 1648 VarDecl *Decl = VarDecl::Create(S.Context, S.CurContext, Loc, Loc, II, Type, in buildVarDecl() 1657 assert(isa<FunctionDecl>(CurContext) && "not in a function scope"); in buildCoroutineParameterMoves() 1658 auto *FD = cast<FunctionDecl>(CurContext); in buildCoroutineParameterMoves()
|
| H A D | SemaDeclObjC.cpp | 765 return ObjCTypeParamDecl::Create(Context, CurContext, variance, varianceLoc, in actOnObjCTypeParam() 1036 CurContext, in ActOnStartClassInterface() 1055 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName, in ActOnStartClassInterface() 1176 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias() 1231 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface() 1251 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface() 1783 = ObjCProtocolDecl::Create(Context, CurContext, Ident, in ActOnForwardProtocolDeclaration() 1821 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() 1825 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface() 1868 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() [all …]
|
| H A D | SemaLambda.cpp | 245 DeclContext *DC = CurContext; in createLambdaClosureType() 319 inTemplateInstantiation() || CurContext->isDependentContext(); in getCurrentMangleNumberContext() 326 isInInlineFunction(CurContext)) { in getCurrentMangleNumberContext() 403 Method->setLexicalDeclContext(CurContext); in startLambdaDefinition() 414 TemplateMethod->setLexicalDeclContext(CurContext); in startLambdaDefinition() 869 VarDecl *NewVD = VarDecl::Create(Context, CurContext, Loc, in createLambdaInitCaptureVarDecl() 1801 if (!CurContext->isDependentContext() && !IsImplicit && in BuildLambdaExpr() 1926 if (!CurContext->isDependentContext()) { in BuildLambdaExpr() 1984 BlockDecl *Block = BlockDecl::Create(Context, CurContext, ConvLocation); in BuildBlockForLambdaConversion()
|
| H A D | SemaTemplate.cpp | 1774 SemanticContext = CurContext; in CheckClassTemplate() 1829 DeclContext *OutermostContext = CurContext; in CheckClassTemplate() 1883 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate() 1943 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate() 1973 = !(TUK == TUK_Friend && CurContext->isDependentContext()); in CheckClassTemplate() 2023 NewClass->setLexicalDeclContext(CurContext); in CheckClassTemplate() 2024 NewTemplate->setLexicalDeclContext(CurContext); in CheckClassTemplate() 2052 if (!CurContext->isDependentContext()) { in CheckClassTemplate() 2061 Context, CurContext, NewClass->getLocation(), NewTemplate, FriendLoc); in CheckClassTemplate() 2063 CurContext->addDecl(Friend); in CheckClassTemplate() [all …]
|
| H A D | SemaStmt.cpp | 598 if (CurContext->isDependentContext() || (E && E->isInstantiationDependent())) in checkAndRewriteMustTailAttr() 620 assert(!CurContext->isDependentContext() && in checkMustTailAttr() 681 const auto *CallerDecl = dyn_cast<FunctionDecl>(CurContext); in checkMustTailAttr() 686 if (isa<BlockDecl>(CurContext)) in checkMustTailAttr() 688 else if (isa<ObjCMethodDecl>(CurContext)) in checkMustTailAttr() 695 } else if (const auto *CMD = dyn_cast<CXXMethodDecl>(CurContext)) { in checkMustTailAttr() 2360 SemaRef.CurContext->addHiddenDecl(Decl); in FinishForRangeVarDecl() 2401 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl() 3652 if (!CurContext->isDependentContext()) in ActOnCapScopeReturnStmt() 4005 FunctionDecl *FD = cast<FunctionDecl>(CurContext); in BuildReturnStmt() [all …]
|
| H A D | Sema.cpp | 158 CodeCompleter(CodeCompleter), CurContext(nullptr), in Sema() 472 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader() 1334 DeclContext *DC = CurContext; in getFunctionLevelDeclContext() 1485 auto *FD = dyn_cast<FunctionDecl>(CurContext); in hasUncompilableErrorOccurred() 2089 !CurBSI->TheDecl->Encloses(CurContext)) { in getCurBlock() 2113 if (LSI->Lambda && !LSI->Lambda->Encloses(CurContext)) { in getEnclosingLambda() 2140 !CurLSI->Lambda->Encloses(CurContext)) { in getCurLambda()
|
| H A D | SemaLookup.cpp | 4098 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel() 4108 if (Res && Res->getDeclContext() != CurContext) in LookupOrCreateLabel() 4112 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel() 4507 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec) in NamespaceSpecifierSet() argument 4508 : Context(Context), CurContextChain(buildContextChain(CurContext)) { in NamespaceSpecifierSet() 4762 if (isa<CXXMethodDecl>(SemaRef.CurContext) && in AddKeywordsToConsumer() 4763 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance()) in AddKeywordsToConsumer() 4843 if (getLangOpts().MSVCCompat && CurContext->isDependentContext() && in makeTypoCorrectionConsumer() 4844 isa<CXXMethodDecl>(CurContext)) in makeTypoCorrectionConsumer() 5234 CurContext(SemaRef.CurContext), MemberFn(ME) { in FunctionCallFilterCCC() [all …]
|
| H A D | SemaAccess.cpp | 1472 EffectiveContext EC(S.CurContext); in CheckAccess() 1693 ObjectClass = cast<CXXConstructorDecl>(CurContext)->getParent(); in CheckConstructorAccess() 1808 EffectiveContext EC(CurContext); in CheckFriendAccess() 1921 EffectiveContext EC(CurContext); in IsSimplyAccessible()
|
| H A D | SemaExprCXX.cpp | 1178 if (ThisTy.isNull() && isLambdaCallOperator(CurContext) && in getCurrentThisType() 1193 if (!ThisTy.isNull() && isLambdaCallOperator(CurContext)) in getCurrentThisType() 1195 CurContext, Context); in getCurrentThisType() 1543 const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in isUsualDeallocationFunction() 1637 if (auto *Caller = dyn_cast<FunctionDecl>(S.CurContext)) in UsualDeallocFnInfo() 2782 EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(CurContext), Matches); in FindAllocationFunctions() 7230 FunctionDecl *CurFD = dyn_cast<FunctionDecl>(CurContext); in ActOnStartCXXMemberReference() 7911 assert(S.CurContext->isDependentContext()); in CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures() 7913 DeclContext *DC = S.CurContext; in CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures() 8499 DeclContext *DC = CurContext; in ActOnFinishFullExpr() [all …]
|
| H A D | SemaExpr.cpp | 83 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable) in CanUseDecl() 330 auto *DRD = dyn_cast<OMPDeclareReductionDecl>(CurContext); in DiagnoseUseOfDecl() 331 if (LangOpts.OpenMP && DRD && !CurContext->containsDecl(D) && in DiagnoseUseOfDecl() 1972 auto *MD = dyn_cast_or_null<CXXMethodDecl>(S.CurContext); in isCapturingReferenceToHostVarInCUDADeviceLambda() 2150 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); in DiagnoseDependentMemberLookup() 2223 DeclContext *DC = SS.isEmpty() ? CurContext : nullptr; in DiagnoseEmptyLookup() 2387 else if (auto *MD = dyn_cast<CXXMethodDecl>(S.CurContext)) in recoverFromMSUnqualifiedLookup() 2882 if (const BlockDecl *BD = CurContext->getInnermostBlockDecl()) in BuildIvarRefExpr() 3353 if (BD->getDeclContext() != CurContext) { in BuildDeclarationNameExpr() 3356 diagnoseUncapturableValueReference(*this, Loc, BD, CurContext); in BuildDeclarationNameExpr() [all …]
|
| H A D | SemaObjCProperty.cpp | 193 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext); in ActOnProperty() 419 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext); in HandlePropertyInClassExtension() 421 DeclContext *DC = CurContext; in HandlePropertyInClassExtension() 1086 dyn_cast<ObjCContainerDecl>(CurContext); in ActOnPropertyImplDecl() 1424 ObjCPropertyImplDecl::Create(Context, CurContext, AtLoc, PropertyLoc, in ActOnPropertyImplDecl()
|
| H A D | SemaAttr.cpp | 478 !(CurContext->isTranslationUnit()) && !CurContext->isNamespace()) { in ActOnPragmaFloatControl()
|
| H A D | SemaOverload.cpp | 1059 (OldIsUsingDecl || NewIsUsingDecl) && CurContext->isRecord() && in CheckOverload() 6425 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in AddOverloadCandidate() 6934 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in AddMethodCandidate() 9582 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext)) { in isBetterOverloadCandidate() 9865 FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext); in isBetterOverloadCandidate() 9969 const FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext); in BestViableFunction() 10990 FunctionDecl *Caller = cast<FunctionDecl>(S.CurContext); in DiagnoseBadTarget() 12046 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext)) in AddMatchingNonTemplateFunction() 12163 S.EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(S.CurContext), Matches); in EliminateSuboptimalCudaMatches() 12706 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) { in DiagnoseTwoPhaseLookup() [all …]
|
| H A D | SemaExprMember.cpp | 1822 auto *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); in BuildFieldReferenceExpr() 1834 !CurContext->isDependentContext() && in BuildFieldReferenceExpr()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 3003 if (auto *RD = dyn_cast<CXXRecordDecl>(SemaRef.CurContext)) in VisitUsingDecl() 5491 cast<CXXRecordDecl>(CurContext->getParent())); in InstantiateMemInitializers() 5872 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); in FindInstantiatedDecl() 5881 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); in FindInstantiatedDecl() 5903 DeclContext *DC = CurContext; in FindInstantiatedDecl()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | CXXInheritance.cpp | 117 CXXRecordDecl::isCurrentInstantiation(const DeclContext *CurContext) const { in isCurrentInstantiation() 120 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent()) in isCurrentInstantiation() 121 if (CurContext->Equals(this)) in isCurrentInstantiation()
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| H A D | SemaInternal.h | 103 Namespaces(SemaRef.Context, SemaRef.CurContext, SS), in TypoCorrectionConsumer() 238 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
|
| H A D | TypoCorrection.h | 393 DeclContext *CurContext; variable
|