#include "AvoidCapturingLambdaCoroutinesCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::cppcoreguidelines {
namespace {
AST_MATCHER(LambdaExpr, hasCoroutineBody) { … }
AST_MATCHER(LambdaExpr, hasCaptures) { … }
}
void AvoidCapturingLambdaCoroutinesCheck::registerMatchers(
MatchFinder *Finder) { … }
bool AvoidCapturingLambdaCoroutinesCheck::isLanguageVersionSupported(
const LangOptions &LangOpts) const { … }
void AvoidCapturingLambdaCoroutinesCheck::check(
const MatchFinder::MatchResult &Result) { … }
}