clang-tools
8.0.0
|
#include <ClangTidy.h>
Public Member Functions | |
ClangTidyASTConsumerFactory (ClangTidyContext &Context) | |
std::unique_ptr< clang::ASTConsumer > | CreateASTConsumer (clang::CompilerInstance &Compiler, StringRef File) |
Returns an ASTConsumer that runs the specified clang-tidy checks. More... | |
std::vector< std::string > | getCheckNames () |
Get the list of enabled checks. More... | |
ClangTidyOptions::OptionMap | getCheckOptions () |
Get the union of options from all checks. More... | |
Definition at line 192 of file ClangTidy.h.
clang::tidy::ClangTidyASTConsumerFactory::ClangTidyASTConsumerFactory | ( | ClangTidyContext & | Context | ) |
Definition at line 293 of file ClangTidy.cpp.
std::unique_ptr< clang::ASTConsumer > clang::tidy::ClangTidyASTConsumerFactory::CreateASTConsumer | ( | clang::CompilerInstance & | Compiler, |
StringRef | File | ||
) |
Returns an ASTConsumer that runs the specified clang-tidy checks.
Definition at line 351 of file ClangTidy.cpp.
References Checks(), clang::tidy::ClangTidyContext::setASTContext(), clang::tidy::ClangTidyContext::setCurrentBuildDirectory(), clang::tidy::ClangTidyContext::setCurrentFile(), and clang::tidy::ClangTidyContext::setSourceManager().
Referenced by clang::tidy::ClangTidyPluginAction::CreateASTConsumer().
std::vector< std::string > clang::tidy::ClangTidyASTConsumerFactory::getCheckNames | ( | ) |
Get the list of enabled checks.
Definition at line 412 of file ClangTidy.cpp.
References clang::tidy::ClangTidyContext::canEnableAnalyzerAlphaCheckers(), and clang::tidy::ClangTidyContext::isCheckEnabled().
ClangTidyOptions::OptionMap clang::tidy::ClangTidyASTConsumerFactory::getCheckOptions | ( | ) |
Get the union of options from all checks.
Definition at line 429 of file ClangTidy.cpp.
References Checks().