9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_TRANSFORMER_CLANG_TIDY_CHECK_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_TRANSFORMER_CLANG_TIDY_CHECK_H
12#include "../ClangTidyCheck.h"
15#include "clang/ASTMatchers/ASTMatchFinder.h"
16#include "clang/Tooling/Transformer/Transformer.h"
51 std::function<std::optional<transformer::RewriteRuleWith<std::string>>(
62 Preprocessor *ModuleExpanderPP)
override;
64 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
final;
77 void setRule(transformer::RewriteRuleWith<std::string> R);
80 transformer::RewriteRuleWith<std::string> Rule;
llvm::SmallString< 256U > Name
Provides access to the ClangTidyCheck options via check-local names.
Base class for all clang-tidy checks.
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
Produces fixes to insert specified includes to source files, if not yet present.
llvm::StringMap< ClangTidyValue > OptionMap