Home
last modified time | relevance | path

Searched refs:getCurScope (Results 1 – 25 of 27) 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()
306 Actions.CodeCompleteAssignmentRHS(getCurScope(), LHS.get()); in ParseRHSOfBinaryExpression()
394 LHS = Actions.ActOnBinOp(getCurScope(), OpToken.getLocation(), in ParseRHSOfBinaryExpression()
669 Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope()); in ParseCastExpression()
737 (Actions.getTypeName(II, ILoc, getCurScope()) || in ParseCastExpression()
739 (&II == Ident_super && getCurScope()->isInObjcMethodScope()))) { in ParseCastExpression()
761 getCurScope()->isInObjcMethodScope() && in ParseCastExpression()
781 if (ParsedType Typ = Actions.getTypeName(II, ILoc, getCurScope())) in ParseCastExpression()
793 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), in ParseCastExpression()
[all …]
DParseObjc.cpp50 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCAtDirectives()
141 Actions.ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
188 Actions.CodeCompleteObjCInterfaceDecl(getCurScope()); in ParseObjCAtInterfaceDeclaration()
213 Actions.CodeCompleteObjCInterfaceCategory(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
271 Actions.CodeCompleteObjCSuperclass(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
361 P.Actions.ActOnProperty(P.getCurScope(), AtLoc, LParenLoc, in invoke()
432 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseObjCInterfaceDeclList()
453 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCInterfaceDeclList()
529 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCInterfaceDeclList()
544 Actions.ActOnAtEnd(getCurScope(), AtEnd, allMethods, allTUVariables); in ParseObjCInterfaceDeclList()
[all …]
DParseExprCXX.cpp94 if (!Actions.isTemplateName(getCurScope(), SS, /*hasTemplateKeyword=*/false, in CheckForTemplateAndDigraph()
221 if (Actions.ActOnCXXGlobalScopeSpecifier(getCurScope(), ConsumeToken(), SS)) in ParseOptionalCXXScopeSpecifier()
269 Actions.CodeCompleteQualifiedId(getCurScope(), SS, EnteringContext); in ParseOptionalCXXScopeSpecifier()
336 = Actions.ActOnDependentTemplateName(getCurScope(), in ParseOptionalCXXScopeSpecifier()
377 if (Actions.ActOnCXXNestedNameSpecifier(getCurScope(), in ParseOptionalCXXScopeSpecifier()
412 if (Actions.IsInvalidUnlessNestedName(getCurScope(), SS, II, in ParseOptionalCXXScopeSpecifier()
429 !Actions.isNonTypeNestedNameSpecifier(getCurScope(), SS, Tok.getLocation(), in ParseOptionalCXXScopeSpecifier()
466 if (Actions.ActOnCXXNestedNameSpecifier(getCurScope(), II, IdLoc, CCLoc, in ParseOptionalCXXScopeSpecifier()
493 if (TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS, in ParseOptionalCXXScopeSpecifier()
528 = Actions.ActOnDependentTemplateName(getCurScope(), in ParseOptionalCXXScopeSpecifier()
[all …]
DParseCXXInlineMethods.cpp45 FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D, in ParseCXXInlineMethodDef()
48 FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D, in ParseCXXInlineMethodDef()
52 Actions.ProcessDeclAttributeList(getCurScope(), FnD, AccessAttrs); in ParseCXXInlineMethodDef()
130 LM->TemplateScope = getCurScope()->isTemplateParamScope(); in ParseCXXInlineMethodDef()
270 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate); in ParseLexedMethodDeclarations()
280 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(), in ParseLexedMethodDeclarations()
288 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(), in ParseLexedMethodDeclarations()
297 Actions.ActOnReenterTemplateScope(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
301 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
309 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), in ParseLexedMethodDeclaration()
[all …]
DParser.cpp355 N->Init(getCurScope(), ScopeFlags); in EnterScope()
358 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags); in EnterScope()
364 assert(getCurScope() && "Scope imbalance!"); in ExitScope()
368 Actions.ActOnPopScope(Tok.getLocation(), getCurScope()); in ExitScope()
370 Scope *OldScope = getCurScope(); in ExitScope()
383 : CurScope(ManageFlags ? Self->getCurScope() : nullptr) { in ParseScopeFlags()
404 delete getCurScope(); in ~Parser()
424 assert(getCurScope() == nullptr && "A scope is already active?"); in Initialize()
426 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize()
640 SingleDecl = Actions.ActOnEmptyDeclaration(getCurScope(), in ParseExternalDeclaration()
[all …]
DParseDeclCXX.cpp65 Actions.CodeCompleteNamespaceDecl(getCurScope()); in ParseNamespace()
126 if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() || in ParseNamespace()
127 getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() || in ParseNamespace()
128 getCurScope()->getFnParent()) { in ParseNamespace()
176 Actions.ActOnStartNamespaceDef(getCurScope(), InlineLoc, NamespaceLoc, in ParseNamespace()
222 Actions.ActOnStartNamespaceDef(getCurScope(), SourceLocation(), in ParseInnerNamespace()
247 Actions.CodeCompleteNamespaceAliasDecl(getCurScope()); in ParseNamespaceAlias()
272 return Actions.ActOnNamespaceAliasDef(getCurScope(), NamespaceLoc, AliasLoc, Alias, in ParseNamespaceAlias()
292 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(), in ParseLinkage()
308 getCurScope(), LinkageSpec, SourceLocation()) in ParseLinkage()
[all …]
DParseDecl.cpp67 return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo); in ParseTypeName()
376 Actions.ActOnReenterCXXMethodParameter(getCurScope(), Param); in ParseGNUAttributeArgs()
1015 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate); in ParseLexedAttributes()
1025 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(), in ParseLexedAttributes()
1034 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(), in ParseLexedAttributes()
1125 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs); in ParseLexedAttribute()
1374 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS_none, in ParseSimpleDeclaration()
1616 Decl *ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclGroup()
1621 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, ThisDecl); in ParseDeclGroup()
1687 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseDeclGroup()
[all …]
DParseStmt.cpp172 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Statement); in ParseStatementOrDeclarationAfterAttributes()
395 if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() && in ParseExprStatement()
522 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); in ParseSEHLeaveStatement()
632 Actions.CodeCompleteCase(getCurScope()); in ParseCaseStatement()
786 SubStmt.get(), getCurScope()); in ParseDefaultStatement()
927 Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseCompoundStatementBody()
1028 = Actions.ActOnBooleanCondition(getCurScope(), Loc, ExprResult.get()); in ParseParenExprOrCondition()
1156 Actions.CodeCompleteAfterIf(getCurScope()); in ParseIfStatement()
1251 getCurScope()->AddFlags(Scope::BreakScope); in ParseSwitchStatement()
1257 getCurScope()->decrementMSLocalManglingNumber(); in ParseSwitchStatement()
[all …]
DParseTemplate.cpp194 getCurScope(), AS, DS, in ParseSingleDeclarationAfterTemplate()
513 return Actions.ActOnTypeParameter(getCurScope(), TypenameKeyword, EllipsisLoc, in ParseTypeParameter()
624 return Actions.ActOnTemplateTemplateParameter(getCurScope(), TemplateLoc, in ParseTemplateTemplateParameter()
677 return Actions.ActOnNonTypeTemplateParameter(getCurScope(), ParamDecl, in ParseNonTypeTemplateParameter()
1084 Actions.ActOnDependentTemplateName(getCurScope(), in ParseTemplateTemplateArgument()
1102 TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS, in ParseTemplateTemplateArgument()
1305 Actions.ActOnReenterTemplateScope(getCurScope(), cast<Decl>(*II)); in ParseLateTemplatedFuncDef()
1309 Actions.PushDeclContext(Actions.getCurScope(), *II); in ParseLateTemplatedFuncDef()
1332 Actions.ActOnStartOfFunctionDef(getCurScope(), FunD); in ParseLateTemplatedFuncDef()
DParseInit.cpp217 getCurScope()->isInObjcMethodScope()) { in ParseInitializerWithPotentialDesignator()
256 = Actions.getObjCMessageKind(getCurScope(), II, IILoc, in ParseInitializerWithPotentialDesignator()
DParseOpenMP.cpp158 Actions.StartOpenMPDSABlock(DKind, DirName, Actions.getCurScope(), Loc); in ParseOpenMPDeclarativeOrExecutableDirective()
186 Actions.ActOnOpenMPRegionStart(DKind, getCurScope()); in ParseOpenMPDeclarativeOrExecutableDirective()
269 Actions.ActOnOpenMPIdExpression(getCurScope(), SS, NameInfo); in ParseOpenMPSimpleVarList()
DParseStmtAsm.cpp551 Actions.BuildUnaryOp(getCurScope(), AsmLoc, UO_AddrOf, OpExpr).get(); in ParseMicrosoftAsmStatement()
DParsePragma.cpp291 Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc); in HandlePragmaUnused()
401 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.cpp382 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
435 if (!LookupName(BaseResult, getCurScope())) in LookupInlineAsmField()
DSemaPseudoObject.cpp1439 S.getCurScope(), RefExpr->getBaseExpr(), SourceLocation(), in buildGet()
1450 return S.ActOnCallExpr(S.getCurScope(), GetterExpr.get(), in buildGet()
1469 S.getCurScope(), RefExpr->getBaseExpr(), SourceLocation(), in buildSet()
1481 return S.ActOnCallExpr(S.getCurScope(), SetterExpr.get(), in buildSet()
DSemaOpenMP.cpp193 Scope *getCurScope() const { return Stack.back().CurScope; } in getCurScope() function in __anonc48eae3d0111::DSAStackTy
194 Scope *getCurScope() { return Stack.back().CurScope; } in getCurScope() function in __anonc48eae3d0111::DSAStackTy
337 Scope *CurScope = getCurScope(); in isOpenMPLocal()
552 SemaRef.getCurScope()); in ValidateCandidate()
1074 if (Stack->getCurScope()) { in CheckNestingOfRegions()
1947 ExprResult Val = ActOnBooleanCondition(DSAStack->getCurScope(), in ActOnOpenMPIfClause()
3123 BuildBinOp(DSAStack->getCurScope(), ReductionId.getLocStart(), BOK, in ActOnOpenMPReductionClause()
DSemaStmt.cpp2094 Scope *S = getCurScope(); in BuildCXXForRangeStmt()
3190 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in ActOnCXXTryBlock()
DSema.cpp1041 for (Scope *S = getCurScope(); S; S = S->getParent()) { in getScopeForContext()
DSemaExprMember.cpp965 RetryExpr = ActOnStartCXXMemberReference(getCurScope(), BaseExpr, in BuildMemberReferenceExpr()
DSemaType.cpp2390 if (S.LookupName(Result, S.getCurScope())) in warnAboutAmbiguousFunction()
4715 ExprResult Size = S.ActOnIdExpression(S.getCurScope(), SS, TemplateKWLoc, in HandleExtVectorTypeAttr()
DSemaExprCXX.cpp622 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in BuildCXXThrow()
DSemaChecking.cpp3167 if (S.LookupName(Result, S.getCurScope())) { in checkFormatExpr()
3846 S.LookupName(R, S.getCurScope()); in emitReplacement()
/external/clang/include/clang/Parse/
DParser.h246 Scope *getCurScope() const { return Actions.getCurScope(); } in getCurScope() function
2176 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS)) in EnterDeclaratorScope()
2183 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS); in ~DeclaratorScopeObj()
/external/clang/include/clang/Sema/
DSema.h8380 Scope *getCurScope() const { return CurScope; } in getCurScope() function

12