class IfStatement

Declaration

class IfStatement : public Statement { /* full declaration omitted */ };

Description

if (cond) <then -statement> else <else -statement> FIXME: add condition that models 'expression or variable declaration'

Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:267

Inherits from: Statement

Member Variables

Method Overview

Inherited from Statement:

Inherited from Tree:

Inherited from Node:

Methods

IfStatement()

Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:269

static bool classof(const clang::syntax::Node* N)

Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:270

Parameters

const clang::syntax::Node* N

clang::syntax::Leaf* getElseKeyword()

Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:273

clang::syntax::Statement* getElseStatement()

Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:274

clang::syntax::Leaf* getIfKeyword()

Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:271

clang::syntax::Statement* getThenStatement()

Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:272