<div dir="ltr"><div>It seems that some of the matchers have defects and are still in progress. Therefore, although their names are included in the `ASTMatchers.h` header file, they can not be used. This can be deduced from the following comment at `clang-6.0.0/lib/ASTMatchers/Dynamic/Registry.cpp:Line 95`:</div><div><br></div><div>// TODO: Here is the list of the missing matchers, grouped by reason.</div><div>//</div><div>// Need Variant/Parser fixes:</div><div>// ofKind</div><div>//</div><div>// Polymorphic + argument overload:</div><div>// findAll</div><div>//</div><div>// Other:</div><div>// equalsNode</div><div><br></div><div>REGISTER_OVERLOADED_2(callee);</div><div>...</div><div>As can be seen, `equalsNode` is also one of the missing matchers. The supported matchers are registered in the following lines.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 3, 2018 at 5:34 PM, Ahmad Nouralizadeh <span dir="ltr"><<a href="mailto:ahmadnouralizadeh@gmail.com" target="_blank">ahmadnouralizadeh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="m_3467058101205041369gmail-votecell m_3467058101205041369gmail-post-layout--left" style="margin:0px;padding:0px 15px 0px 0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:top;box-sizing:inherit;width:auto;color:rgb(36,39,41);text-align:left;text-decoration-style:initial;text-decoration-color:initial"><div class="m_3467058101205041369gmail-vote" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;box-sizing:inherit;text-align:center;min-width:46px"><span class="m_3467058101205041369gmail-vote-count-post" style="margin:8px 0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:20px;vertical-align:baseline;box-sizing:inherit;display:block;color:rgb(106,115,124)"><a class="m_3467058101205041369gmail-star-off" href="https://stackoverflow.com/questions/51672381/list-clang-query-matchers#" title="Click to mark as favorite question (click again to undo)" style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;margin:0px auto 2px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(0,119,204);text-decoration-line:none;background-image:url("");background-size:initial;background-repeat:no-repeat;overflow:hidden;width:40px;height:30px;background-position:0px -120px;display:inline!important" target="_blank"><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left">Is there a way to list all possible matchers in</span><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left"> </span><code style="font-style:inherit;font-variant:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left;margin:0px;padding:1px 5px;border:0px;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:rgb(239,240,241);white-space:pre-wrap">clang-query</code><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left">? The</span><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left"> </span></a><a href="http://clang.llvm.org/docs/LibASTMatchersReference.html" rel="nofollow noreferrer" style="font-family:inherit;font-size:15px;font-style:inherit;font-variant:inherit;font-weight:inherit;text-align:left;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(0,89,153);text-decoration-line:none" target="_blank">AST matcher reference</a><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left"> </span><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left">list is not necessarily the most up-to-date version. Even the list in</span><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left"> </span><code style="font-style:inherit;font-variant:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left;margin:0px;padding:1px 5px;border:0px;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:rgb(239,240,241);white-space:pre-wrap">ASTMatchers.h</code><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left"> </span><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left">clang header (</span><code style="font-style:inherit;font-variant:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left;margin:0px;padding:1px 5px;border:0px;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:rgb(239,240,241);white-space:pre-wrap">clang-6.0.0</code><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left">) does not show what is currently available. For example, the</span><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left"> </span><code style="font-style:inherit;font-variant:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left;margin:0px;padding:1px 5px;border:0px;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:rgb(239,240,241);white-space:pre-wrap">equalsNode</code><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left"> </span><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left">matcher is included in the list, while it is not available in</span><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left"> </span><code style="font-style:inherit;font-variant:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left;margin:0px;padding:1px 5px;border:0px;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:rgb(239,240,241);white-space:pre-wrap">clang-query</code><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(36,39,41);text-align:left">.</span></span></div></div><br></div>
</blockquote></div><br></div>