#include "NonPrivateMemberVariablesInClassesCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::misc {
namespace {
AST_MATCHER(CXXRecordDecl, hasMethods) { … }
AST_MATCHER(CXXRecordDecl, hasNonStaticNonImplicitMethod) { … }
AST_MATCHER(CXXRecordDecl, hasNonPublicMemberVariable) { … }
AST_POLYMORPHIC_MATCHER_P(boolean, AST_POLYMORPHIC_SUPPORTED_TYPES(Stmt, Decl),
bool, Boolean) { … }
}
NonPrivateMemberVariablesInClassesCheck::
NonPrivateMemberVariablesInClassesCheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
void NonPrivateMemberVariablesInClassesCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
void NonPrivateMemberVariablesInClassesCheck::registerMatchers(
MatchFinder *Finder) { … }
void NonPrivateMemberVariablesInClassesCheck::check(
const MatchFinder::MatchResult &Result) { … }
}