mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
[doc] Fix invalid reference to hasReturnArgument matcher.
The matcher is called `hasReturnValue`.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user