[clang][NFC] Fix typo in matcher comment

Also updates corresponding html doc.

llvm-svn: 368188
This commit is contained in:
Yitzhak Mandelbaum 2019-08-07 17:01:31 +00:00
parent 1919317929
commit fb991596e3
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View 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);