[llvm-dev] Looking for help with an ast matcher

Mads Ravn via llvm-dev llvm-dev at lists.llvm.org
Sat Nov 26 13:27:15 PST 2016


Hi,

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161126/b9c2f178/attachment.html>


More information about the llvm-dev mailing list