[PATCH] D59371: [LibTooling] Add Stencil library for format-string style codegen.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 8 08:52:48 PDT 2019


ymandel updated this revision to Diff 194157.
ymandel added a comment.

Add `operator()` to Stencil for compatability with TextGenerator.

Stencil is technically independent of Transformer.  However, Transformers
replacements and explanations take a generic std::function (there abbreviated as
`TextGenerator`). This addition let's Stencils act as TextGenerators.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59371/new/

https://reviews.llvm.org/D59371

Files:
  clang/include/clang/Tooling/Refactoring/Stencil.h
  clang/lib/Tooling/Refactoring/CMakeLists.txt
  clang/lib/Tooling/Refactoring/Stencil.cpp
  clang/unittests/Tooling/CMakeLists.txt
  clang/unittests/Tooling/StencilTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59371.194157.patch
Type: text/x-patch
Size: 22889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190408/d047f645/attachment-0001.bin>


More information about the cfe-commits mailing list