MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / If

Function If

ASTHelpers.cpp:294–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292//-----------------------------------------------------------------------------
293
294IfStmt* If(const Expr* condition, ArrayRef<Stmt*> bodyStmts)
295{
296 return IfStmt::Create(GetGlobalAST(),
297 {},
298 IfStatementKind::Ordinary,
299 nullptr,
300 nullptr,
301 const_cast<Expr*>(condition),
302 {},
303 {},
304 mkCompoundStmt(bodyStmts),
305 {},
306 /*else*/ nullptr);
307}
308//-----------------------------------------------------------------------------
309
310IntegerLiteral* Int32(uint64_t value)

Callers 4

InsertCoroutineMethod · 0.85
InsertArgMethod · 0.85
InsertArgMethod · 0.85

Calls 1

mkCompoundStmtFunction · 0.85

Tested by

no test coverage detected