clang  10.0.0svn
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"
15 
16 namespace clang {
17 namespace syntax {
18 
19 /// Build a syntax tree for the main file.
21  const clang::TranslationUnitDecl &TU);
22 } // namespace syntax
23 } // namespace clang
24 #endif
syntax::TranslationUnit * buildSyntaxTree(Arena &A, const clang::TranslationUnitDecl &TU)
Build a syntax tree for the main file.
Definition: BuildTree.cpp:273
A root node for a translation unit. Parent is always null.
Definition: Nodes.h:47
A memory arena for syntax trees.
Definition: Tree.h:39
Dataflow Directional Tag Classes.
The top declaration context.
Definition: Decl.h:107