clang
9.0.0
include
clang
Tooling
Syntax
BuildTree.h
Go to the documentation of this file.
1
//===- BuildTree.h - build syntax trees -----------------------*- C++ -*-=====//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
// Functions to construct a syntax tree from an AST.
9
//===----------------------------------------------------------------------===//
10
#ifndef LLVM_CLANG_TOOLING_SYNTAX_TREE_H
11
#define LLVM_CLANG_TOOLING_SYNTAX_TREE_H
12
13
#include "
clang/AST/Decl.h
"
14
#include "
clang/Tooling/Syntax/Nodes.h
"
15
16
namespace
clang
{
17
namespace
syntax
{
18
19
/// Build a syntax tree for the main file.
20
syntax::TranslationUnit
*
buildSyntaxTree
(
Arena
&A,
21
const
clang::TranslationUnitDecl
&TU);
22
}
// namespace syntax
23
}
// namespace clang
24
#endif
syntax
clang::syntax::buildSyntaxTree
syntax::TranslationUnit * buildSyntaxTree(Arena &A, const clang::TranslationUnitDecl &TU)
Build a syntax tree for the main file.
Definition:
BuildTree.cpp:269
clang::syntax::TranslationUnit
A root node for a translation unit. Parent is always null.
Definition:
Nodes.h:47
clang::syntax::Arena
A memory arena for syntax trees.
Definition:
Tree.h:39
Nodes.h
Decl.h
clang
Dataflow Directional Tag Classes.
Definition:
CFGReachabilityAnalysis.h:21
clang::TranslationUnitDecl
The top declaration context.
Definition:
Decl.h:107
Generated on Thu Sep 19 2019 15:18:20 for clang by
1.8.13