[all-commits] [llvm/llvm-project] 1e1916: [SyntaxTree][Synthesis] Fix allocation in `createT...
Eduardo Caldas via All-commits
all-commits at lists.llvm.org
Thu Sep 17 09:19:21 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1e19165bd89db6671a80e0b25b32d5c7ae79455c
https://github.com/llvm/llvm-project/commit/1e19165bd89db6671a80e0b25b32d5c7ae79455c
Author: Eduardo Caldas <ecaldas at google.com>
Date: 2020-09-17 (Thu, 17 Sep 2020)
Changed paths:
M clang/include/clang/Tooling/Syntax/BuildTree.h
M clang/lib/Tooling/Syntax/Synthesis.cpp
Log Message:
-----------
[SyntaxTree][Synthesis] Fix allocation in `createTree` for more general use
Prior to this change `createTree` could not create arbitrary syntax
trees. Now it dispatches to the constructor of the concrete syntax tree
according to the `NodeKind` passed as argument. This allows reuse inside
the Synthesis API. # Please enter the commit message for your changes.
Lines starting
Differential Revision: https://reviews.llvm.org/D87820
More information about the All-commits
mailing list