#include "CoroutineHostileRAIICheck.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/Attr.h"
#include "clang/AST/Decl.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/Stmt.h"
#include "clang/AST/Type.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/ASTMatchers/ASTMatchersInternal.h"
#include "clang/Basic/AttrKinds.h"
#include "clang/Basic/DiagnosticIDs.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::misc {
namespace {
BoundNodesTreeBuilder;
AST_MATCHER_P(Stmt, forEachPrevStmt, ast_matchers::internal::Matcher<Stmt>,
InnerMatcher) { … }
AST_MATCHER_P(CoawaitExpr, awaitable, ast_matchers::internal::Matcher<Expr>,
InnerMatcher) { … }
auto typeWithNameIn(const std::vector<StringRef> &Names) { … }
}
CoroutineHostileRAIICheck::CoroutineHostileRAIICheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
void CoroutineHostileRAIICheck::registerMatchers(MatchFinder *Finder) { … }
void CoroutineHostileRAIICheck::check(const MatchFinder::MatchResult &Result) { … }
void CoroutineHostileRAIICheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
}