<div dir="ltr">Hi,<div><br></div><div>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: "<span style="line-height:1.5;color:rgb(0,128,0)">TODO:</span><span style="line-height:1.5;color:rgb(192,192,192)"> </span><span style="line-height:1.5;color:rgb(0,128,0)">Here</span><span style="line-height:1.5;color:rgb(192,192,192)"> </span><span style="line-height:1.5;color:rgb(0,128,0)">is</span><span style="line-height:1.5;color:rgb(192,192,192)"> </span><span style="line-height:1.5;color:rgb(0,128,0)">the</span><span style="line-height:1.5;color:rgb(192,192,192)"> </span><span style="line-height:1.5;color:rgb(0,128,0)">list</span><span style="line-height:1.5;color:rgb(192,192,192)"> </span><span style="line-height:1.5;color:rgb(0,128,0)">of</span><span style="line-height:1.5;color:rgb(192,192,192)"> </span><span style="line-height:1.5;color:rgb(0,128,0)">the</span><span style="line-height:1.5;color:rgb(192,192,192)"> </span><span style="line-height:1.5;color:rgb(0,128,0)">missing</span><span style="line-height:1.5;color:rgb(192,192,192)"> </span><span style="line-height:1.5;color:rgb(0,128,0)">matchers,</span><span style="line-height:1.5;color:rgb(192,192,192)"> </span><span style="line-height:1.5;color:rgb(0,128,0)">grouped</span><span style="line-height:1.5;color:rgb(192,192,192)"> </span><span style="line-height:1.5;color:rgb(0,128,0)">by</span><span style="line-height:1.5;color:rgb(192,192,192)"> </span><span style="line-height:1.5;color:rgb(0,128,0)">reason." - </span><span style="line-height:1.5">here 'equals' is listed under 'Other'.</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">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?</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">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.</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">Best regards,</span></div><div><span style="line-height:1.5">Mads Ravn</span></div></div>