[clang] 4a6d8a1 - [clang] Fix Typo in AST Matcher Reference

Shivam Gupta via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 30 23:52:14 PDT 2021


Author: Shivam Gupta
Date: 2021-08-31T12:21:47+05:30
New Revision: 4a6d8a11f89b9eae984e1b9608c1c010dc6a037b

URL: https://github.com/llvm/llvm-project/commit/4a6d8a11f89b9eae984e1b9608c1c010dc6a037b
DIFF: https://github.com/llvm/llvm-project/commit/4a6d8a11f89b9eae984e1b9608c1c010dc6a037b.diff

LOG: [clang] Fix Typo in AST Matcher Reference

In [[ https://clang.llvm.org/docs/LibASTMatchersReference.html | AST Matcher Reference]], the example of matcher `hasDeclContext` contained a typo.

`cxxRcordDecl` was changed to `cxxRecordDecl`.

Differential Revision: https://reviews.llvm.org/D102836

Added: 
    

Modified: 
    clang/docs/LibASTMatchersReference.html

Removed: 
    


################################################################################
diff  --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html
index e2df4f236139b..73b8a4fcafe51 100644
--- a/clang/docs/LibASTMatchersReference.html
+++ b/clang/docs/LibASTMatchersReference.html
@@ -7463,7 +7463,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
     }
   }
 
-cxxRcordDecl(hasDeclContext(namedDecl(hasName("M")))) matches the
+cxxRecordDecl(hasDeclContext(namedDecl(hasName("M")))) matches the
 declaration of class D.
 </pre></td></tr>
 


        


More information about the cfe-commits mailing list