================
@@ -63,7 +65,11 @@ void
UnnecessaryValueParamCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(
traverse(
TK_AsIs,
- functionDecl(hasBody(stmt()), isDefinition(), unless(isImplicit()),
+ functionDecl(hasBody(IsAllowedInCoroutines
+ ? stmt()
+ : static_cast<StmtMatcher>(
+ unless(coroutineBodyStmt()))),
----------------
vbvictor wrote:
For formatting par,t my initial suggestion had bad formatting so committing it
from github would give CI failure
https://github.com/llvm/llvm-project/pull/140912
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits