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
- public IfStatement()
- public static bool classof(const clang::syntax::Node * N)
- public clang::syntax::Leaf * getElseKeyword()
- public clang::syntax::Statement * getElseStatement()
- public clang::syntax::Leaf * getIfKeyword()
- public clang::syntax::Statement * getThenStatement()
Inherited from Statement:
Inherited from Tree:
- public classof
- public findChild
- public findChild
- public findFirstLeaf
- public findFirstLeaf
- public findLastLeaf
- public findLastLeaf
- public getChildren
- public getChildren
- public getFirstChild
- public getFirstChild
- public getLastChild
- public getLastChild
Inherited from Node:
- public assertInvariants
- public assertInvariantsRecursive
- public canModify
- public dump
- public dumpTokens
- public getKind
- public getNextSibling
- public getNextSibling
- public getParent
- public getParent
- public getPreviousSibling
- public getPreviousSibling
- public getRole
- public isDetached
- public isOriginal
Methods
¶IfStatement()
IfStatement()
Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:269
¶static bool classof(const clang::syntax::Node* N)
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()
clang::syntax::Leaf* getElseKeyword()
Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:273
¶clang::syntax::Statement* getElseStatement()
clang::syntax::Statement* getElseStatement()
Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:274
¶clang::syntax::Leaf* getIfKeyword()
clang::syntax::Leaf* getIfKeyword()
Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:271
¶clang::syntax::Statement* getThenStatement()
clang::syntax::Statement* getThenStatement()
Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:272