Copy of https://reviews.llvm.org/D72446, submitting with Ilya's permission.
Only used to assign roles to child nodes for now. This is more efficient
than doing range-based queries.
In the future, will be exposed in the public API of syntax trees.
Paths
| Differential D76355
[Syntax] Build mapping from AST to syntax tree nodes ClosedPublic Authored by hlopko on Mar 18 2020, 5:42 AM.
Details Summary Copy of https://reviews.llvm.org/D72446, submitting with Ilya's permission. Only used to assign roles to child nodes for now. This is more efficient In the future, will be exposed in the public API of syntax trees.
Diff Detail
Event Timelinehlopko added a parent revision: D76418: [Syntax] Build template declaration nodes.Mar 19 2020, 8:59 AM
hlopko marked 6 inline comments as done. Comment ActionsAddress comments
Comment Actions PTAL.
This revision is now accepted and ready to land.Mar 23 2020, 8:04 AM Closed by commit rGa711a3a46039: [Syntax] Build mapping from AST to syntax tree nodes (authored by hlopko, committed by gribozavr). · Explain WhyMar 23 2020, 8:42 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 251046 clang/include/clang/Tooling/Syntax/Tree.h
clang/lib/Tooling/Syntax/BuildTree.cpp
clang/lib/Tooling/Syntax/Tree.cpp
|
setRole() (in new code).