clang  14.0.0git
Namespaces | Functions
BuildTree.h File Reference
#include "clang/AST/Decl.h"
#include "clang/Basic/TokenKinds.h"
#include "clang/Tooling/Syntax/Nodes.h"
#include "clang/Tooling/Syntax/Tree.h"
Include dependency graph for BuildTree.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 clang
 
 clang::syntax
 

Functions

syntax::TranslationUnit * clang::syntax::buildSyntaxTree (Arena &A, ASTContext &Context)
 Build a syntax tree for the main file. More...
 
syntax::Leafclang::syntax::createLeaf (syntax::Arena &A, tok::TokenKind K, StringRef Spelling)
 Create Leaf from token with Spelling and assert it has the desired TokenKind. More...
 
syntax::Leafclang::syntax::createLeaf (syntax::Arena &A, tok::TokenKind K)
 Infer the token spelling from its TokenKind, then create Leaf from this token. More...
 
syntax::Treeclang::syntax::createTree (syntax::Arena &A, ArrayRef< std::pair< syntax::Node *, syntax::NodeRole >> Children, syntax::NodeKind K)
 Creates the concrete syntax node according to the specified NodeKind K. More...
 
syntax::EmptyStatementclang::syntax::createEmptyStatement (syntax::Arena &A)
 
syntax::Nodeclang::syntax::deepCopyExpandingMacros (syntax::Arena &A, const syntax::Node *N)
 Creates a completely independent copy of N with its macros expanded. More...