10 #ifndef LLVM_CLANG_TOOLING_SYNTAX_TREE_H 11 #define LLVM_CLANG_TOOLING_SYNTAX_TREE_H
syntax::TranslationUnit * buildSyntaxTree(Arena &A, const clang::TranslationUnitDecl &TU)
Build a syntax tree for the main file.
A root node for a translation unit. Parent is always null.
A memory arena for syntax trees.
The no-op statement, i.e. ';'.
clang::syntax::Leaf * createPunctuation(clang::syntax::Arena &A, clang::tok::TokenKind K)
clang::syntax::EmptyStatement * createEmptyStatement(clang::syntax::Arena &A)
TokenKind
Provides a simple uniform namespace for tokens from all C languages.
Dataflow Directional Tag Classes.
A leaf node points to a single token inside the expanded token stream.
Defines the clang::TokenKind enum and support functions.
The top declaration context.