[ASTMatchers] NFC: Fix formatting around forFunction().
Differential Revision: https://reviews.llvm.org/D102303
This commit is contained in:
parent
0d8f91d2a9
commit
dd98ea528c
|
@ -8814,7 +8814,7 @@ alignof.
|
||||||
|
|
||||||
|
|
||||||
<tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1Stmt.html">Stmt</a>></td><td class="name" onclick="toggle('forFunction0')"><a name="forFunction0Anchor">forFunction</a></td><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1FunctionDecl.html">FunctionDecl</a>> InnerMatcher</td></tr>
|
<tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1Stmt.html">Stmt</a>></td><td class="name" onclick="toggle('forFunction0')"><a name="forFunction0Anchor">forFunction</a></td><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1FunctionDecl.html">FunctionDecl</a>> InnerMatcher</td></tr>
|
||||||
<tr><td colspan="4" class="doc" id="forFunction0"><pre>Matches declaration of the function the statement belongs to
|
<tr><td colspan="4" class="doc" id="forFunction0"><pre>Matches declaration of the function the statement belongs to.
|
||||||
|
|
||||||
Given:
|
Given:
|
||||||
F& operator=(const F& o) {
|
F& operator=(const F& o) {
|
||||||
|
|
|
@ -7543,7 +7543,7 @@ AST_MATCHER_P(DecompositionDecl, hasAnyBinding, internal::Matcher<BindingDecl>,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Matches declaration of the function the statement belongs to
|
/// Matches declaration of the function the statement belongs to.
|
||||||
///
|
///
|
||||||
/// Given:
|
/// Given:
|
||||||
/// \code
|
/// \code
|
||||||
|
@ -7568,8 +7568,8 @@ AST_MATCHER_P(Stmt, forFunction, internal::Matcher<FunctionDecl>,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else if (const auto *LambdaExprNode = CurNode.get<LambdaExpr>()) {
|
} else if (const auto *LambdaExprNode = CurNode.get<LambdaExpr>()) {
|
||||||
if(InnerMatcher.matches(*LambdaExprNode->getCallOperator(),
|
if (InnerMatcher.matches(*LambdaExprNode->getCallOperator(), Finder,
|
||||||
Finder, Builder)) {
|
Builder)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue