[Syntax] Build nodes for simple cases of top level declarations
authorIlya Biryukov <ibiryukov@google.com>
Thu, 12 Dec 2019 07:04:21 +0000 (08:04 +0100)
committerIlya Biryukov <ibiryukov@google.com>
Thu, 12 Dec 2019 07:04:22 +0000 (08:04 +0100)
commitbe14a22b47e5c61ff36e4183dcb4f8b138466157
tree2f1afc7224dc4d7f833e82dcf0b8e830647c45f6
parentbdaf31ec95e071b87e4cf160eb1ce570dc37a8c0
[Syntax] Build nodes for simple cases of top level declarations

Summary:
More complicated nodes (e.g. template declarations) will be implemented
in the follow-up patches.

Reviewers: gribozavr2

Reviewed By: gribozavr2

Subscribers: merge_guards_bot, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D70856
clang/include/clang/Tooling/Syntax/Nodes.h
clang/lib/Tooling/Syntax/BuildTree.cpp
clang/lib/Tooling/Syntax/Nodes.cpp
clang/unittests/Tooling/Syntax/TreeTest.cpp