]> granicus.if.org Git - clang/commitdiff
[clang][NFC] Fix typo in matcher comment
authorYitzhak Mandelbaum <yitzhakm@google.com>
Wed, 7 Aug 2019 17:01:31 +0000 (17:01 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Wed, 7 Aug 2019 17:01:31 +0000 (17:01 +0000)
Also updates corresponding html doc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368188 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 9f13331aa1bc29aa03f7f7df97c97d65cdc2d43b..31f71b76ae0ddbd4e6ab12779132c50f3cd038eb 100644 (file)
@@ -6819,7 +6819,7 @@ F&amp; operator=(const F&amp; o) {
 }
 returnStmt(forFunction(hasName("operator=")))
   matches 'return *this'
-  but does match 'return &gt; 0'
+  but does not match 'return v &gt; 0'
 </pre></td></tr>
 
 
index 724d08c3d852690abf4345b7881bbaab68d224a6..990d25490e3a8f659b776304f7e67beed640871a 100644 (file)
@@ -6410,7 +6410,7 @@ AST_MATCHER_FUNCTION(internal::Matcher<Expr>, nullPointerConstant) {
 /// \endcode
 /// returnStmt(forFunction(hasName("operator=")))
 ///   matches 'return *this'
-///   but does match 'return > 0'
+///   but does not match 'return v > 0'
 AST_MATCHER_P(Stmt, forFunction, internal::Matcher<FunctionDecl>,
               InnerMatcher) {
   const auto &Parents = Finder->getASTContext().getParents(Node);