From 2278ab1b680d1265a09a003cb281b60e183a18e7 Mon Sep 17 00:00:00 2001 From: Yitzhak Mandelbaum Date: Wed, 7 Aug 2019 17:01:31 +0000 Subject: [PATCH] [clang][NFC] Fix typo in matcher comment 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 | 2 +- include/clang/ASTMatchers/ASTMatchers.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/LibASTMatchersReference.html b/docs/LibASTMatchersReference.html index 9f13331aa1..31f71b76ae 100644 --- a/docs/LibASTMatchersReference.html +++ b/docs/LibASTMatchersReference.html @@ -6819,7 +6819,7 @@ F& operator=(const F& o) { } returnStmt(forFunction(hasName("operator="))) matches 'return *this' - but does match 'return > 0' + but does not match 'return v > 0' diff --git a/include/clang/ASTMatchers/ASTMatchers.h b/include/clang/ASTMatchers/ASTMatchers.h index 724d08c3d8..990d25490e 100644 --- a/include/clang/ASTMatchers/ASTMatchers.h +++ b/include/clang/ASTMatchers/ASTMatchers.h @@ -6410,7 +6410,7 @@ AST_MATCHER_FUNCTION(internal::Matcher, 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, InnerMatcher) { const auto &Parents = Finder->getASTContext().getParents(Node); -- 2.40.0