[cfe-dev] [RFC] Easier source-to-source transformations with clang tooling
Manuel Klimek via cfe-dev
cfe-dev at lists.llvm.org
Mon Jan 21 01:16:57 PST 2019
I'm still not seeing (and I'm not saying it's not there, just that I'm not
seeing it :) where this is significantly simpler to use than string
concatenation. Is there an example in the tests that you'd say exemplifies
On Fri, Jan 18, 2019 at 7:29 PM Yitzhak Mandelbaum <yitzhakm at google.com>
> After some delay, I've created a diff to accompany the doc. In
> particular, here's the Stencil library, which provides for generating code
> in a format-string style:
> Please see the tests for various examples and the doc for more explanation.
> On Fri, Nov 16, 2018 at 10:22 AM Yitzhak Mandelbaum <yitzhakm at google.com>
>> Hi all,
>> I have a proposal for a framework that makes it easier to write source to
>> source transformations with the clang::Tooling libraries, including
>> clang-tidy checks.
>> The full proposal is in this doc:
>> From the doc:
>> Transformer is a framework that aims to simplify development of
>> clang-based source-to-source transformations. It focuses on the particular
>> class of transformations that act only locally — that is, use local
>> information about the code and make local changes (like a syntax-aware
>> “find-and-replace”); and at scale — that is, will be carried out on many
>> source files. The target audience is users that are comfortable with, or
>> willing to become comfortable with, the clang AST matchers library.
>> I have a working prototype of this library which I've used on small
>> examples inside Google. I plan to put together a patch for reference
>> next week, although the doc should stand on its own.
>> Yitzhak Mandelbaum
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev