Home
last modified time | relevance | path

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

12

/external/clang/lib/Parse/
DParseExpr.cpp150 LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__, in ParseExpressionWithLeadingExtension()
159 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Expression); in ParseAssignmentExpression()
344 Actions.CodeCompleteAssignmentRHS(getCurScope(), LHS.get()); in ParseRHSOfBinaryExpression()
443 LHS = Actions.ActOnBinOp(getCurScope(), OpToken.getLocation(), in ParseRHSOfBinaryExpression()
733 Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope()); in ParseCastExpression()
870 (Actions.getTypeName(II, ILoc, getCurScope()) || in ParseCastExpression()
872 (&II == Ident_super && getCurScope()->isInObjcMethodScope()))) { in ParseCastExpression()
894 getCurScope()->isInObjcMethodScope() && in ParseCastExpression()
914 if (ParsedType Typ = Actions.getTypeName(II, ILoc, getCurScope())) in ParseCastExpression()
926 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), in ParseCastExpression()
[all …]
DParseObjc.cpp51 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCAtDirectives()
173 Actions.ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
220 Actions.CodeCompleteObjCInterfaceDecl(getCurScope()); in ParseObjCAtInterfaceDeclaration()
243 ObjCTypeParamListScope typeParamScope(Actions, getCurScope()); in ParseObjCAtInterfaceDeclaration()
257 Actions.CodeCompleteObjCInterfaceCategory(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
322 Actions.CodeCompleteObjCSuperclass(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
373 Actions.ActOnStartClassInterface(getCurScope(), AtLoc, nameId, nameLoc, in ParseObjCAtInterfaceDeclaration()
462 getCurScope(), in parseObjCTypeParamListOrProtocolRefs()
546 DeclResult typeParam = Actions.actOnObjCTypeParam(getCurScope(), in parseObjCTypeParamListOrProtocolRefs()
596 getCurScope(), in parseObjCTypeParamListOrProtocolRefs()
[all …]
DParseExprCXX.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 …]
DParser.cpp376 N->Init(getCurScope(), ScopeFlags); in EnterScope()
379 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags); in EnterScope()
385 assert(getCurScope() && "Scope imbalance!"); in ExitScope()
389 Actions.ActOnPopScope(Tok.getLocation(), getCurScope()); in ExitScope()
391 Scope *OldScope = getCurScope(); in ExitScope()
404 : CurScope(ManageFlags ? Self->getCurScope() : nullptr) { in ParseScopeFlags()
425 delete getCurScope(); in ~Parser()
454 assert(getCurScope() == nullptr && "A scope is already active?"); in Initialize()
456 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize()
673 SingleDecl = Actions.ActOnEmptyDeclaration(getCurScope(), in ParseExternalDeclaration()
[all …]
DParseDeclCXX.cpp66 Actions.CodeCompleteNamespaceDecl(getCurScope()); in ParseNamespace()
132 if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() || in ParseNamespace()
133 getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() || in ParseNamespace()
134 getCurScope()->getFnParent()) { in ParseNamespace()
186 Actions.ActOnStartNamespaceDef(getCurScope(), InlineLoc, NamespaceLoc, in ParseNamespace()
237 Actions.ActOnStartNamespaceDef(getCurScope(), SourceLocation(), in ParseInnerNamespace()
263 Actions.CodeCompleteNamespaceAliasDecl(getCurScope()); in ParseNamespaceAlias()
288 return Actions.ActOnNamespaceAliasDef(getCurScope(), NamespaceLoc, AliasLoc, in ParseNamespaceAlias()
308 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(), in ParseLinkage()
324 getCurScope(), LinkageSpec, SourceLocation()) in ParseLinkage()
[all …]
DParseCXXInlineMethods.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()
132 LM->TemplateScope = getCurScope()->isTemplateParamScope(); in ParseCXXInlineMethodDef()
273 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate); in ParseLexedMethodDeclarations()
283 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(), in ParseLexedMethodDeclarations()
291 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(), in ParseLexedMethodDeclarations()
300 Actions.ActOnReenterTemplateScope(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
304 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
314 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), Param); in ParseLexedMethodDeclaration()
[all …]
DParseStmt.cpp169 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Statement); in ParseStatementOrDeclarationAfterAttributes()
401 if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() && in ParseExprStatement()
483 ParseScopeFlags FilterScope(this, getCurScope()->getFlags() | in ParseSEHExceptBlock()
543 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); in ParseSEHLeaveStatement()
653 Actions.CodeCompleteCase(getCurScope()); in ParseCaseStatement()
812 SubStmt.get(), getCurScope()); in ParseDefaultStatement()
951 Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseCompoundStatementBody()
1052 = Actions.ActOnBooleanCondition(getCurScope(), Loc, ExprResult.get()); in ParseParenExprOrCondition()
1180 Actions.CodeCompleteAfterIf(getCurScope()); in ParseIfStatement()
1275 getCurScope()->AddFlags(Scope::BreakScope); in ParseSwitchStatement()
[all …]
DParseDecl.cpp69 return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo); in ParseTypeName()
377 Actions.ActOnReenterCXXMethodParameter(getCurScope(), Param); in ParseGNUAttributeArgs()
1134 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate); in ParseLexedAttributes()
1144 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(), in ParseLexedAttributes()
1153 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(), in ParseLexedAttributes()
1248 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs); in ParseLexedAttribute()
1533 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS_none, in ParseSimpleDeclaration()
1799 Decl *ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclGroup()
1804 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, ThisDecl); in ParseDeclGroup()
1874 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseDeclGroup()
[all …]
DParseTemplate.cpp214 getCurScope(), AS, DS, in ParseSingleDeclarationAfterTemplate()
543 return Actions.ActOnTypeParameter(getCurScope(), TypenameKeyword, EllipsisLoc, in ParseTypeParameter()
653 return Actions.ActOnTemplateTemplateParameter(getCurScope(), TemplateLoc, in ParseTemplateTemplateParameter()
707 return Actions.ActOnNonTypeTemplateParameter(getCurScope(), ParamDecl, in ParseNonTypeTemplateParameter()
1122 Actions.ActOnDependentTemplateName(getCurScope(), in ParseTemplateTemplateArgument()
1140 TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS, in ParseTemplateTemplateArgument()
1344 Actions.ActOnReenterTemplateScope(getCurScope(), cast<Decl>(*II)); in ParseLateTemplatedFuncDef()
1348 Actions.PushDeclContext(Actions.getCurScope(), *II); in ParseLateTemplatedFuncDef()
1372 Actions.ActOnStartOfFunctionDef(getCurScope(), FunD); in ParseLateTemplatedFuncDef()
DParseInit.cpp217 getCurScope()->isInObjcMethodScope()) { in ParseInitializerWithPotentialDesignator()
256 getCurScope(), II, IILoc, II == Ident_super, in ParseInitializerWithPotentialDesignator()
DParseOpenMP.cpp270 Actions.StartOpenMPDSABlock(DKind, DirName, Actions.getCurScope(), Loc); in ParseOpenMPDeclarativeOrExecutableDirective()
314 Actions.ActOnOpenMPRegionStart(DKind, getCurScope()); in ParseOpenMPDeclarativeOrExecutableDirective()
386 Actions.ActOnOpenMPIdExpression(getCurScope(), SS, NameInfo); in ParseOpenMPSimpleVarList()
DParseStmtAsm.cpp600 Actions.BuildUnaryOp(getCurScope(), AsmLoc, UO_AddrOf, OpExpr).get(); in ParseMicrosoftAsmStatement()
DParsePragma.cpp325 Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc); in HandlePragmaUnused()
437 Actions.ActOnCapturedRegionStart(Loc, getCurScope(), CR_Default, in HandlePragmaCaptured()
/external/llvm/include/llvm/ADT/
DScopedHashTable.h202 ScopeTy *getCurScope() { return CurScope; } in getCurScope() function
203 const ScopeTy *getCurScope() const { return CurScope; } in getCurScope() function
/external/clang/lib/Sema/
DSemaStmtAsm.cpp572 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
626 if (!LookupName(BaseResult, getCurScope())) in LookupInlineAsmField()
DSemaPseudoObject.cpp1476 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildGet()
1486 return S.ActOnCallExpr(S.getCurScope(), GetterExpr.get(), in buildGet()
1505 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildSet()
1518 return S.ActOnCallExpr(S.getCurScope(), SetterExpr.get(), in buildSet()
DSemaOpenMP.cpp329 Scope *getCurScope() const { return Stack.back().CurScope; } in getCurScope() function in __anon216cbd260111::DSAStackTy
330 Scope *getCurScope() { return Stack.back().CurScope; } in getCurScope() function in __anon216cbd260111::DSAStackTy
521 Scope *CurScope = getCurScope(); in isOpenMPLocal()
851 if (DSAStack->getCurScope() && in IsOpenMPCapturedVar()
979 SemaRef.getCurScope()); in ValidateCandidate()
2214 if (Stack->getCurScope()) { in CheckNestingOfRegions()
3509 ResultIterSpace.PreCond = ISC.BuildPreCond(DSA.getCurScope(), For->getCond()); in CheckOpenMPIterationSpace()
3511 DSA.getCurScope(), (isOpenMPWorksharingDirective(DKind) || in CheckOpenMPIterationSpace()
3743 Scope *CurScope = DSA.getCurScope(); in CheckOpenMPLoop()
5638 ExprResult Val = ActOnBooleanCondition(DSAStack->getCurScope(), in ActOnOpenMPIfClause()
[all …]
DSemaCXXScopeSpec.cpp257 for (Scope *S = getCurScope(); S; S = S->getParent()) { in ActOnSuperScopeSpecifier()
DSemaStmt.cpp2159 Scope *S = getCurScope(); in BuildCXXForRangeStmt()
3579 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in ActOnCXXTryBlock()
DSema.cpp1114 for (Scope *S = getCurScope(); S; S = S->getParent()) { in getScopeForContext()
DSemaExprMember.cpp1015 RetryExpr = ActOnStartCXXMemberReference(getCurScope(), BaseExpr, in BuildMemberReferenceExpr()
DSemaExprCXX.cpp645 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in BuildCXXThrow()
DSemaChecking.cpp248 Scope *S = SemaRef.getCurScope(); in SemaBuiltinSEHScopeCheck()
4308 if (S.LookupName(Result, S.getCurScope())) { in checkFormatExpr()
5010 S.LookupName(R, S.getCurScope()); in emitReplacement()
DSemaType.cpp2860 if (S.LookupName(Result, S.getCurScope())) in warnAboutAmbiguousFunction()
6048 ExprResult Size = S.ActOnIdExpression(S.getCurScope(), SS, TemplateKWLoc, in HandleExtVectorTypeAttr()
/external/clang/include/clang/Parse/
DParser.h251 Scope *getCurScope() const { return Actions.getCurScope(); } in getCurScope() function
2262 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS)) in EnterDeclaratorScope()
2269 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS); in ~DeclaratorScopeObj()

12