Home
last modified time | relevance | path

Searched refs:IfStatement (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DSimplifyBooleanExprCheck.h40 const IfStmt *IfStatement,
44 const IfStmt *IfStatement,
H A DSimplifyBooleanExprCheck.cpp703 const ASTContext &Context, const IfStmt *IfStatement, in replaceWithThenStatement() argument
706 IfStatement->getSourceRange(), in replaceWithThenStatement()
707 getText(Context, *IfStatement->getThen())); in replaceWithThenStatement()
711 const ASTContext &Context, const IfStmt *IfStatement, in replaceWithElseStatement() argument
713 const Stmt *ElseStatement = IfStatement->getElse(); in replaceWithElseStatement()
715 IfStatement->getSourceRange(), in replaceWithElseStatement()
/llvm-project-15.0.7/clang/lib/Tooling/Syntax/
H A DNodes.cpp256 syntax::Leaf *syntax::IfStatement::getIfKeyword() { in getIfKeyword()
261 syntax::Statement *syntax::IfStatement::getThenStatement() { in getThenStatement()
266 syntax::Leaf *syntax::IfStatement::getElseKeyword() { in getElseKeyword()
270 syntax::Statement *syntax::IfStatement::getElseStatement() { in getElseStatement()
H A DSynthesis.cpp127 case syntax::NodeKind::IfStatement: in allocateTree()
128 return new (A.getAllocator()) syntax::IfStatement; in allocateTree()
H A DBuildTree.cpp1472 new (allocator()) syntax::IfStatement, S); in WalkUpFromIfStmt()
/llvm-project-15.0.7/clang/include/clang/Tooling/Syntax/
H A DNodes.h267 class IfStatement final : public Statement {
269 IfStatement() : Statement(NodeKind::IfStatement) {} in IfStatement() function
H A DSyntax.td58 // Statement = IfStatement | ForStatement | ...
59 // Statement is modeled using Alternatives, and IfStatement.base is Statement.
H A DNodes.td228 def IfStatement : External<Statement> {}