clang
15.0.0git
|
#include "clang/AST/Decl.h"
#include "clang/Basic/TokenKinds.h"
#include "clang/Tooling/Syntax/Nodes.h"
#include "clang/Tooling/Syntax/Tree.h"
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::Leaf * | clang::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::Leaf * | clang::syntax::createLeaf (syntax::Arena &A, tok::TokenKind K) |
Infer the token spelling from its TokenKind , then create Leaf from this token. More... | |
syntax::Tree * | clang::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::EmptyStatement * | clang::syntax::createEmptyStatement (syntax::Arena &A) |
syntax::Node * | clang::syntax::deepCopyExpandingMacros (syntax::Arena &A, const syntax::Node *N) |
Creates a completely independent copy of N with its macros expanded. More... | |