#include "TransformerClangTidyCheck.h"
#include "clang/Basic/DiagnosticIDs.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/STLExtras.h"
#include <optional>
namespace clang::tidy::utils {
RewriteRuleWith;
#ifndef NDEBUG
static bool hasGenerator(const transformer::Generator<std::string> &G) {
return G != nullptr;
}
#endif
static void verifyRule(const RewriteRuleWith<std::string> &Rule) { … }
std::string escapeForDiagnostic(std::string ToEscape) { … }
TransformerClangTidyCheck::TransformerClangTidyCheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
TransformerClangTidyCheck::TransformerClangTidyCheck(
std::function<std::optional<RewriteRuleWith<std::string>>(
const LangOptions &, const OptionsView &)>
MakeRule,
StringRef Name, ClangTidyContext *Context)
: … { … }
TransformerClangTidyCheck::TransformerClangTidyCheck(
RewriteRuleWith<std::string> R, StringRef Name, ClangTidyContext *Context)
: … { … }
void TransformerClangTidyCheck::setRule(
transformer::RewriteRuleWith<std::string> R) { … }
void TransformerClangTidyCheck::registerPPCallbacks(
const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { … }
void TransformerClangTidyCheck::registerMatchers(
ast_matchers::MatchFinder *Finder) { … }
void TransformerClangTidyCheck::check(
const ast_matchers::MatchFinder::MatchResult &Result) { … }
void TransformerClangTidyCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
}