forked from OSchip/llvm-project
[ASTMatchers] Fix documentation for hasAnyBody matcher
Looks like a oversight when the matcher was added. Reviewed By: steveire Differential Revision: https://reviews.llvm.org/D98583
This commit is contained in:
parent
a149812d0e
commit
6badd3c52d
|
@ -7509,7 +7509,7 @@ Given
|
|||
void f();
|
||||
void f() {}
|
||||
void g();
|
||||
hasAnyBody(functionDecl())
|
||||
functionDecl(hasAnyBody(compoundStmt()))
|
||||
matches both 'void f();'
|
||||
and 'void f() {}'
|
||||
with compoundStmt()
|
||||
|
|
|
@ -5217,7 +5217,7 @@ AST_POLYMORPHIC_MATCHER_P(hasBody,
|
|||
/// void f() {}
|
||||
/// void g();
|
||||
/// \endcode
|
||||
/// hasAnyBody(functionDecl())
|
||||
/// functionDecl(hasAnyBody(compoundStmt()))
|
||||
/// matches both 'void f();'
|
||||
/// and 'void f() {}'
|
||||
/// with compoundStmt()
|
||||
|
|
Loading…
Reference in New Issue