clang 20.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/TokenBufferTokenManager.h"
#include "clang/Tooling/Syntax/Tree.h"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::syntax
 

Functions

syntax::TranslationUnit * clang::syntax::buildSyntaxTree (Arena &A, TokenBufferTokenManager &TBTM, ASTContext &Context)
 Build a syntax tree for the main file.
 
syntax::Leafclang::syntax::createLeaf (syntax::Arena &A, TokenBufferTokenManager &TBTM, tok::TokenKind K, StringRef Spelling)
 Create Leaf from token with Spelling and assert it has the desired TokenKind.
 
syntax::Leafclang::syntax::createLeaf (syntax::Arena &A, TokenBufferTokenManager &TBTM, tok::TokenKind K)
 Infer the token spelling from its TokenKind, then create Leaf from this token.
 
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.
 
syntax::EmptyStatementclang::syntax::createEmptyStatement (syntax::Arena &A, TokenBufferTokenManager &TBTM)
 
syntax::Nodeclang::syntax::deepCopyExpandingMacros (syntax::Arena &A, TokenBufferTokenManager &TBTM, const syntax::Node *N)
 Creates a completely independent copy of N with its macros expanded.