<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/63748>63748</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Errors in AST matcher documentation/examples?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          higher-performance
      </td>
    </tr>
</table>

<pre>
    I've noticed some of the AST matcher documentation seems to be wrong (likely outdated). For example, this

https://github.com/llvm/llvm-project/blob/399eb5632f4ad201bfe4f0bbe1f8ce302c711726/clang/docs/LibASTMatchersReference.html#L2331-L2339

claims that
```
template <typename T> class C {}; C<char> var;
```
is matched by
```
varDecl(hasTypeLoc(templateSpecializationTypeLoc(typeLoc())))
```
but that [doesn't seem to be the case](https://godbolt.org/z/9s4PEY5zb).

Could the document test cases be verified/updated?

I suspect it may be worthwhile to do this automatically as part of CI, rather than manually.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk8tu6zYQhp9mtCGOIZG6LrSI7QgIkAJFk02XvIwstpQokCOnztMXVJyeFEgXBQjS1hDDf2a-X8ZoLwtiD9URqnMmN5p86Cd7mTD8WDGMPsxy0Zgpb279E_DmimzxZDUaFv2MzI-MJmQPL69slqQnDMx4vc24kCTrFxYR58jIM4XsLfjlwoC3zv6J7sb8RkYSGuDdgQ0-MPxLzqtD4CdGk42QnyF_-NgnojWCeAA-AB8ulqZNHbSfgQ_OXT-PH2vwf6Am4INyXgEfRNehqmrBx1IanhdqxHLMlcJibDWKnOumKBpeAx-0k8sF-GC8jsCHZ6seXl5_-agq_oYjBlw0HiaaHXDxzIUofqS9-6pTO2lTwZOk--c6v6_9L-G8OknIQJzotuIiZ2SvIB6ZdjJGdmLQHKE5gziyE4iTnmRI0Ws6jt-mtPHee8PU7dsbVxnOqB3wdpLx9bbis9fA208tLytqK51930f2Jf7PL-Ddz_XdC2qjvWYG1dF4jAvwhvbh32efKNEyIlTnJOPf0_RGeUcHH1L734EPXSx_ffy9elcJja_tPfnNmT3ZJ2aMMNKeOqZ3rhjsaBNTw7Z-0CWGrxmeWNziipqYJTbL2w6mDzS9TdZhUmv8Th-TG_lZktXSuRuTka0yUCL-9JQIDZIS7jTJhc1y2dKtQ2Z6YTrRyQz7om7bps6rnGdTP7ZFYfK2LBtddxK5QGEq05myqkeNncxsz3Mu8iZveJ63nB-MGJWUTaGUMXUxjlDmOEvrDgn01KvMxrhhX4umbDMnFbq4O5nzBd_YHgTOk7FDv5tDbZcIZe5spPgzC1ly2D-G4ENkdvlvLwMf7gaNIIZsC67_367cVSV37ar_DgAA__-eW2ug">