summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorYitzhak Mandelbaum <yitzhakm@google.com>2019-08-07 17:01:31 +0000
committerYitzhak Mandelbaum <yitzhakm@google.com>2019-08-07 17:01:31 +0000
commitfb991596e34aa7403a417205526f47c22b199c11 (patch)
treed0a4e1f409713ae869183f75ec633d5a3a17038e /clang
parent1919317929a0f623f1bcfe1721e480556c9fdc62 (diff)
downloadbcm5719-llvm-fb991596e34aa7403a417205526f47c22b199c11.tar.gz
bcm5719-llvm-fb991596e34aa7403a417205526f47c22b199c11.zip
[clang][NFC] Fix typo in matcher comment
Also updates corresponding html doc. llvm-svn: 368188
Diffstat (limited to 'clang')
-rw-r--r--clang/docs/LibASTMatchersReference.html2
-rw-r--r--clang/include/clang/ASTMatchers/ASTMatchers.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html
index 9f13331aa1b..31f71b76ae0 100644
--- a/clang/docs/LibASTMatchersReference.html
+++ b/clang/docs/LibASTMatchersReference.html
@@ -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>
diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h
index 724d08c3d85..990d25490e3 100644
--- a/clang/include/clang/ASTMatchers/ASTMatchers.h
+++ b/clang/include/clang/ASTMatchers/ASTMatchers.h
@@ -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);
OpenPOWER on IntegriCloud