[cfe-dev] Matching function argument that may not be valid

Manuel Klimek klimek at google.com
Fri Apr 17 17:19:15 PDT 2015


On Thu, Apr 16, 2015 at 5:45 PM Daniel Dilts <diltsman at gmail.com> wrote:

> I am attempting to write a tool that will generate a table from tokens
> pulled from source code.
>
> I have a static template function in a template class.  I want to find the
> first argument for all calls to the template function.
>
> The problem is that the token may or may not be defined, since they will
> be defined in a generated table.
>
> If I use dump-ast it appears that the function call is omitted from the
> AST, so I don't think that I can use AST matchers to find it.
>

I somehow can't believe that - all calls are in the AST.


>
> Can anyone suggest how I might go about finding the desired function call?
> _______________________________________________
> 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/20150418/b6ddcfe6/attachment.html>


More information about the cfe-dev mailing list