clang  10.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
clang::syntax::TopLevelDeclaration Class Referencefinal

FIXME: this node is temporary and will be replaced with nodes for various 'declarations' and 'declarators' from the C/C++ grammar. More...

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

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

Public Member Functions

 TopLevelDeclaration ()
 
- 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

FIXME: this node is temporary and will be replaced with nodes for various 'declarations' and 'declarators' from the C/C++ grammar.

Represents any top-level declaration. Only there to give the syntax tree a bit of structure until we implement syntax nodes for declarations and declarators.

Definition at line 61 of file Nodes.h.

Constructor & Destructor Documentation

◆ TopLevelDeclaration()

clang::syntax::TopLevelDeclaration::TopLevelDeclaration ( )
inline

Definition at line 63 of file Nodes.h.

Member Function Documentation

◆ classof()

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

Definition at line 64 of file Nodes.h.

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


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