10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_READABILITY_IDENTIFIERNAMINGCHECK_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_READABILITY_IDENTIFIERNAMINGCHECK_H
13 #include "../ClangTidy.h"
17 namespace readability {
38 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
override;
54 : Case(Case), Prefix(Prefix), Suffix(Suffix) {}
84 typedef llvm::DenseMap<const NamedDecl *, NamingCheckFailure>
88 std::vector<NamingStyle> NamingStyles;
89 bool IgnoreFailedSplit;
97 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_READABILITY_IDENTIFIERNAMINGCHECK_H
std::unique_ptr< ast_matchers::MatchFinder > Finder
Holds an identifier name check failure, tracking the kind of the identifer, its possible fixup and th...
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
IdentifierNamingCheck(StringRef Name, ClangTidyContext *Context)
Base class for all clang-tidy checks.
NamingStyle(CaseType Case, const std::string &Prefix, const std::string &Suffix)
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register ASTMatchers with Finder.
std::map< std::string, std::string > OptionMap
void onEndOfTranslationUnit() override
void storeOptions(ClangTidyOptions::OptionMap &Opts) override
Should store all options supported by this check with their current values or default values for opti...
ClangTidyContext & Context
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
llvm::DenseSet< unsigned > RawUsageLocs
A set of all the identifier usages starting SourceLocation, in their encoded form.
llvm::DenseMap< const NamedDecl *, NamingCheckFailure > NamingCheckFailureMap
Checks for identifiers naming style mismatch.
bool ShouldFix
Whether the failure should be fixed or not.