[all-commits] [llvm/llvm-project] a711a3: [Syntax] Build mapping from AST to syntax tree nodes

Marcel Hlopko via All-commits all-commits at lists.llvm.org
Mon Mar 23 08:26:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a711a3a46039154c38eade8bef1138b77fdb05ee
      https://github.com/llvm/llvm-project/commit/a711a3a46039154c38eade8bef1138b77fdb05ee
  Author: Marcel Hlopko <hlopko at google.com>
  Date:   2020-03-23 (Mon, 23 Mar 2020)

  Changed paths:
    M clang/include/clang/Tooling/Syntax/Tree.h
    M clang/lib/Tooling/Syntax/BuildTree.cpp
    M clang/lib/Tooling/Syntax/Mutations.cpp
    M clang/lib/Tooling/Syntax/Tree.cpp

  Log Message:
  -----------
  [Syntax] Build mapping from AST to syntax tree nodes

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
than doing range-based queries.

In the future, will be exposed in the public API of syntax trees.

Reviewers: gribozavr2

Reviewed By: gribozavr2

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list