clang  10.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
clang::syntax::Statement Class Reference

An abstract node for C++ statements, e.g. 'while', 'if', etc. More...

#include "clang/Tooling/Syntax/Nodes.h"

Inheritance diagram for clang::syntax::Statement:
Inheritance graph
[legend]
Collaboration diagram for clang::syntax::Statement:
Collaboration graph
[legend]

Public Member Functions

 Statement (NodeKind K)
 
- Public Member Functions inherited from clang::syntax::Tree
NodefirstChild ()
 
const NodefirstChild () const
 
- Public Member Functions inherited from clang::syntax::Node
 Node (NodeKind Kind)
 Newly created nodes are detached from a tree, parent and sibling links are set when the node is added as a child to another one. More...
 
NodeKind kind () const
 
NodeRole role () const
 
const Treeparent () const
 
Treeparent ()
 
const NodenextSibling () const
 
NodenextSibling ()
 
std::string dump (const Arena &A) const
 Dumps the structure of a subtree. For debugging and testing purposes. More...
 
std::string dumpTokens (const Arena &A) const
 Dumps the tokens forming this subtree. More...
 

Static Public Member Functions

static bool classof (const Node *N)
 
- Static Public Member Functions inherited from clang::syntax::Tree
static bool classof (const Node *N)
 

Additional Inherited Members

- Protected Member Functions inherited from clang::syntax::Tree
syntax::NodefindChild (NodeRole R)
 Find the first node with a corresponding role. More...
 

Detailed Description

An abstract node for C++ statements, e.g. 'while', 'if', etc.

Definition at line 70 of file Nodes.h.

Constructor & Destructor Documentation

◆ Statement()

clang::syntax::Statement::Statement ( NodeKind  K)
inline

Definition at line 72 of file Nodes.h.

Member Function Documentation

◆ classof()

static bool clang::syntax::Statement::classof ( const Node N)
inlinestatic

Definition at line 73 of file Nodes.h.

References clang::syntax::CompoundStatement, and clang::syntax::Node::kind().


The documentation for this class was generated from the following file: