[llvm-dev] Looking for help with an ast matcher
Piotr Padlewski via llvm-dev
llvm-dev at lists.llvm.org
Sun Nov 27 13:34:47 PST 2016
Can you provide the code that you run clang-query on, or at least AST for
the fragment you want to match?
2016-11-26 22:27 GMT+01:00 Mads Ravn via llvm-dev <llvm-dev at lists.llvm.org>:
> Hope this is the right channel for this question. I am trying to make an
> ast matcher for clang-tidy to find str1.compare(str2), where both str1 and
> str2 are std::string. I have this so far: http://i.imgur.com/sUma9WC.png .
> But I am having a hard time finding a way to bind an id to the str1 part of
> the expression.
> Can anyone help me out with an idea?
> Best regards,
> Mads Ravn
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev