[cfe-dev] How to implement equals(0) in clang-query

Mads Ravn via cfe-dev cfe-dev at lists.llvm.org
Mon Dec 26 12:45:44 PST 2016


Hi,

I have been wondering how to implement 'equals' for integer literals in
clang-query. It doesn't seem to be working for string literals either. In
Registry.cpp it says: "TODO: Here is the list of the missing matchers,
grouped by reason." - here 'equals' is listed under 'Other'.

So I guess there is a reason why it is not working for clang-query. Does
anyone know what this reason is? I wouldn't mind fixing it, but the few
things I have tried have all resulted in failures. I am not sure why it
works in clang-tidy, but not in clang-query. Aren't they using the same
code-base for matchers? I can see equals implemented in ASTMatchers.h, but
why can't clang-query use that?

Can anyone point me in the right direction as how to implement this in
clang-query? I imagine there is some blocking issue since it is not
implemented already.

Best regards,
Mads Ravn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161226/d5c2b592/attachment.html>


More information about the cfe-dev mailing list