[PATCH] D87820: [SyntaxTree][Synthesis] Fix allocation in `createTree` for more general use

Eduardo Caldas via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 17 02:40:48 PDT 2020


eduucaldas created this revision.
eduucaldas added a reviewer: gribozavr2.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
eduucaldas requested review of this revision.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87820

Files:
  clang/include/clang/Tooling/Syntax/BuildTree.h
  clang/lib/Tooling/Syntax/Synthesis.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87820.292443.patch
Type: text/x-patch
Size: 9194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200917/04e1fd33/attachment.bin>


More information about the cfe-commits mailing list