Home
last modified time | relevance | path

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

/external/clang/lib/Parse/
DParseExpr.cpp210 LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__, in ParseExpressionWithLeadingExtension()
219 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Expression); in ParseAssignmentExpression()
347 Actions.CodeCompleteAssignmentRHS(getCurScope(), LHS.get()); in ParseRHSOfBinaryExpression()
435 LHS = Actions.ActOnBinOp(getCurScope(), OpToken.getLocation(), in ParseRHSOfBinaryExpression()
712 Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope()); in ParseCastExpression()
813 (Actions.getTypeName(II, ILoc, getCurScope()) || in ParseCastExpression()
815 (&II == Ident_super && getCurScope()->isInObjcMethodScope()))) { in ParseCastExpression()
837 getCurScope()->isInObjcMethodScope() && in ParseCastExpression()
857 if (ParsedType Typ = Actions.getTypeName(II, ILoc, getCurScope())) in ParseCastExpression()
868 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), in ParseCastExpression()
[all …]
DParseObjc.cpp36 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCAtDirectives()
128 Actions.ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
175 Actions.CodeCompleteObjCInterfaceDecl(getCurScope()); in ParseObjCAtInterfaceDeclaration()
197 Actions.CodeCompleteObjCInterfaceCategory(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
254 Actions.CodeCompleteObjCSuperclass(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
339 P.Actions.ActOnProperty(P.getCurScope(), AtLoc, LParenLoc, in invoke()
410 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseObjCInterfaceDeclList()
431 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCInterfaceDeclList()
507 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCInterfaceDeclList()
522 Actions.ActOnAtEnd(getCurScope(), AtEnd, in ParseObjCInterfaceDeclList()
[all …]
DParseCXXInlineMethods.cpp44 FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D, in ParseCXXInlineMethodDef()
47 FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D, in ParseCXXInlineMethodDef()
51 Actions.ProcessDeclAttributeList(getCurScope(), FnD, AccessAttrs, in ParseCXXInlineMethodDef()
142 LM->TemplateScope = getCurScope()->isTemplateParamScope(); in ParseCXXInlineMethodDef()
267 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate); in ParseLexedMethodDeclarations()
275 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(), Class.TagOrTemplate); in ParseLexedMethodDeclarations()
282 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(), Class.TagOrTemplate); in ParseLexedMethodDeclarations()
289 Actions.ActOnReenterTemplateScope(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
292 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
300 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), in ParseLexedMethodDeclaration()
[all …]
DParseDeclCXX.cpp59 Actions.CodeCompleteNamespaceDecl(getCurScope()); in ParseNamespace()
110 if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() || in ParseNamespace()
111 getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() || in ParseNamespace()
112 getCurScope()->getFnParent()) { in ParseNamespace()
160 Actions.ActOnStartNamespaceDef(getCurScope(), InlineLoc, NamespaceLoc, in ParseNamespace()
206 Actions.ActOnStartNamespaceDef(getCurScope(), SourceLocation(), in ParseInnerNamespace()
231 Actions.CodeCompleteNamespaceAliasDecl(getCurScope()); in ParseNamespaceAlias()
256 return Actions.ActOnNamespaceAliasDef(getCurScope(), NamespaceLoc, AliasLoc, Alias, in ParseNamespaceAlias()
284 = Actions.ActOnStartLinkageSpecification(getCurScope(), in ParseLinkage()
302 return Actions.ActOnFinishLinkageSpecification(getCurScope(), LinkageSpec, in ParseLinkage()
[all …]
DParser.cpp365 N->Init(getCurScope(), ScopeFlags); in EnterScope()
368 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags); in EnterScope()
374 assert(getCurScope() && "Scope imbalance!"); in ExitScope()
378 if (!getCurScope()->decl_empty()) in ExitScope()
379 Actions.ActOnPopScope(Tok.getLocation(), getCurScope()); in ExitScope()
381 Scope *OldScope = getCurScope(); in ExitScope()
394 : CurScope(ManageFlags ? Self->getCurScope() : 0) { in ParseScopeFlags()
415 delete getCurScope(); in ~Parser()
465 assert(getCurScope() == 0 && "A scope is already active?"); in Initialize()
467 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize()
[all …]
DParseExprCXX.cpp90 if (!Actions.isTemplateName(getCurScope(), SS, /*hasTemplateKeyword=*/false, in CheckForTemplateAndDigraph()
161 if (Actions.ActOnCXXGlobalScopeSpecifier(getCurScope(), ConsumeToken(), SS)) in ParseOptionalCXXScopeSpecifier()
206 Actions.CodeCompleteQualifiedId(getCurScope(), SS, EnteringContext); in ParseOptionalCXXScopeSpecifier()
269 = Actions.ActOnDependentTemplateName(getCurScope(), in ParseOptionalCXXScopeSpecifier()
307 if (Actions.ActOnCXXNestedNameSpecifier(getCurScope(), in ParseOptionalCXXScopeSpecifier()
343 if (Actions.IsInvalidUnlessNestedName(getCurScope(), SS, II, in ParseOptionalCXXScopeSpecifier()
361 !Actions.isNonTypeNestedNameSpecifier(getCurScope(), SS, Tok.getLocation(), in ParseOptionalCXXScopeSpecifier()
375 if (Actions.ActOnCXXNestedNameSpecifier(getCurScope(), II, IdLoc, CCLoc, in ParseOptionalCXXScopeSpecifier()
391 if (TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS, in ParseOptionalCXXScopeSpecifier()
426 = Actions.ActOnDependentTemplateName(getCurScope(), in ParseOptionalCXXScopeSpecifier()
[all …]
DParseDecl.cpp59 return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo); in ParseTypeName()
841 Actions.ActOnReenterTemplateScope(getCurScope(), Class.TagOrTemplate); in ParseLexedAttributes()
851 Actions.ActOnStartDelayedMemberDeclarations(getCurScope(), in ParseLexedAttributes()
860 Actions.ActOnFinishDelayedMemberDeclarations(getCurScope(), in ParseLexedAttributes()
945 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs); in ParseLexedAttribute()
1234 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS_none, in ParseSimpleDeclaration()
1457 Decl *ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclGroup()
1461 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, &ThisDecl, 1); in ParseDeclGroup()
1528 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, in ParseDeclGroup()
1589 ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclarationAfterDeclaratorAndAttributes()
[all …]
DParseTemplate.cpp232 Decl *Decl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS, DS); in ParseSingleDeclarationAfterTemplate()
525 return Actions.ActOnTypeParameter(getCurScope(), TypenameKeyword, Ellipsis, in ParseTypeParameter()
623 return Actions.ActOnTemplateTemplateParameter(getCurScope(), TemplateLoc, in ParseTemplateTemplateParameter()
673 return Actions.ActOnNonTypeTemplateParameter(getCurScope(), ParamDecl, in ParseNonTypeTemplateParameter()
1041 Actions.ActOnDependentTemplateName(getCurScope(), in ParseTemplateTemplateArgument()
1061 TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS, in ParseTemplateTemplateArgument()
1266 Actions.ActOnReenterDeclaratorTemplateScope(getCurScope(), Declarator); in ParseLateTemplatedFuncDef()
1267 Actions.ActOnReenterTemplateScope(getCurScope(), LMT.D); in ParseLateTemplatedFuncDef()
1285 Actions.ActOnReenterTemplateScope(getCurScope(), MD); in ParseLateTemplatedFuncDef()
1290 Actions.ActOnReenterTemplateScope(getCurScope(), in ParseLateTemplatedFuncDef()
[all …]
DParseStmt.cpp123 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Statement); in ParseStatementOrDeclarationAfterAttributes()
290 if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() && in ParseExprStatement()
486 Actions.CodeCompleteCase(getCurScope()); in ParseCaseStatement()
628 SubStmt.get(), getCurScope()); in ParseDefaultStatement()
714 DeclGroupPtrTy Res = Actions.FinalizeDeclaratorGroup(getCurScope(), DS, in ParseCompoundStatementBody()
826 = Actions.ActOnBooleanCondition(getCurScope(), Loc, ExprResult.get()); in ParseParenExprOrCondition()
956 Actions.CodeCompleteAfterIf(getCurScope()); in ParseIfStatement()
1293 Actions.CodeCompleteOrdinaryName(getCurScope(), in ParseForStatement()
1341 Actions.CodeCompleteObjCForCollection(getCurScope(), DG); in ParseForStatement()
1369 Actions.CodeCompleteObjCForCollection(getCurScope(), DeclGroupPtrTy()); in ParseForStatement()
[all …]
DParseInit.cpp235 getCurScope()->isInObjcMethodScope()) { in ParseInitializerWithPotentialDesignator()
274 = Actions.getObjCMessageKind(getCurScope(), II, IILoc, in ParseInitializerWithPotentialDesignator()
DParsePragma.cpp28 Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc); in HandlePragmaUnused()
/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/include/clang/Parse/
DParser.h237 Scope *getCurScope() const { return Actions.getCurScope(); } in getCurScope() function
1931 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS)) in EnterDeclaratorScope()
1938 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS); in ~DeclaratorScopeObj()
/external/clang/lib/Sema/
DSemaStmtAsm.cpp623 ExprResult Result = ActOnIdExpression(getCurScope(), SS, Loc, Id, in ActOnMSAsmStmt()
DSema.cpp938 for (Scope *S = getCurScope(); S; S = S->getParent()) { in getScopeForContext()
DSemaExprMember.cpp864 RetryExpr = ActOnStartCXXMemberReference(getCurScope(), BaseExpr, in BuildMemberReferenceExpr()
DSemaType.cpp2100 if (S.LookupName(Result, S.getCurScope())) in warnAboutAmbiguousFunction()
4042 ExprResult Size = S.ActOnIdExpression(S.getCurScope(), SS, TemplateKWLoc, in HandleExtVectorTypeAttr()
DSemaStmt.cpp1810 Scope *S = getCurScope(); in BuildCXXForRangeStmt()
DSemaExpr.cpp11806 if (LookupName(Result, getCurScope())) { in ActOnObjCBoolLiteral()
/external/clang/include/clang/Sema/
DSema.h7239 Scope *getCurScope() const { return CurScope; } in getCurScope() function