]> granicus.if.org Git - clang/commitdiff
Updating the AST matcher documentation with a new entry; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 28 Aug 2015 19:39:56 +0000 (19:39 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 28 Aug 2015 19:39:56 +0000 (19:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246324 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LibASTMatchersReference.html

index 8be0aa9eb8218d5cc4de47e0a75b2dbf8d3015d1..7e979a1b24867819edd5bfd2d58997db2a76ea2d 100644 (file)
@@ -1353,6 +1353,20 @@ referenceType() matches the types of b, c, d, e, and f.
 </pre></td></tr>\r
 \r
 \r
+<tr><td>Matcher&lt<a href="http://clang.llvm.org/doxygen/classclang_1_1Type.html">Type</a>&gt;</td><td class="name" onclick="toggle('substTemplateTypeParmType0')"><a name="substTemplateTypeParmType0Anchor">substTemplateTypeParmType</a></td><td>Matcher&lt<a href="http://clang.llvm.org/doxygen/classclang_1_1SubstTemplateTypeParmType.html">SubstTemplateTypeParmType</a>&gt;...</td></tr>\r
+<tr><td colspan="4" class="doc" id="substTemplateTypeParmType0"><pre>Matches types that represent the result of substituting a type for a\r
+template type parameter.\r
+\r
+Given\r
+  template &lt;typename T&gt;\r
+  void F(T t) {\r
+    int i = 1 + t;\r
+  }\r
+\r
+substTemplateTypeParmType() matches the type of 't' but not '1'\r
+</pre></td></tr>\r
+\r
+\r
 <tr><td>Matcher&lt<a href="http://clang.llvm.org/doxygen/classclang_1_1Type.html">Type</a>&gt;</td><td class="name" onclick="toggle('templateSpecializationType0')"><a name="templateSpecializationType0Anchor">templateSpecializationType</a></td><td>Matcher&lt<a href="http://clang.llvm.org/doxygen/classclang_1_1TemplateSpecializationType.html">TemplateSpecializationType</a>&gt;...</td></tr>\r
 <tr><td colspan="4" class="doc" id="templateSpecializationType0"><pre>Matches template specialization types.\r
 \r