#include "AvoidConstOrRefDataMembersCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::cppcoreguidelines {
namespace {
AST_MATCHER(FieldDecl, isMemberOfLambda) { … }
struct MemberFunctionInfo { … };
struct MemberFunctionPairInfo { … };
MemberFunctionPairInfo getConstructorsInfo(CXXRecordDecl const &Node) { … }
MemberFunctionPairInfo getAssignmentsInfo(CXXRecordDecl const &Node) { … }
AST_MATCHER(CXXRecordDecl, isCopyableOrMovable) { … }
}
void AvoidConstOrRefDataMembersCheck::registerMatchers(MatchFinder *Finder) { … }
void AvoidConstOrRefDataMembersCheck::check(
const MatchFinder::MatchResult &Result) { … }
}