[doc] Fix invalid reference to `hasReturnArgument` matcher.
authorClement Courbet <courbet@google.com>
Tue, 18 Oct 2022 06:47:21 +0000 (08:47 +0200)
committerClement Courbet <courbet@google.com>
Tue, 18 Oct 2022 06:47:21 +0000 (08:47 +0200)
The matcher is called `hasReturnValue`.

clang/docs/LibASTMatchersReference.html

index 4ac9ab0..61844ff 100644 (file)
@@ -112,7 +112,7 @@ This affects both matchers and AST dump output in results.
 <span class="mono">traverse()</span> matcher is used to set the mode:
 <pre>
 Finder->addMatcher(traverse(TK_IgnoreUnlessSpelledInSource,
-  returnStmt(hasReturnArgument(integerLiteral(equals(0))))
+  returnStmt(hasReturnValue(integerLiteral(equals(0))))
   ), this);
 </pre>
 </p>