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

A root node for a translation unit. Parent is always null. More...

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

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

Public Member Functions

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

A root node for a translation unit. Parent is always null.

Definition at line 47 of file Nodes.h.

Constructor & Destructor Documentation

◆ TranslationUnit()

clang::syntax::TranslationUnit::TranslationUnit ( )
inline

Definition at line 49 of file Nodes.h.

Member Function Documentation

◆ classof()

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

Definition at line 50 of file Nodes.h.

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


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