Home
last modified time | relevance | path

Searched refs:getCurScope (Results 1 – 25 of 31) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/
H A DParseObjc.cpp54 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCAtDirectives()
176 Actions.ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
223 Actions.CodeCompleteObjCInterfaceDecl(getCurScope()); in ParseObjCAtInterfaceDeclaration()
242 ObjCTypeParamListScope typeParamScope(Actions, getCurScope()); in ParseObjCAtInterfaceDeclaration()
257 Actions.CodeCompleteObjCInterfaceCategory(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
312 Actions.CodeCompleteObjCSuperclass(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
357 getCurScope(), AtLoc, nameId, nameLoc, typeParameterList, superClassId, in ParseObjCAtInterfaceDeclaration()
437 getCurScope(), ObjCTypeParamVariance::Invariant, SourceLocation(), in parseObjCTypeParamListOrProtocolRefs()
515 getCurScope(), variance, varianceLoc, typeParams.size(), paramName, in parseObjCTypeParamListOrProtocolRefs()
556 getCurScope(), in parseObjCTypeParamListOrProtocolRefs()
[all …]
H A DParseExpr.cpp153 LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__, in ParseExpressionWithLeadingExtension()
163 Actions.CodeCompleteExpression(getCurScope(), in ParseAssignmentExpression()
326 ExprResult Op = Actions.ActOnBinOp(getCurScope(), LogicalAndLoc, in ParseConstraintLogicalAndExpression()
361 ExprResult Op = Actions.ActOnBinOp(getCurScope(), LogicalOrLoc, in ParseConstraintLogicalOrExpression()
629 Actions.ActOnBinOp(getCurScope(), OpToken.getLocation(), in ParseRHSOfBinaryExpression()
991 Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope()); in ParseCastExpression()
1014 Res = Actions.ActOnNameClassifiedAsOverloadSet(getCurScope(), Res.get()); in ParseCastExpression()
1153 (Actions.getTypeName(II, ILoc, getCurScope()) || in ParseCastExpression()
1155 (&II == Ident_super && getCurScope()->isInObjcMethodScope()))) { in ParseCastExpression()
1161 getCurScope(), II, ILoc, ExprStatementTokLoc == ILoc); in ParseCastExpression()
[all …]
H A DParseExprCXX.cpp96 if (!Actions.isTemplateName(getCurScope(), SS, /*hasTemplateKeyword=*/false, in CheckForTemplateAndDigraph()
241 Actions.CodeCompleteQualifiedId(getCurScope(), SS, EnteringContext, in ParseOptionalCXXScopeSpecifier()
321 getCurScope(), SS, TemplateKWLoc, TemplateName, ObjectType, in ParseOptionalCXXScopeSpecifier()
359 Actions.ActOnCXXNestedNameSpecifier(getCurScope(), in ParseOptionalCXXScopeSpecifier()
396 if (Actions.IsInvalidUnlessNestedName(getCurScope(), SS, IdInfo, in ParseOptionalCXXScopeSpecifier()
456 getCurScope(), IdInfo, EnteringContext, SS, false, in ParseOptionalCXXScopeSpecifier()
483 if (TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS, in ParseOptionalCXXScopeSpecifier()
533 getCurScope(), SS, TemplateNameLoc, TemplateName, ObjectType, in ParseOptionalCXXScopeSpecifier()
567 E = Actions.ActOnNameClassifiedAsNonType(getCurScope(), SS, ND, Loc, Tok); in tryParseCXXIdExpression()
611 getCurScope(), SS, TemplateKWLoc, Name, Tok.is(tok::l_paren), in tryParseCXXIdExpression()
[all …]
H A DParser.cpp406 N->Init(getCurScope(), ScopeFlags); in EnterScope()
409 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags); in EnterScope()
415 assert(getCurScope() && "Scope imbalance!"); in ExitScope()
419 Actions.ActOnPopScope(Tok.getLocation(), getCurScope()); in ExitScope()
421 Scope *OldScope = getCurScope(); in ExitScope()
434 : CurScope(ManageFlags ? Self->getCurScope() : nullptr) { in ParseScopeFlags()
455 delete getCurScope(); in ~Parser()
475 assert(getCurScope() == nullptr && "A scope is already active?"); in Initialize()
477 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize()
822 Actions.ActOnEmptyDeclaration(getCurScope(), attrs, Tok.getLocation()); in ParseExternalDeclaration()
[all …]
H A DParseDeclCXX.cpp67 Actions.CodeCompleteNamespaceDecl(getCurScope()); in ParseNamespace()
146 if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() || in ParseNamespace()
147 getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() || in ParseNamespace()
148 getCurScope()->getFnParent()) { in ParseNamespace()
216 getCurScope(), InlineLoc, NamespaceLoc, IdentLoc, Ident, in ParseNamespace()
262 getCurScope(), InnerNSs[index].InlineLoc, InnerNSs[index].NamespaceLoc, in ParseInnerNamespace()
287 Actions.CodeCompleteNamespaceAliasDecl(getCurScope()); in ParseNamespaceAlias()
324 return Actions.ActOnNamespaceAliasDef(getCurScope(), NamespaceLoc, AliasLoc, in ParseNamespaceAlias()
344 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(), in ParseLinkage()
359 getCurScope(), LinkageSpec, SourceLocation()) in ParseLinkage()
[all …]
H A DParseStmt.cpp181 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Statement); in ParseStatementOrDeclarationAfterAttributes()
467 if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() && in ParseExprStatement()
550 ParseScopeFlags FilterScope(this, getCurScope()->getFlags() | in ParseSEHExceptBlock()
610 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); in ParseSEHLeaveStatement()
722 Actions.CodeCompleteCase(getCurScope()); in ParseCaseStatement()
873 SubStmt.get(), getCurScope()); in ParseDefaultStatement()
1078 Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseCompoundStatementBody()
1200 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK); in ParseParenExprOrCondition()
1468 Actions.CodeCompleteAfterIf(getCurScope(), IsBracedThen); in ParseIfStatement()
1565 getCurScope()->AddFlags(Scope::BreakScope); in ParseSwitchStatement()
[all …]
H A DParseTemplate.cpp31 return Actions.getCurScope(); in ReenterTemplateScopes()
230 getCurScope(), AS, DS, in ParseSingleDeclarationAfterTemplate()
424 return Actions.ActOnConceptDefinition(getCurScope(), in ParseConceptDefinition()
652 getCurScope(), D, Depth, Position, /*EqualLoc=*/SourceLocation(), in ParseTemplateParameter()
719 auto TNK = Actions.isTemplateName(getCurScope(), SS, in TryAnnotateTypeConstraint()
827 NamedDecl *NewDecl = Actions.ActOnTypeParameter(getCurScope(), in ParseTypeParameter()
947 return Actions.ActOnTemplateTemplateParameter(getCurScope(), TemplateLoc, in ParseTemplateTemplateParameter()
1002 return Actions.ActOnNonTypeTemplateParameter(getCurScope(), ParamDecl, in ParseNonTypeTemplateParameter()
1329 getCurScope(), SS, TemplateKWLoc, Template, in AnnotateTemplateIdToken()
1404 getCurScope(), SS, TemplateId->TemplateKWLoc, in AnnotateTemplateIdTokenAsType()
[all …]
H A DParseDecl.cpp69 return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo); in ParseTypeName()
505 Actions.ActOnReenterCXXMethodParameter(getCurScope(), Param); in ParseGNUAttributeArgs()
1787 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS_none, in ParseSimpleDeclaration()
2071 Decl *ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclGroup()
2081 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, ThisDecl); in ParseDeclGroup()
2157 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseDeclGroup()
2224 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2234 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2263 ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclarationAfterDeclaratorAndAttributes()
2268 ThisDecl = Actions.ActOnTemplateDeclarator(getCurScope(), in ParseDeclarationAfterDeclaratorAndAttributes()
[all …]
H A DParseCXXInlineMethods.cpp39 FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D, in ParseCXXInlineMethodDef()
42 FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D, in ParseCXXInlineMethodDef()
46 Actions.ProcessDeclAttributeList(getCurScope(), FnD, AccessAttrs); in ParseCXXInlineMethodDef()
305 P.Actions.ActOnStartDelayedMemberDeclarations(P.getCurScope(), in ReenterClassScopeRAII()
312 P.Actions.ActOnFinishDelayedMemberDeclarations(P.getCurScope(), in ~ReenterClassScopeRAII()
333 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
344 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), Param); in ParseLexedMethodDeclaration()
503 Actions.ActOnFinishDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
544 Actions.ActOnStartOfFunctionDef(getCurScope(), LM.D); in ParseLexedMethodDef()
754 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs); in ParseLexedAttribute()
H A DParseOpenMP.cpp88 P->getCurScope(), SS, NameInfo, Kind); in operator ()()
354 getCurScope(), Actions.getCurLexicalContext(), Name, ReductionTypes, AS); in ParseOpenMPDeclareReductionDirective()
365 Actions.ActOnOpenMPDeclareReductionCombinerStart(getCurScope(), D); in ParseOpenMPDeclareReductionDirective()
401 Actions.ActOnOpenMPDeclareReductionInitializerStart(getCurScope(), in ParseOpenMPDeclareReductionDirective()
434 return Actions.ActOnOpenMPDeclareReductionDirectiveEnd(getCurScope(), DRD, in ParseOpenMPDeclareReductionDirective()
446 Actions.CodeCompleteInitializer(getCurScope(), OmpPrivParm); in ParseOpenMPReductionInitializerForDecl()
472 getCurScope(), OmpPrivParm->getType()->getCanonicalTypeInternal(), in ParseOpenMPReductionInitializerForDecl()
585 Actions.StartOpenMPDSABlock(OMPD_declare_mapper, DirName, getCurScope(), Loc); in ParseOpenMPDeclareMapperDirective()
589 getCurScope(), MapperType, Range.getBegin(), VName); in ParseOpenMPDeclareMapperDirective()
619 getCurScope(), Actions.getCurLexicalContext(), MapperId, MapperType, in ParseOpenMPDeclareMapperDirective()
[all …]
H A DParseInit.cpp255 getCurScope()->isInObjcMethodScope()) { in ParseInitializerWithPotentialDesignator()
292 getCurScope(), II, IILoc, II == Ident_super, in ParseInitializerWithPotentialDesignator()
H A DParseStmtAsm.cpp662 Actions.BuildUnaryOp(getCurScope(), AsmLoc, UO_AddrOf, OpExpr).get(); in ParseMicrosoftAsmStatement()
H A DParsePragma.cpp562 Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc); in HandlePragmaUnused()
625 Actions.ActOnPragmaDump(getCurScope(), Tok.getLocation(), II); in HandlePragmaDump()
749 Actions.ActOnCapturedRegionStart(Loc, getCurScope(), CR_Default, in HandlePragmaCaptured()
H A DParseTentative.cpp2163 getCurScope(), &SS)) in isExplicitBool()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DScopedHashTable.h209 ScopeTy *getCurScope() { return CurScope; } in getCurScope() function
210 const ScopeTy *getCurScope() const { return CurScope; } in getCurScope() function
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaPseudoObject.cpp1476 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildGet()
1486 return S.BuildCallExpr(S.getCurScope(), GetterExpr.get(), in buildGet()
1505 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildSet()
1518 return S.BuildCallExpr(S.getCurScope(), SetterExpr.get(), in buildSet()
H A DSemaOpenMP.cpp919 Scope *getCurScope() const { in getCurScope() function in __anon5b04668f0111::DSAStackTy
1539 Scope *CurScope = getCurScope(); in isOpenMPLocal()
2756 SemaRef.getCurScope()); in ValidateCandidate()
2778 SemaRef.getCurScope()); in ValidateCandidate()
4643 if (Stack->getCurScope()) { in checkNestingOfRegions()
5332 Actions.getCurScope(), {}, BO_Assign, DistRef, Dist)); in buildDistanceFunc()
5410 Body = AssertSuccess(Actions.BuildBinOp(Actions.getCurScope(), {}, in buildLoopVarFunc()
5641 S, Stack->getCurScope(), MapperIdScopeSpec, DefaultMapperId, in processImplicitMapsWithDefaultMappers()
8641 DSA.getCurScope(), For ? For->getCond() : CXXFor->getCond(), Captures); in checkOpenMPIterationSpace()
8643 ISC.buildNumIterations(DSA.getCurScope(), ResultIterSpaces, in checkOpenMPIterationSpace()
[all …]
H A DSemaStmtAsm.cpp768 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
820 if (LookupName(BaseResult, getCurScope()) && BaseResult.isSingleResult()) in LookupInlineAsmField()
H A DSemaCoroutine.cpp818 if (isWithinCatchScope(S.getCurScope())) in checkSuspensionContext()
1393 S.BuildCallExpr(S.getCurScope(), NewRef.get(), Loc, NewArgs, Loc); in makeNewAndDeleteExpr()
1419 S.BuildCallExpr(S.getCurScope(), DeleteRef.get(), Loc, DeleteArgs, Loc); in makeNewAndDeleteExpr()
H A DSemaCXXScopeSpec.cpp282 for (Scope *S = getCurScope(); S; S = S->getParent()) { in ActOnSuperScopeSpecifier()
H A DSemaStmt.cpp2552 *BeginExpr = SemaRef.ActOnCoawaitExpr(SemaRef.getCurScope(), ColonLoc, in BuildNonArrayForRange()
2708 Scope *S = getCurScope(); in BuildCXXForRangeStmt()
4441 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in ActOnCXXTryBlock()
H A DSemaExprMember.cpp1004 RetryExpr = ActOnStartCXXMemberReference(getCurScope(), BaseExpr, in BuildMemberReferenceExpr()
H A DSema.cpp1897 for (Scope *S = getCurScope(); S; S = S->getParent()) { in getScopeForContext()
H A DSemaType.cpp3383 } else if (!SemaRef.getCurScope()->isFunctionDeclarationScope()) { in GetDeclSpecTypeForDeclarator()
3664 if (S.LookupName(Result, S.getCurScope())) in warnAboutAmbiguousFunction()
3784 if (!S.LookupName(Result, S.getCurScope())) in warnAboutRedundantParens()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Parse/
H A DParser.h442 Scope *getCurScope() const { return Actions.getCurScope(); } in getCurScope() function
2935 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS)) in EnterDeclaratorScope()
2942 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS); in ~DeclaratorScopeObj()

12