]> granicus.if.org Git - clang/commit
[Syntax] Introduce TokenBuffer, start clangToolingSyntax library
authorIlya Biryukov <ibiryukov@google.com>
Mon, 20 May 2019 13:00:42 +0000 (13:00 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 20 May 2019 13:00:42 +0000 (13:00 +0000)
commit0764aec253cbbf4522bd69cedff79e9e3b4cede5
tree6fd971e543829adc8fba0e8c20e498fac348f8c9
parent2547712fac2b01170de83c61ada593203eb6c29a
[Syntax] Introduce TokenBuffer, start clangToolingSyntax library

Summary:
TokenBuffer stores the list of tokens for a file obtained after
preprocessing. This is a base building block for syntax trees,
see [1] for the full proposal on syntax trees.

This commits also starts a new sub-library of ClangTooling, which
would be the home for the syntax trees and syntax-tree-based refactoring
utilities.

[1]: https://lists.llvm.org/pipermail/cfe-dev/2019-February/061414.html

Reviewers: gribozavr, sammccall

Reviewed By: sammccall

Subscribers: mgrang, riccibruno, Eugene.Zelenko, mgorny, jdoerfert, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D59887

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361148 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/Syntax/Tokens.h [new file with mode: 0644]
lib/Tooling/CMakeLists.txt
lib/Tooling/Syntax/CMakeLists.txt [new file with mode: 0644]
lib/Tooling/Syntax/Tokens.cpp [new file with mode: 0644]
unittests/Tooling/CMakeLists.txt
unittests/Tooling/Syntax/CMakeLists.txt [new file with mode: 0644]
unittests/Tooling/Syntax/TokensTest.cpp [new file with mode: 0644]