Home
last modified time | relevance | path

Searched refs:InitStmt (Results 1 – 13 of 13) sorted by relevance

/external/clang/lib/Parse/
DParseStmt.cpp1056 bool Parser::ParseParenExprOrCondition(StmtResult *InitStmt, in ParseParenExprOrCondition() argument
1064 Cond = ParseCXXCondition(InitStmt, Loc, CK); in ParseParenExprOrCondition()
1144 StmtResult InitStmt; in ParseIfStatement() local
1146 if (ParseParenExprOrCondition(&InitStmt, Cond, IfLoc, in ParseIfStatement()
1247 return Actions.ActOnIfStmt(IfLoc, IsConstexpr, InitStmt.get(), Cond, in ParseIfStatement()
1285 StmtResult InitStmt; in ParseSwitchStatement() local
1287 if (ParseParenExprOrCondition(&InitStmt, Cond, SwitchLoc, in ParseSwitchStatement()
1292 Actions.ActOnStartOfSwitchStmt(SwitchLoc, InitStmt.get(), Cond); in ParseSwitchStatement()
DParseExprCXX.cpp1739 Sema::ConditionResult Parser::ParseCXXCondition(StmtResult *InitStmt, in ParseCXXCondition() argument
1752 switch (isCXXConditionDeclarationOrInitStatement(InitStmt)) { in ParseCXXCondition()
1761 if (InitStmt && Tok.is(tok::semi)) { in ParseCXXCondition()
1762 *InitStmt = Actions.ActOnExprStmt(Expr.get()); in ParseCXXCondition()
1774 *InitStmt = Actions.ActOnDeclStmt(DG, DeclStart, DeclEnd); in ParseCXXCondition()
/external/llvm-project/clang/lib/Sema/
DSemaStmt.cpp581 SourceLocation LParenLoc, Stmt *InitStmt, in ActOnIfStmt() argument
630 return BuildIfStmt(IfLoc, IsConstexpr, LParenLoc, InitStmt, Cond, RParenLoc, in ActOnIfStmt()
635 SourceLocation LParenLoc, Stmt *InitStmt, in BuildIfStmt() argument
645 return IfStmt::Create(Context, IfLoc, IsConstexpr, InitStmt, Cond.get().first, in BuildIfStmt()
775 Stmt *InitStmt, ConditionResult Cond, in ActOnStartOfSwitchStmt() argument
798 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr, in ActOnStartOfSwitchStmt()
2144 SourceLocation CoawaitLoc, Stmt *InitStmt, in ActOnCXXForRangeStmt() argument
2153 if (InitStmt) in ActOnCXXForRangeStmt()
2154 return Diag(InitStmt->getBeginLoc(), diag::err_objc_for_range_init_stmt) in ActOnCXXForRangeStmt()
2155 << InitStmt->getSourceRange(); in ActOnCXXForRangeStmt()
[all …]
DSemaDeclCXX.cpp8198 Stmt *InitStmt = new (S.Context) DeclStmt(DeclGroupRef(VD), Loc, Loc); in visitExpandedSubobject() local
8229 return S.ActOnIfStmt(Loc, /*IsConstexpr=*/false, Loc, InitStmt, Cond, Loc, in visitExpandedSubobject()
13805 Stmt *InitStmt = new (S.Context) DeclStmt(DeclGroupRef(IterationVar),Loc,Loc); in buildSingleCopyAssignRecursively() local
13844 Loc, Loc, InitStmt, in buildSingleCopyAssignRecursively()
/external/llvm-project/clang/lib/Parse/
DParseStmt.cpp1179 bool Parser::ParseParenExprOrCondition(StmtResult *InitStmt, in ParseParenExprOrCondition() argument
1189 Cond = ParseCXXCondition(InitStmt, Loc, CK); in ParseParenExprOrCondition()
1369 StmtResult InitStmt; in ParseIfStatement() local
1373 if (ParseParenExprOrCondition(&InitStmt, Cond, IfLoc, in ParseIfStatement()
1489 return Actions.ActOnIfStmt(IfLoc, IsConstexpr, LParen, InitStmt.get(), Cond, in ParseIfStatement()
1527 StmtResult InitStmt; in ParseSwitchStatement() local
1531 if (ParseParenExprOrCondition(&InitStmt, Cond, SwitchLoc, in ParseSwitchStatement()
1536 SwitchLoc, LParen, InitStmt.get(), Cond, RParen); in ParseSwitchStatement()
DParseExprCXX.cpp1983 Sema::ConditionResult Parser::ParseCXXCondition(StmtResult *InitStmt, in ParseCXXCondition() argument
2007 switch (isCXXConditionDeclarationOrInitStatement(InitStmt, FRI)) { in ParseCXXCondition()
2013 if (InitStmt && Tok.is(tok::semi)) { in ParseCXXCondition()
2022 *InitStmt = Actions.ActOnNullStmt(SemiLoc); in ParseCXXCondition()
2031 if (InitStmt && Tok.is(tok::semi)) { in ParseCXXCondition()
2033 *InitStmt = Actions.ActOnExprStmt(Expr.get()); in ParseCXXCondition()
2046 *InitStmt = Actions.ActOnDeclStmt(DG, DeclStart, DeclEnd); in ParseCXXCondition()
/external/llvm-project/clang/include/clang/AST/
DStmtCXX.h146 CXXForRangeStmt(Stmt *InitStmt, DeclStmt *Range, DeclStmt *Begin,
/external/clang/lib/Sema/
DSemaStmt.cpp507 Sema::ActOnIfStmt(SourceLocation IfLoc, bool IsConstexpr, Stmt *InitStmt, in ActOnIfStmt() argument
528 return BuildIfStmt(IfLoc, IsConstexpr, InitStmt, Cond, thenStmt, ElseLoc, in ActOnIfStmt()
533 Stmt *InitStmt, ConditionResult Cond, in BuildIfStmt() argument
546 IfStmt(Context, IfLoc, IsConstexpr, InitStmt, Cond.get().first, in BuildIfStmt()
667 Stmt *InitStmt, ConditionResult Cond) { in ActOnStartOfSwitchStmt() argument
674 SwitchStmt(Context, InitStmt, Cond.get().first, Cond.get().second); in ActOnStartOfSwitchStmt()
DSemaDeclCXX.cpp10028 Stmt *InitStmt = new (S.Context) DeclStmt(DeclGroupRef(IterationVar),Loc,Loc); in buildSingleCopyAssignRecursively() local
10066 Loc, Loc, InitStmt, in buildSingleCopyAssignRecursively()
/external/clang/include/clang/Parse/
DParser.h1601 Sema::ConditionResult ParseCXXCondition(StmtResult *InitStmt,
1694 bool ParseParenExprOrCondition(StmtResult *InitStmt,
/external/llvm-project/clang/include/clang/Parse/
DParser.h1991 Sema::ConditionResult ParseCXXCondition(StmtResult *InitStmt,
2088 bool ParseParenExprOrCondition(StmtResult *InitStmt,
/external/llvm-project/clang/include/clang/Sema/
DSema.h4522 SourceLocation LParenLoc, Stmt *InitStmt,
4526 SourceLocation LParenLoc, Stmt *InitStmt,
4530 SourceLocation LParenLoc, Stmt *InitStmt,
4569 Stmt *InitStmt,
4576 Stmt *InitStmt,
/external/clang/include/clang/Sema/
DSema.h3400 Stmt *InitStmt,
3404 Stmt *InitStmt,
3408 Stmt *InitStmt,