Lines Matching refs:Actions
139 return Actions.ActOnAttributedStmt(Attrs, Res.get()); in ParseStatementOrDeclaration()
198 Actions.CodeCompletion().CodeCompleteOrdinaryName( in ParseStatementOrDeclarationAfterAttributes()
273 return Actions.ActOnDeclStmt(Decl, DeclStart, DeclEnd); in ParseStatementOrDeclarationAfterAttributes()
311 return Actions.ActOnNullStmt(ConsumeToken(), HasLeadingEmptyMacro); in ParseStatementOrDeclarationAfterAttributes()
562 return Actions.ActOnExprStmtError(); in ParseExprStatement()
566 Actions.CheckCaseExpression(Expr.get())) { in ParseExprStatement()
628 return Actions.ActOnSEHTryBlock(false /* IsCXXTry */, in ParseSEHTryBlock()
660 FilterExpr = Actions.CorrectDelayedTyposInExpr(ParseExpression()); in ParseSEHExceptBlock()
683 return Actions.ActOnSEHExceptBlock(ExceptLoc, FilterExpr.get(), Block.get()); in ParseSEHExceptBlock()
700 Actions.ActOnStartSEHFinallyBlock(); in ParseSEHFinallyBlock()
704 Actions.ActOnAbortSEHFinallyBlock(); in ParseSEHFinallyBlock()
708 return Actions.ActOnFinishSEHFinallyBlock(FinallyLoc, Block.get()); in ParseSEHFinallyBlock()
718 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); in ParseSEHLeaveStatement()
781 SubStmt = Actions.ActOnAttributedStmt(TempAttrs, SubStmt.get()); in ParseLabeledStatement()
788 SubStmt = Actions.ActOnNullStmt(ColonLoc); in ParseLabeledStatement()
797 SubStmt = Actions.ActOnNullStmt(ColonLoc); in ParseLabeledStatement()
801 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement()
803 Actions.ProcessDeclAttributeList(Actions.CurScope, LD, Attrs); in ParseLabeledStatement()
806 return Actions.ActOnLabelStmt(IdentTok.getLocation(), LD, ColonLoc, in ParseLabeledStatement()
856 Actions.CodeCompletion().CodeCompleteCase(getCurScope()); in ParseCaseStatement()
909 Actions.ActOnCaseStmt(CaseLoc, LHS, DotDotDotLoc, RHS, ColonLoc); in ParseCaseStatement()
924 Actions.ActOnCaseStmtBody(DeepestParsedCaseStmt, Case.get()); in ParseCaseStatement()
938 SubStmt = Actions.ActOnNullStmt(ColonLoc); in ParseCaseStatement()
947 SubStmt = Actions.ActOnNullStmt(SourceLocation()); in ParseCaseStatement()
949 Actions.ActOnCaseStmtBody(DeepestParsedCaseStmt, SubStmt.get()); in ParseCaseStatement()
992 SubStmt = Actions.ActOnNullStmt(ColonLoc); in ParseDefaultStatement()
999 SubStmt = Actions.ActOnNullStmt(ColonLoc); in ParseDefaultStatement()
1002 return Actions.ActOnDefaultStmt(DefaultLoc, ColonLoc, in ParseDefaultStatement()
1172 E = Actions.ActOnStmtExprResult(E); in handleExprStmt()
1173 return Actions.ActOnExprStmt(E, /*DiscardedValue=*/!IsStmtExprResult); in handleExprStmt()
1187 Sema::FPFeaturesStateRAII SaveFPFeatures(Actions); in ParseCompoundStatementBody()
1194 Sema::CompoundScopeRAII CompoundScope(Actions, isStmtExpr); in ParseCompoundStatementBody()
1198 Actions.ActOnAfterCompoundStatementLeadingPragmas(); in ParseCompoundStatementBody()
1216 DeclsInGroup.push_back(Actions.LookupOrCreateLabel(II, IdLoc, LabelLoc)); in ParseCompoundStatementBody()
1224 Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseCompoundStatementBody()
1225 StmtResult R = Actions.ActOnDeclStmt(Res, LabelLoc, Tok.getLocation()); in ParseCompoundStatementBody()
1271 R = Actions.ActOnDeclStmt(Res, DeclStart, DeclEnd); in ParseCompoundStatementBody()
1286 R = Actions.ActOnAttributedStmt(attrs, R.get()); in ParseCompoundStatementBody()
1320 return Actions.ActOnCompoundStmt(T.getOpenLocation(), CloseLoc, in ParseCompoundStatementBody()
1357 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition()
1373 ExprResult CondExpr = Actions.CreateRecoveryExpr( in ParseParenExprOrCondition()
1375 Actions.PreferredConditionType(CK)); in ParseParenExprOrCondition()
1377 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition()
1609 Actions, Context, nullptr, in ParseIfStatement()
1654 Actions, Context, nullptr, in ParseIfStatement()
1665 Actions.CodeCompletion().CodeCompleteAfterIf(getCurScope(), IsBracedThen); in ParseIfStatement()
1704 ThenStmt = Actions.ActOnNullStmt(ThenStmtLoc); in ParseIfStatement()
1706 ElseStmt = Actions.ActOnNullStmt(ElseStmtLoc); in ParseIfStatement()
1715 return Actions.ActOnIfStmt(IfLoc, Kind, LParen, InitStmt.get(), Cond, RParen, in ParseIfStatement()
1761 StmtResult Switch = Actions.ActOnStartOfSwitchStmt( in ParseSwitchStatement()
1803 return Actions.ActOnFinishSwitchStmt(SwitchLoc, Switch.get(), Body.get()); in ParseSwitchStatement()
1878 return Actions.ActOnWhileStmt(WhileLoc, LParen, Cond, RParen, Body.get()); in ParseWhileStatement()
1943 Cond = Actions.CorrectDelayedTyposInExpr(Cond, /*InitDecl=*/nullptr, in ParseDoStatement()
1948 Cond = Actions.CreateRecoveryExpr( in ParseDoStatement()
1950 Actions.getASTContext().BoolTy); in ParseDoStatement()
1958 return Actions.ActOnDoStmt(DoLoc, Body.get(), WhileLoc, T.getOpenLocation(), in ParseDoStatement()
2052 FullExprArg ThirdPart(Actions); in ParseForStatement()
2056 Actions.CodeCompletion().CodeCompleteOrdinaryName( in ParseForStatement()
2094 Actions.ActOnCXXForRangeIdentifier(getCurScope(), Loc, Name, attrs); in ParseForStatement()
2108 FirstPart = Actions.ActOnDeclStmt(DG, DeclStart, Tok.getLocation()); in ParseForStatement()
2117 FirstPart = Actions.ActOnDeclStmt(DG, DeclStart, Tok.getLocation()); in ParseForStatement()
2127 Actions.ActOnForEachDeclStmt(DG); in ParseForStatement()
2133 Actions.CodeCompletion().CodeCompleteObjCForCollection(getCurScope(), in ParseForStatement()
2144 Value = Actions.CorrectDelayedTyposInExpr(ParseExpression()); in ParseForStatement()
2151 FirstPart = Actions.ActOnForEachLValueExpr(Value.get()); in ParseForStatement()
2160 FirstPart = Actions.ActOnExprStmt(Value, !IsRangeBasedFor); in ParseForStatement()
2171 Actions.CodeCompletion().CodeCompleteObjCForCollection(getCurScope(), in ParseForStatement()
2233 ExprResult CondExpr = Actions.CreateRecoveryExpr( in ParseForStatement()
2237 {}, Actions.PreferredConditionType(CK)); in ParseForStatement()
2239 SecondPart = Actions.ActOnCondition(getCurScope(), ForLoc, in ParseForStatement()
2252 SecondPart = Actions.ActOnCondition( in ParseForStatement()
2280 ThirdPart = Actions.MakeFullDiscardedValueExpr(Third.get()); in ParseForStatement()
2304 Actions.CorrectDelayedTyposInExpr(ForRangeInfo.RangeExpr.get()); in ParseForStatement()
2305 ForRangeStmt = Actions.ActOnCXXForRangeStmt( in ParseForStatement()
2313 ForEachStmt = Actions.ObjC().ActOnObjCForCollectionStmt( in ParseForStatement()
2319 Actions.OpenMP().ActOnOpenMPLoopInitialization(ForLoc, FirstPart.get()); in ParseForStatement()
2362 return Actions.ObjC().FinishObjCForCollectionStmt(ForEachStmt.get(), in ParseForStatement()
2366 return Actions.FinishCXXForRangeStmt(ForRangeStmt.get(), Body.get()); in ParseForStatement()
2368 return Actions.ActOnForStmt(ForLoc, T.getOpenLocation(), FirstPart.get(), in ParseForStatement()
2386 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
2388 Res = Actions.ActOnGotoStmt(GotoLoc, Tok.getLocation(), LD); in ParseGotoStatement()
2399 Res = Actions.ActOnIndirectGotoStmt(GotoLoc, StarLoc, R.get()); in ParseGotoStatement()
2416 return Actions.ActOnContinueStmt(ContinueLoc, getCurScope()); in ParseContinueStatement()
2427 return Actions.ActOnBreakStmt(BreakLoc, getCurScope()); in ParseBreakStatement()
2445 PreferredType.enterReturn(Actions, Tok.getLocation()); in ParseReturnStatement()
2449 Actions.CodeCompletion().CodeCompleteExpression( in ParseReturnStatement()
2470 return Actions.ActOnCoreturnStmt(getCurScope(), ReturnLoc, R.get()); in ParseReturnStatement()
2471 return Actions.ActOnReturnStmt(ReturnLoc, R.get(), getCurScope()); in ParseReturnStatement()
2517 PrettyDeclStackTraceEntry CrashInfo(Actions.Context, Decl, LBraceLoc, in ParseFunctionStatementBody()
2524 PragmaStackSentinel(Actions, "InternalPragmaState", IsCXXMethod); in ParseFunctionStatementBody()
2533 Sema::CompoundScopeRAII CompoundScope(Actions); in ParseFunctionStatementBody()
2535 Actions.ActOnCompoundStmt(LBraceLoc, LBraceLoc, std::nullopt, false); in ParseFunctionStatementBody()
2539 return Actions.ActOnFinishFunctionBody(Decl, FnBody.get()); in ParseFunctionStatementBody()
2551 PrettyDeclStackTraceEntry CrashInfo(Actions.Context, Decl, TryLoc, in ParseFunctionTryBlock()
2558 Actions.ActOnDefaultCtorInitializers(Decl); in ParseFunctionTryBlock()
2564 PragmaStackSentinel(Actions, "InternalPragmaState", IsCXXMethod); in ParseFunctionTryBlock()
2571 Sema::CompoundScopeRAII CompoundScope(Actions); in ParseFunctionTryBlock()
2573 Actions.ActOnCompoundStmt(LBraceLoc, LBraceLoc, std::nullopt, false); in ParseFunctionTryBlock()
2577 return Actions.ActOnFinishFunctionBody(Decl, FnBody.get()); in ParseFunctionTryBlock()
2677 return Actions.ActOnSEHTryBlock(true /* IsCXXTry */, in ParseCXXTryBlockCommon()
2701 return Actions.ActOnCXXTryBlock(TryLoc, TryBlock.get(), Handlers); in ParseCXXTryBlockCommon()
2745 ExceptionDecl = Actions.ActOnExceptionDeclarator(getCurScope(), ExDecl); in ParseCXXCatchBlock()
2761 return Actions.ActOnCXXCatchBlock(CatchLoc, ExceptionDecl, Block.get()); in ParseCXXCatchBlock()
2783 StmtResult DepResult = Actions.ActOnMSDependentExistsStmt(Result.KeywordLoc, in ParseMicrosoftIfExistsStatement()