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 "../ClangTidy.h" 13 #include "../utils/IncludeInserter.h" 14 #include "clang/ASTMatchers/ASTMatchFinder.h" 15 #include "clang/Frontend/CompilerInstance.h" 16 #include "clang/Tooling/Refactoring/Transformer.h" 58 Preprocessor *ModuleExpanderPP)
override;
60 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
final;
63 Optional<tooling::RewriteRule> Rule;
64 std::unique_ptr<clang::tidy::utils::IncludeInserter> Inserter;
71 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_TRANSFORMER_CLANG_TIDY_CHECK_H Provides access to the ClangTidyCheck options via check-local names.
Base class for all clang-tidy checks.
static constexpr llvm::StringLiteral Name
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result