[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="))) returnStmt(forFunction(hasName("operator=")))
matches 'return *this' matches 'return *this'
but does match 'return > 0' but does not match 'return v > 0'
</pre></td></tr> </pre></td></tr>

View File

@ -6410,7 +6410,7 @@ AST_MATCHER_FUNCTION(internal::Matcher<Expr>, nullPointerConstant) {
/// \endcode /// \endcode
/// returnStmt(forFunction(hasName("operator="))) /// returnStmt(forFunction(hasName("operator=")))
/// matches 'return *this' /// matches 'return *this'
/// but does match 'return > 0' /// but does not match 'return v > 0'
AST_MATCHER_P(Stmt, forFunction, internal::Matcher<FunctionDecl>, AST_MATCHER_P(Stmt, forFunction, internal::Matcher<FunctionDecl>,
InnerMatcher) { InnerMatcher) {
const auto &Parents = Finder->getASTContext().getParents(Node); const auto &Parents = Finder->getASTContext().getParents(Node);