[cfe-dev] doing global unused methods analysis

Manuel Klimek via cfe-dev cfe-dev at lists.llvm.org
Mon Oct 5 07:36:28 PDT 2015


On Mon, Oct 5, 2015 at 4:35 PM Noel Grandin <noelgrandin at gmail.com> wrote:

> On 2015-10-05 03:40 PM, Manuel Klimek wrote:
> >
> > Note that the AST dump doesn't contain all nodes.
> > In this case, it is correct though. The problem is that the method is
> not actually instantiated. You'll need to
> > reference it in order for it to actually get instantiated.
> >
>
> Hi
>
> You are correct, and doing an --ast-dump dump of my actual code reveals
> that the CallExpr node I want is there (under a
> ClassTemplateSpecializationDecl node).
> Now I just need to figure out why my VisitCallExpr method is not being
> called.
>

Btw, I think looking into the AST matchers and clang-query can greatly
speed up your development cycle here. We have a dead code analysis based on
these, and I wouldn't want to implement all the matchers with special
visitors.


>
> Thanks for the help.
>
> Regards, Noel.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151005/e681ab1b/attachment.html>


More information about the cfe-dev mailing list