| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | ParseObjc.cpp | 52 Actions.CodeCompletion().CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCAtDirectives() 144 Actions.CodeCompletion().CodeCompleteObjCClassForwardDecl(getCurScope()); in ParseObjCAtClassDeclaration() 183 Actions.ObjC().ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts() 201 Actions.CodeCompletion().CodeCompleteObjCInterfaceDecl(getCurScope()); in ParseObjCAtInterfaceDeclaration() 220 ObjCTypeParamListScope typeParamScope(Actions, getCurScope()); in ParseObjCAtInterfaceDeclaration() 236 getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration() 291 Actions.CodeCompletion().CodeCompleteObjCSuperclass(getCurScope(), nameId, in ParseObjCAtInterfaceDeclaration() 338 getCurScope(), AtLoc, nameId, nameLoc, typeParameterList, superClassId, in ParseObjCAtInterfaceDeclaration() 406 getCurScope(), ObjCTypeParamVariance::Invariant, SourceLocation(), in parseObjCTypeParamListOrProtocolRefs() 486 getCurScope(), variance, varianceLoc, typeParams.size(), paramName, in parseObjCTypeParamListOrProtocolRefs() [all …]
|
| H A D | ParseExpr.cpp | 69 LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__, in ParseExpressionWithLeadingExtension() 80 getCurScope(), PreferredType.get(Tok.getLocation())); in ParseAssignmentExpression() 99 getCurScope(), PreferredType.get(Tok.getLocation())); in ParseConditionalExpression() 263 ExprResult Op = Actions.ActOnBinOp(getCurScope(), LogicalAndLoc, in ParseConstraintLogicalAndExpression() 285 ExprResult Op = Actions.ActOnBinOp(getCurScope(), LogicalOrLoc, in ParseConstraintLogicalOrExpression() 533 Actions.ActOnBinOp(getCurScope(), OpToken.getLocation(), in ParseRHSOfBinaryExpression() 801 Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope()); in ParseCastExpression() 829 Res = Actions.ActOnNameClassifiedAsOverloadSet(getCurScope(), Res.get()); in ParseCastExpression() 921 (Actions.getTypeName(II, ILoc, getCurScope()) || in ParseCastExpression() 923 (&II == Ident_super && getCurScope()->isInObjcMethodScope()))) { in ParseCastExpression() [all …]
|
| H A D | ParseExprCXX.cpp | 98 if (!Actions.isTemplateName(getCurScope(), SS, /*hasTemplateKeyword=*/false, in CheckForTemplateAndDigraph() 215 getCurScope()->isFunctionDeclarationScope()) in ParseOptionalCXXScopeSpecifier() 238 getCurScope(), SS, EnteringContext, InUsingDeclaration, in ParseOptionalCXXScopeSpecifier() 317 getCurScope(), SS, TemplateKWLoc, TemplateName, ObjectType, in ParseOptionalCXXScopeSpecifier() 355 Actions.ActOnCXXNestedNameSpecifier(getCurScope(), in ParseOptionalCXXScopeSpecifier() 406 if (Actions.IsInvalidUnlessNestedName(getCurScope(), SS, IdInfo, in ParseOptionalCXXScopeSpecifier() 466 getCurScope(), IdInfo, EnteringContext, SS, CorrectionFlagPtr, in ParseOptionalCXXScopeSpecifier() 494 getCurScope(), SS, in ParseOptionalCXXScopeSpecifier() 541 getCurScope(), SS, /*TemplateKWLoc=*/SourceLocation(), TemplateName, in ParseOptionalCXXScopeSpecifier() 576 E = Actions.ActOnNameClassifiedAsNonType(getCurScope(), SS, ND, Loc, Tok); in tryParseCXXIdExpression() [all …]
|
| H A D | Parser.cpp | 423 N->Init(getCurScope(), ScopeFlags); in EnterScope() 426 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags); in EnterScope() 431 assert(getCurScope() && "Scope imbalance!"); in ExitScope() 435 Actions.ActOnPopScope(Tok.getLocation(), getCurScope()); in ExitScope() 437 Scope *OldScope = getCurScope(); in ExitScope() 448 : CurScope(ManageFlags ? Self->getCurScope() : nullptr) { in ParseScopeFlags() 467 delete getCurScope(); in ~Parser() 485 assert(getCurScope() == nullptr && "A scope is already active?"); in Initialize() 487 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize() 848 Actions.ActOnEmptyDeclaration(getCurScope(), Attrs, Tok.getLocation()); in ParseExternalDeclaration() [all …]
|
| H A D | ParseDeclCXX.cpp | 46 Actions.CodeCompletion().CodeCompleteNamespaceDecl(getCurScope()); in ParseNamespace() 135 if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() || in ParseNamespace() 136 getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() || in ParseNamespace() 137 getCurScope()->getFnParent()) { in ParseNamespace() 206 getCurScope(), InlineLoc, NamespaceLoc, IdentLoc, Ident, in ParseNamespace() 252 getCurScope(), InnerNSs[index].InlineLoc, InnerNSs[index].NamespaceLoc, in ParseInnerNamespace() 274 Actions.CodeCompletion().CodeCompleteNamespaceAliasDecl(getCurScope()); in ParseNamespaceAlias() 311 return Actions.ActOnNamespaceAliasDef(getCurScope(), NamespaceLoc, AliasLoc, in ParseNamespaceAlias() 324 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(), in ParseLinkage() 343 getCurScope(), LinkageSpec, SourceLocation()) in ParseLinkage() [all …]
|
| H A D | ParseStmt.cpp | 154 getCurScope(), SemaCodeCompletion::PCC_Statement); in ParseStatementOrDeclarationAfterAttributes() 532 if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() && in ParseExprStatement() 611 ParseScopeFlags FilterScope(this, getCurScope()->getFlags() | in ParseSEHExceptBlock() 666 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); in ParseSEHLeaveStatement() 790 Actions.CodeCompletion().CodeCompleteCase(getCurScope()); in ParseCaseStatement() 942 SubStmt.get(), getCurScope()); in ParseDefaultStatement() 1136 Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseCompoundStatementBody() 1264 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition() 1284 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition() 1568 Actions.CodeCompletion().CodeCompleteAfterIf(getCurScope(), IsBracedThen); in ParseIfStatement() [all …]
|
| H A D | ParseTemplate.cpp | 28 return Actions.getCurScope(); in ReenterTemplateScopes() 209 getCurScope(), AS, DS, ParsedAttributesView::none(), in ParseDeclarationAfterTemplate() 286 getCurScope(), *TemplateInfo.TemplateParams, Id, IdLoc); in ParseConceptDefinition() 314 return Actions.ActOnFinishConceptDefinition(getCurScope(), D, ConstraintExpr, in ParseConceptDefinition() 503 getCurScope(), D, Depth, Position, /*EqualLoc=*/SourceLocation(), in ParseTemplateParameter() 560 auto TNK = Actions.isTemplateName(getCurScope(), SS, in TryAnnotateTypeConstraint() 671 NamedDecl *NewDecl = Actions.ActOnTypeParameter(getCurScope(), in ParseTypeParameter() 795 getCurScope(), TemplateLoc, ParamList, TypenameKeyword, EllipsisLoc, in ParseTemplateTemplateParameter() 856 return Actions.ActOnNonTypeTemplateParameter(getCurScope(), ParamDecl, in ParseNonTypeTemplateParameter() 1115 getCurScope(), SS, TemplateKWLoc, Template, in AnnotateTemplateIdToken() [all …]
|
| H A D | ParseDecl.cpp | 685 Actions.ActOnReenterCXXMethodParameter(getCurScope(), Param); in ParseGNUAttributeArgs() 1962 getCurScope(), AS_none, DS, ParsedAttributesView::none(), AnonRecord); in ParseSimpleDeclaration() 2338 Decl *ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclGroup() 2348 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, ThisDecl); in ParseDeclGroup() 2436 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseDeclGroup() 2480 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes() 2492 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes() 2523 ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclarationAfterDeclaratorAndAttributes() 2528 ThisDecl = Actions.ActOnTemplateDeclarator(getCurScope(), in ParseDeclarationAfterDeclaratorAndAttributes() 2542 getCurScope(), TemplateInfo.ExternLoc, TemplateInfo.TemplateLoc, D); in ParseDeclarationAfterDeclaratorAndAttributes() [all …]
|
| H A D | ParseCXXInlineMethods.cpp | 78 FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D, in ParseCXXInlineMethodDef() 81 FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D, in ParseCXXInlineMethodDef() 85 Actions.ProcessDeclAttributeList(getCurScope(), FnD, AccessAttrs); in ParseCXXInlineMethodDef() 352 P.Actions.ActOnStartDelayedMemberDeclarations(P.getCurScope(), in ReenterClassScopeRAII() 359 P.Actions.ActOnFinishDelayedMemberDeclarations(P.getCurScope(), in ~ReenterClassScopeRAII() 376 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration() 387 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), Param); in ParseLexedMethodDeclaration() 564 Actions.ActOnFinishDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration() 604 Actions.ActOnStartOfFunctionDef(getCurScope(), LM.D); in ParseLexedMethodDef() 796 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs); in ParseLexedAttribute()
|
| H A D | ParseInit.cpp | 212 getCurScope()->isInObjcMethodScope()) { in ParseInitializerWithPotentialDesignator() 249 getCurScope(), II, IILoc, II == Ident_super, in ParseInitializerWithPotentialDesignator()
|
| H A D | ParseOpenMP.cpp | 51 P->getCurScope(), SS, NameInfo, Kind); in operator ()() 241 getCurScope(), Actions.getCurLexicalContext(), Name, ReductionTypes, in ParseOpenMPDeclareReductionDirective() 253 Actions.OpenMP().ActOnOpenMPDeclareReductionCombinerStart(getCurScope(), D); in ParseOpenMPDeclareReductionDirective() 291 getCurScope(), D); in ParseOpenMPDeclareReductionDirective() 324 getCurScope(), DRD, IsCorrect); in ParseOpenMPDeclareReductionDirective() 335 Actions.CodeCompletion().CodeCompleteInitializer(getCurScope(), in ParseOpenMPReductionInitializerForDecl() 460 Scope *OuterScope = getCurScope(); in ParseOpenMPDeclareMapperDirective() 468 getCurScope(), Loc); in ParseOpenMPDeclareMapperDirective() 473 getCurScope(), MapperType, Range.getBegin(), VName); in ParseOpenMPDeclareMapperDirective() 535 return Actions.OpenMP().ActOnOpenMPDeclareMapperVarDecl(getCurScope(), in parseOpenMPDeclareMapperVarDecl() [all …]
|
| H A D | ParseTentative.cpp | 48 getCurScope(), *II, Tok.getLocation(), SS, /*Template=*/nullptr); in isCXXDeclarationStatement() 49 if (Actions.isCurrentClassName(*II, getCurScope(), &SS) || in isCXXDeclarationStatement() 1891 Actions.ClassifyName(getCurScope(), SS, Name, NameLoc, Next, &CCC); in NameAfterArrowIsNonType() 2009 getCurScope(), &SS)) in isExplicitBool()
|
| H A D | ParseHLSL.cpp | 75 Decl *D = Actions.HLSL().ActOnStartBuffer(getCurScope(), IsCBuffer, BufferLoc, in ParseHLSLBuffer()
|
| H A D | ParseOpenACC.cpp | 668 getActions().ActOnCondition(getCurScope(), ER.get()->getExprLoc(), in ParseOpenACCConditionExpr() 1382 Res = Actions.ActOnIdExpression(getCurScope(), ScopeSpec, TemplateKWLoc, in ParseOpenACCIDExpression()
|
| H A D | ParsePragma.cpp | 704 Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc); in HandlePragmaUnused() 767 Actions.ActOnPragmaDump(getCurScope(), Tok.getLocation(), II); in HandlePragmaDump() 939 Actions.ActOnCapturedRegionStart(Loc, getCurScope(), CR_Default, in HandlePragmaCaptured() 3885 Actions.LookupName(Previous, Actions.getCurScope(), in HandlePragmaMSIntrinsic() 3888 Actions.LazilyCreateBuiltin(II, II->getBuiltinID(), Actions.getCurScope(), in HandlePragmaMSIntrinsic()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | ScopedHashTable.h | 208 ScopeTy *getCurScope() { return CurScope; } in getCurScope() function 209 const ScopeTy *getCurScope() const { return CurScope; } in getCurScope() function
|
| /freebsd/contrib/llvm-project/clang/lib/Interpreter/ |
| H A D | IncrementalParser.cpp | 61 S.ActOnTranslationUnitScope(P->getCurScope()); in ParseOrWrapTopLevelDecl()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaPseudoObject.cpp | 1397 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildGet() 1407 return S.BuildCallExpr(S.getCurScope(), GetterExpr.get(), in buildGet() 1426 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildSet() 1439 return S.BuildCallExpr(S.getCurScope(), SetterExpr.get(), in buildSet()
|
| H A D | SemaStmt.cpp | 561 getCurScope()->isInOpenACCComputeConstructScope(Scope::SwitchScope)) { in ActOnCaseStmt() 586 getCurScope()->isInOpenACCComputeConstructScope(Scope::SwitchScope)) { in ActOnDefaultStmt() 615 if (getCurScope()->isInOpenACCComputeConstructScope()) in ActOnLabelStmt() 2560 *BeginExpr = SemaRef.ActOnCoawaitExpr(SemaRef.getCurScope(), ColonLoc, in BuildNonArrayForRange() 2714 Scope *S = getCurScope(); in BuildCXXForRangeStmt() 3240 if (getCurScope()->isInOpenACCComputeConstructScope()) in ActOnGotoStmt() 3274 if (getCurScope()->isInOpenACCComputeConstructScope()) in ActOnIndirectGotoStmt() 3852 if (getCurScope()->isInOpenACCComputeConstructScope()) in ActOnReturnStmt() 4324 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in ActOnCXXTryBlock()
|
| H A D | HLSLBuiltinTypeDeclBuilder.cpp | 43 S.LookupName(R, S.getCurScope()); in lookupBuiltinFunction() 403 unsigned CurScopeDepth = DeclBuilder.SemaRef.getCurScope()->getDepth(); in createDecl()
|
| H A D | SemaOpenMP.cpp | 985 Scope *getCurScope() const { in getCurScope() function in __anon1dd12e440111::DSAStackTy 1671 Scope *CurScope = getCurScope(); in isOpenMPLocal() 3014 SemaRef.getCurScope(), Stack)) in finishLinearClauses() 3034 SemaRef.getCurScope()); in ValidateCandidate() 3055 SemaRef.getCurScope()); in ValidateCandidate() 4786 if (!Stack->getCurScope()) in checkNestingOfRegions() 5528 Actions.getCurScope(), {}, BO_Assign, DistRef, Dist)); in buildDistanceFunc() 5606 Body = AssertSuccess(Actions.BuildBinOp(Actions.getCurScope(), {}, in buildLoopVarFunc() 5852 S, Stack->getCurScope(), MapperIdScopeSpec, DefaultMapperId, in processImplicitMapsWithDefaultMappers() 7353 if (SemaRef.LookupName(Result, SemaRef.getCurScope())) { in checkOpenMPDeclareVariantFunction() [all …]
|
| H A D | SemaStmtAsm.cpp | 826 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier() 878 if (LookupName(BaseResult, getCurScope()) && BaseResult.isSingleResult()) in LookupInlineAsmField()
|
| H A D | SemaCoroutine.cpp | 794 if (isWithinCatchScope(S.getCurScope())) { in checkSuspensionContext() 1638 S.BuildCallExpr(S.getCurScope(), NewRef.get(), Loc, NewArgs, Loc); in makeNewAndDeleteExpr() 1688 S.BuildCallExpr(S.getCurScope(), DeleteRef.get(), Loc, DeleteArgs, Loc); in makeNewAndDeleteExpr()
|
| H A D | SemaTemplateDeductionGuide.cpp | 906 SemaRef.BuildBinOp(SemaRef.getCurScope(), SourceLocation{}, in buildAssociatedConstraints() 1295 SemaRef.getCurScope(), SourceLocation{}, in DeclareImplicitDeductionGuidesForTypeAlias()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Parse/ |
| H A D | Parser.h | 211 Scope *getCurScope() const { return Actions.getCurScope(); } in getCurScope() function 2535 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS)) in EnterDeclaratorScope() 2542 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS); in ~DeclaratorScopeObj()
|