]> granicus.if.org Git - clang/commitdiff
Fix a typo in document.
authorHaojian Wu <hokein@google.com>
Fri, 29 Jul 2016 17:30:13 +0000 (17:30 +0000)
committerHaojian Wu <hokein@google.com>
Fri, 29 Jul 2016 17:30:13 +0000 (17:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277174 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h

index cb6a05e3e9120c9e40cf4bac5667f24c318959a8..35534cb8c846c73a484c5fc5739a43be5a333ecc 100644 (file)
@@ -4260,7 +4260,7 @@ Given
   template&lt;&gt; class A&lt;double&gt; {};
   A&lt;int&gt; a;
 
-  template&lt;typenmae T&gt; f() {};
+  template&lt;typename T&gt; f() {};
   void func() { f&lt;int&gt;(); };
 
 classTemplateSpecializationDecl(hasAnyTemplateArgument(
@@ -4281,7 +4281,7 @@ Given
   A&lt;bool, int&gt; b;
   A&lt;int, bool&gt; c;
 
-  template&lt;typenmae T&gt; f() {};
+  template&lt;typename T&gt; f() {};
   void func() { f&lt;int&gt;(); };
 classTemplateSpecializationDecl(hasTemplateArgument(
     1, refersToType(asString("int"))))
@@ -4714,7 +4714,7 @@ Given
   template&lt;&gt; class A&lt;double&gt; {};
   A&lt;int&gt; a;
 
-  template&lt;typenmae T&gt; f() {};
+  template&lt;typename T&gt; f() {};
   void func() { f&lt;int&gt;(); };
 
 classTemplateSpecializationDecl(hasAnyTemplateArgument(
@@ -4760,7 +4760,7 @@ Given
   A&lt;bool, int&gt; b;
   A&lt;int, bool&gt; c;
 
-  template&lt;typenmae T&gt; f() {};
+  template&lt;typename T&gt; f() {};
   void func() { f&lt;int&gt;(); };
 classTemplateSpecializationDecl(hasTemplateArgument(
     1, refersToType(asString("int"))))
@@ -5400,7 +5400,7 @@ Given
   template&lt;&gt; class A&lt;double&gt; {};
   A&lt;int&gt; a;
 
-  template&lt;typenmae T&gt; f() {};
+  template&lt;typename T&gt; f() {};
   void func() { f&lt;int&gt;(); };
 
 classTemplateSpecializationDecl(hasAnyTemplateArgument(
@@ -5443,7 +5443,7 @@ Given
   A&lt;bool, int&gt; b;
   A&lt;int, bool&gt; c;
 
-  template&lt;typenmae T&gt; f() {};
+  template&lt;typename T&gt; f() {};
   void func() { f&lt;int&gt;(); };
 classTemplateSpecializationDecl(hasTemplateArgument(
     1, refersToType(asString("int"))))
index 4e7e721c91a0bc24b9fe05c126159bd8eddfc681..eee713c49b839df912752b43dc6b86966fb96371 100644 (file)
@@ -577,7 +577,7 @@ AST_MATCHER(Decl, isImplicit) {
 ///   template<> class A<double> {};
 ///   A<int> a;
 ///
-///   template<typenmae T> f() {};
+///   template<typename T> f() {};
 ///   void func() { f<int>(); };
 /// \endcode
 ///
@@ -728,7 +728,7 @@ AST_MATCHER_P(QualType, ignoringParens,
 ///   A<bool, int> b;
 ///   A<int, bool> c;
 ///
-///   template<typenmae T> f() {};
+///   template<typename T> f() {};
 ///   void func() { f<int>(); };
 /// \endcode
 /// classTemplateSpecializationDecl(hasTemplateArgument(