forked from OSchip/llvm-project
[clang][NFC] Fix typo in matcher comment
Also updates corresponding html doc. llvm-svn: 368188
This commit is contained in:
parent
1919317929
commit
fb991596e3
|
@ -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>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue