Author: ymandel Date: Wed Aug 7 10:01:31 2019 New Revision: 368188 URL: http://llvm.org/viewvc/llvm-project?rev=368188&view=rev Log: [clang][NFC] Fix typo in matcher comment
Also updates corresponding html doc. Modified: cfe/trunk/docs/LibASTMatchersReference.html cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Modified: cfe/trunk/docs/LibASTMatchersReference.html URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LibASTMatchersReference.html?rev=368188&r1=368187&r2=368188&view=diff ============================================================================== --- cfe/trunk/docs/LibASTMatchersReference.html (original) +++ cfe/trunk/docs/LibASTMatchersReference.html Wed Aug 7 10:01:31 2019 @@ -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' </pre></td></tr> Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h?rev=368188&r1=368187&r2=368188&view=diff ============================================================================== --- cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h (original) +++ cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Wed Aug 7 10:01:31 2019 @@ -6410,7 +6410,7 @@ AST_MATCHER_FUNCTION(internal::Matcher<E /// \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); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits