[cfe-dev] Writing C++ refactoring tools in Common Lisp

Manuel Klimek klimek at google.com
Tue Jan 14 00:40:30 PST 2014


On Tue, Jan 14, 2014 at 2:14 AM, Richard <legalize at xmission.com> wrote:

>
> In article <BC8D58EA-DA81-418B-A429-9F260BC1DF88 at verizon.net>,
>     Christian Schafmeister <chris.schaf at verizon.net> writes:
>
> > Does it mean that you can only use that matcher X as a parameter of
> > matcher Y if matcher Y accepts matcher Xs "Return Type" (or a more
> derived
> > type) as a "Parameters" type?
>
> I believe this is correct.
>

Yep, this is correct.

Generally, you'll want to use "clang -ast-dump" or "clang-check -ast-dump"
to learn how the AST of a file looks; that helps in learning what ast
matchers you'll need. Then I'm using clang-query to refine my ast matchers.

Cheers,
/Manuel


> --
> "The Direct3D Graphics Pipeline" free book <
> http://tinyurl.com/d3d-pipeline>
>      The Computer Graphics Museum <http://ComputerGraphicsMuseum.org>
>          The Terminals Wiki <http://terminals.classiccmp.org>
>   Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140114/6c9eecdf/attachment.html>


More information about the cfe-dev mailing list