Home
last modified time | relevance | path

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

12

/NextBSD/contrib/llvm/tools/clang/lib/Parse/
HDParseObjc.cpp51 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCAtDirectives()
127 Actions.popObjCTypeParamList(getCurScope(), TypeParams); in ParseObjCAtClassDeclaration()
154 Actions.ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
201 Actions.CodeCompleteObjCInterfaceDecl(getCurScope()); in ParseObjCAtInterfaceDeclaration()
239 Actions.CodeCompleteObjCInterfaceCategory(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
290 Actions.popObjCTypeParamList(getCurScope(), typeParameterList); in ParseObjCAtInterfaceDeclaration()
307 Actions.CodeCompleteObjCSuperclass(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
359 Actions.ActOnStartClassInterface(getCurScope(), AtLoc, nameId, nameLoc, in ParseObjCAtInterfaceDeclaration()
375 Actions.popObjCTypeParamList(getCurScope(), typeParameterList); in ParseObjCAtInterfaceDeclaration()
452 getCurScope(), in parseObjCTypeParamListOrProtocolRefs()
[all …]
HDParseExpr.cpp150 LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__, in ParseExpressionWithLeadingExtension()
159 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Expression); in ParseAssignmentExpression()
342 Actions.CodeCompleteAssignmentRHS(getCurScope(), LHS.get()); in ParseRHSOfBinaryExpression()
441 LHS = Actions.ActOnBinOp(getCurScope(), OpToken.getLocation(), in ParseRHSOfBinaryExpression()
730 Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope()); in ParseCastExpression()
867 (Actions.getTypeName(II, ILoc, getCurScope()) || in ParseCastExpression()
869 (&II == Ident_super && getCurScope()->isInObjcMethodScope()))) { in ParseCastExpression()
891 getCurScope()->isInObjcMethodScope() && in ParseCastExpression()
911 if (ParsedType Typ = Actions.getTypeName(II, ILoc, getCurScope())) in ParseCastExpression()
923 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), in ParseCastExpression()
[all …]
HDParseExprCXX.cpp94 if (!Actions.isTemplateName(getCurScope(), SS, /*hasTemplateKeyword=*/false, in CheckForTemplateAndDigraph()
291 Actions.CodeCompleteQualifiedId(getCurScope(), SS, EnteringContext); in ParseOptionalCXXScopeSpecifier()
358 = Actions.ActOnDependentTemplateName(getCurScope(), in ParseOptionalCXXScopeSpecifier()
399 if (Actions.ActOnCXXNestedNameSpecifier(getCurScope(), in ParseOptionalCXXScopeSpecifier()
434 if (Actions.IsInvalidUnlessNestedName(getCurScope(), SS, II, in ParseOptionalCXXScopeSpecifier()
463 getCurScope(), SS, Tok.getLocation(), II, ObjectType)) { in ParseOptionalCXXScopeSpecifier()
499 if (Actions.ActOnCXXNestedNameSpecifier(getCurScope(), II, IdLoc, CCLoc, in ParseOptionalCXXScopeSpecifier()
526 if (TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS, in ParseOptionalCXXScopeSpecifier()
561 = Actions.ActOnDependentTemplateName(getCurScope(), in ParseOptionalCXXScopeSpecifier()
608 return Actions.ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Name, in tryParseCXXIdExpression()
[all …]
HDParser.cpp375 N->Init(getCurScope(), ScopeFlags); in EnterScope()
378 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags); in EnterScope()
384 assert(getCurScope() && "Scope imbalance!"); in ExitScope()
388 Actions.ActOnPopScope(Tok.getLocation(), getCurScope()); in ExitScope()
390 Scope *OldScope = getCurScope(); in ExitScope()
403 : CurScope(ManageFlags ? Self->getCurScope() : nullptr) { in ParseScopeFlags()
424 delete getCurScope(); in ~Parser()
453 assert(getCurScope() == nullptr && "A scope is already active?"); in Initialize()
455 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize()
672 SingleDecl = Actions.ActOnEmptyDeclaration(getCurScope(), in ParseExternalDeclaration()
[all …]
HDParseDeclCXX.cpp65 Actions.CodeCompleteNamespaceDecl(getCurScope()); in ParseNamespace()
131 if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() || in ParseNamespace()
132 getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() || in ParseNamespace()
133 getCurScope()->getFnParent()) { in ParseNamespace()
184 Actions.ActOnStartNamespaceDef(getCurScope(), InlineLoc, NamespaceLoc, in ParseNamespace()
232 Actions.ActOnStartNamespaceDef(getCurScope(), SourceLocation(), in ParseInnerNamespace()
257 Actions.CodeCompleteNamespaceAliasDecl(getCurScope()); in ParseNamespaceAlias()
282 return Actions.ActOnNamespaceAliasDef(getCurScope(), NamespaceLoc, AliasLoc, Alias, in ParseNamespaceAlias()
302 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(), in ParseLinkage()
318 getCurScope(), LinkageSpec, SourceLocation()) in ParseLinkage()
[all …]
HDParseCXXInlineMethods.cpp42 FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D, in ParseCXXInlineMethodDef()
45 FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D, in ParseCXXInlineMethodDef()
49 Actions.ProcessDeclAttributeList(getCurScope(), FnD, AccessAttrs); in ParseCXXInlineMethodDef()
130 LM->TemplateScope = getCurScope()->isTemplateParamScope(); in ParseCXXInlineMethodDef()
271 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate); in ParseLexedMethodDeclarations()
281 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(), in ParseLexedMethodDeclarations()
289 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(), in ParseLexedMethodDeclarations()
298 Actions.ActOnReenterTemplateScope(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
302 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
312 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), Param); in ParseLexedMethodDeclaration()
[all …]
HDParseStmt.cpp169 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Statement); in ParseStatementOrDeclarationAfterAttributes()
392 if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() && in ParseExprStatement()
474 ParseScopeFlags FilterScope(this, getCurScope()->getFlags() | in ParseSEHExceptBlock()
534 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); in ParseSEHLeaveStatement()
644 Actions.CodeCompleteCase(getCurScope()); in ParseCaseStatement()
803 SubStmt.get(), getCurScope()); in ParseDefaultStatement()
939 Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseCompoundStatementBody()
1039 = Actions.ActOnBooleanCondition(getCurScope(), Loc, ExprResult.get()); in ParseParenExprOrCondition()
1167 Actions.CodeCompleteAfterIf(getCurScope()); in ParseIfStatement()
1262 getCurScope()->AddFlags(Scope::BreakScope); in ParseSwitchStatement()
[all …]
HDParseDecl.cpp67 return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo); in ParseTypeName()
376 Actions.ActOnReenterCXXMethodParameter(getCurScope(), Param); in ParseGNUAttributeArgs()
1135 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate); in ParseLexedAttributes()
1145 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(), in ParseLexedAttributes()
1154 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(), in ParseLexedAttributes()
1251 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs); in ParseLexedAttribute()
1538 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS_none, in ParseSimpleDeclaration()
1804 Decl *ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclGroup()
1809 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, ThisDecl); in ParseDeclGroup()
1879 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseDeclGroup()
[all …]
HDParseTemplate.cpp214 getCurScope(), AS, DS, in ParseSingleDeclarationAfterTemplate()
543 return Actions.ActOnTypeParameter(getCurScope(), TypenameKeyword, EllipsisLoc, in ParseTypeParameter()
653 return Actions.ActOnTemplateTemplateParameter(getCurScope(), TemplateLoc, in ParseTemplateTemplateParameter()
706 return Actions.ActOnNonTypeTemplateParameter(getCurScope(), ParamDecl, in ParseNonTypeTemplateParameter()
1121 Actions.ActOnDependentTemplateName(getCurScope(), in ParseTemplateTemplateArgument()
1139 TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS, in ParseTemplateTemplateArgument()
1343 Actions.ActOnReenterTemplateScope(getCurScope(), cast<Decl>(*II)); in ParseLateTemplatedFuncDef()
1347 Actions.PushDeclContext(Actions.getCurScope(), *II); in ParseLateTemplatedFuncDef()
1371 Actions.ActOnStartOfFunctionDef(getCurScope(), FunD); in ParseLateTemplatedFuncDef()
HDParseInit.cpp217 getCurScope()->isInObjcMethodScope()) { in ParseInitializerWithPotentialDesignator()
256 getCurScope(), II, IILoc, II == Ident_super, in ParseInitializerWithPotentialDesignator()
HDParseOpenMP.cpp251 Actions.StartOpenMPDSABlock(DKind, DirName, Actions.getCurScope(), Loc); in ParseOpenMPDeclarativeOrExecutableDirective()
284 Actions.ActOnOpenMPRegionStart(DKind, getCurScope()); in ParseOpenMPDeclarativeOrExecutableDirective()
358 Actions.ActOnOpenMPIdExpression(getCurScope(), SS, NameInfo); in ParseOpenMPSimpleVarList()
HDParseStmtAsm.cpp578 Actions.BuildUnaryOp(getCurScope(), AsmLoc, UO_AddrOf, OpExpr).get(); in ParseMicrosoftAsmStatement()
HDParsePragma.cpp317 Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc); in HandlePragmaUnused()
427 Actions.ActOnCapturedRegionStart(Loc, getCurScope(), CR_Default, in HandlePragmaCaptured()
/NextBSD/contrib/llvm/include/llvm/ADT/
HDScopedHashTable.h202 ScopeTy *getCurScope() { return CurScope; } in getCurScope() function
203 const ScopeTy *getCurScope() const { return CurScope; } in getCurScope() function
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaStmtAsm.cpp518 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
575 if (!LookupName(BaseResult, getCurScope())) in LookupInlineAsmField()
HDSemaPseudoObject.cpp1427 S.getCurScope(), RefExpr->getBaseExpr(), SourceLocation(), in buildGet()
1438 return S.ActOnCallExpr(S.getCurScope(), GetterExpr.get(), in buildGet()
1457 S.getCurScope(), RefExpr->getBaseExpr(), SourceLocation(), in buildSet()
1469 return S.ActOnCallExpr(S.getCurScope(), SetterExpr.get(), in buildSet()
HDSemaOpenMP.cpp279 Scope *getCurScope() const { return Stack.back().CurScope; } in getCurScope() function in __anona5ec887d0111::DSAStackTy
280 Scope *getCurScope() { return Stack.back().CurScope; } in getCurScope() function in __anona5ec887d0111::DSAStackTy
444 Scope *CurScope = getCurScope(); in isOpenMPLocal()
770 SemaRef.getCurScope()); in ValidateCandidate()
1838 if (Stack->getCurScope()) { in CheckNestingOfRegions()
2967 ResultIterSpace.PreCond = ISC.BuildPreCond(DSA.getCurScope(), For->getCond()); in CheckOpenMPIterationSpace()
2969 DSA.getCurScope(), /* LimitedType */ isOpenMPWorksharingDirective(DKind)); in CheckOpenMPIterationSpace()
3179 Scope *CurScope = DSA.getCurScope(); in CheckOpenMPLoop()
4631 ExprResult Val = ActOnBooleanCondition(DSAStack->getCurScope(), in ActOnOpenMPIfClause()
4650 ExprResult Val = ActOnBooleanCondition(DSAStack->getCurScope(), in ActOnOpenMPFinalClause()
[all …]
HDSemaCXXScopeSpec.cpp257 for (Scope *S = getCurScope(); S; S = S->getParent()) { in ActOnSuperScopeSpecifier()
HDSemaStmt.cpp2129 Scope *S = getCurScope(); in BuildCXXForRangeStmt()
3542 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in ActOnCXXTryBlock()
HDSema.cpp1086 for (Scope *S = getCurScope(); S; S = S->getParent()) { in getScopeForContext()
HDSemaExprMember.cpp963 RetryExpr = ActOnStartCXXMemberReference(getCurScope(), BaseExpr, in BuildMemberReferenceExpr()
HDSemaExprCXX.cpp645 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in BuildCXXThrow()
HDSemaChecking.cpp214 Scope *S = SemaRef.getCurScope(); in SemaBuiltinSEHScopeCheck()
4141 if (S.LookupName(Result, S.getCurScope())) { in checkFormatExpr()
4843 S.LookupName(R, S.getCurScope()); in emitReplacement()
HDSemaType.cpp2824 if (S.LookupName(Result, S.getCurScope())) in warnAboutAmbiguousFunction()
5955 ExprResult Size = S.ActOnIdExpression(S.getCurScope(), SS, TemplateKWLoc, in HandleExtVectorTypeAttr()
/NextBSD/contrib/llvm/tools/clang/include/clang/Parse/
HDParser.h250 Scope *getCurScope() const { return Actions.getCurScope(); } in getCurScope() function
2259 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS)) in EnterDeclaratorScope()
2266 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS); in ~DeclaratorScopeObj()

12