@@ -4108,8 +4108,14 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
4108
4108
Given
4109
4109
template<typename T> struct C {};
4110
4110
C<int> c;
4111
+ template<typename T> void f() {}
4112
+ void func() { f<int>(); };
4113
+
4111
4114
classTemplateSpecializationDecl(templateArgumentCountIs(1))
4112
4115
matches C<int>.
4116
+
4117
+ functionDecl(templateArgumentCountIs(1))
4118
+ matches f<int>();
4113
4119
</pre></td></tr>
4114
4120
4115
4121
@@ -4833,6 +4839,23 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
4833
4839
</pre></td></tr>
4834
4840
4835
4841
4842
+ <tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1FunctionDecl.html">FunctionDecl</a>></td><td class="name" onclick="toggle('templateArgumentCountIs2')"><a name="templateArgumentCountIs2Anchor">templateArgumentCountIs</a></td><td>unsigned N</td></tr>
4843
+ <tr><td colspan="4" class="doc" id="templateArgumentCountIs2"><pre>Matches if the number of template arguments equals N.
4844
+
4845
+ Given
4846
+ template<typename T> struct C {};
4847
+ C<int> c;
4848
+ template<typename T> void f() {}
4849
+ void func() { f<int>(); };
4850
+
4851
+ classTemplateSpecializationDecl(templateArgumentCountIs(1))
4852
+ matches C<int>.
4853
+
4854
+ functionDecl(templateArgumentCountIs(1))
4855
+ matches f<int>();
4856
+ </pre></td></tr>
4857
+
4858
+
4836
4859
<tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1FunctionProtoType.html">FunctionProtoType</a>></td><td class="name" onclick="toggle('hasDynamicExceptionSpec1')"><a name="hasDynamicExceptionSpec1Anchor">hasDynamicExceptionSpec</a></td><td></td></tr>
4837
4860
<tr><td colspan="4" class="doc" id="hasDynamicExceptionSpec1"><pre>Matches functions that have a dynamic exception specification.
4838
4861
@@ -5783,14 +5806,20 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
5783
5806
</pre></td></tr>
5784
5807
5785
5808
5786
- <tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1TemplateSpecializationType.html">TemplateSpecializationType</a>></td><td class="name" onclick="toggle('templateArgumentCountIs1 ')"><a name="templateArgumentCountIs1Anchor ">templateArgumentCountIs</a></td><td>unsigned N</td></tr>
5787
- <tr><td colspan="4" class="doc" id="templateArgumentCountIs1 "><pre>Matches if the number of template arguments equals N.
5809
+ <tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1TemplateSpecializationType.html">TemplateSpecializationType</a>></td><td class="name" onclick="toggle('templateArgumentCountIs3 ')"><a name="templateArgumentCountIs3Anchor ">templateArgumentCountIs</a></td><td>unsigned N</td></tr>
5810
+ <tr><td colspan="4" class="doc" id="templateArgumentCountIs3 "><pre>Matches if the number of template arguments equals N.
5788
5811
5789
5812
Given
5790
5813
template<typename T> struct C {};
5791
5814
C<int> c;
5815
+ template<typename T> void f() {}
5816
+ void func() { f<int>(); };
5817
+
5792
5818
classTemplateSpecializationDecl(templateArgumentCountIs(1))
5793
5819
matches C<int>.
5820
+
5821
+ functionDecl(templateArgumentCountIs(1))
5822
+ matches f<int>();
5794
5823
</pre></td></tr>
5795
5824
5796
5825
@@ -6219,6 +6248,23 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
6219
6248
Usable as: Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1FunctionDecl.html">FunctionDecl</a>>, Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1VarDecl.html">VarDecl</a>>, Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1CXXRecordDecl.html">CXXRecordDecl</a>>
6220
6249
</pre></td></tr>
6221
6250
6251
+
6252
+ <tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1VarTemplateSpecializationDecl.html">VarTemplateSpecializationDecl</a>></td><td class="name" onclick="toggle('templateArgumentCountIs1')"><a name="templateArgumentCountIs1Anchor">templateArgumentCountIs</a></td><td>unsigned N</td></tr>
6253
+ <tr><td colspan="4" class="doc" id="templateArgumentCountIs1"><pre>Matches if the number of template arguments equals N.
6254
+
6255
+ Given
6256
+ template<typename T> struct C {};
6257
+ C<int> c;
6258
+ template<typename T> void f() {}
6259
+ void func() { f<int>(); };
6260
+
6261
+ classTemplateSpecializationDecl(templateArgumentCountIs(1))
6262
+ matches C<int>.
6263
+
6264
+ functionDecl(templateArgumentCountIs(1))
6265
+ matches f<int>();
6266
+ </pre></td></tr>
6267
+
6222
6268
<!--END_NARROWING_MATCHERS -->
6223
6269
</table>
6224
6270
0 commit comments