clang-tools
4.0.0
|
#include "ClangTidy.h"
#include "ClangTidyDiagnosticConsumer.h"
#include "ClangTidyModuleRegistry.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Format/Format.h"
#include "clang/Frontend/ASTConsumers.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Frontend/FrontendDiagnostic.h"
#include "clang/Frontend/MultiplexConsumer.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Rewrite/Frontend/FixItRewriter.h"
#include "clang/Rewrite/Frontend/FrontendActions.h"
#include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"
#include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h"
#include "clang/Tooling/DiagnosticsYaml.h"
#include "clang/Tooling/Refactoring.h"
#include "clang/Tooling/ReplacementsYaml.h"
#include "clang/Tooling/Tooling.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/Signals.h"
#include <algorithm>
#include <utility>
Go to the source code of this file.
Namespaces | |
clang | |
-rename | |
clang::tidy | |
Typedefs | |
typedef std::vector< std::pair < std::string, bool > > | clang::tidy::CheckersList |
Functions | |
static void | clang::tidy::setStaticAnalyzerCheckerOpts (const ClangTidyOptions &Opts, AnalyzerOptionsRef AnalyzerOptions) |
static CheckersList | clang::tidy::getCheckersControlList (GlobList &Filter) |
std::vector< std::string > | clang::tidy::getCheckNames (const ClangTidyOptions &Options) |
Fills the list of check names that are enabled when the provided filters are applied. More... | |
ClangTidyOptions::OptionMap | clang::tidy::getCheckOptions (const ClangTidyOptions &Options) |
Returns the effective check-specific options. More... | |
ClangTidyStats | clang::tidy::runClangTidy (std::unique_ptr< ClangTidyOptionsProvider > OptionsProvider, const CompilationDatabase &Compilations, ArrayRef< std::string > InputFiles, std::vector< ClangTidyError > *Errors, ProfileData *Profile) |
void | clang::tidy::handleErrors (const std::vector< ClangTidyError > &Errors, bool Fix, StringRef FormatStyle, unsigned &WarningsAsErrorsCount) |
Displays the found Errors to the users. More... | |
void | clang::tidy::exportReplacements (const llvm::StringRef MainFilePath, const std::vector< ClangTidyError > &Errors, raw_ostream &OS) |
unsigned AppliedFixes |
Definition at line 248 of file ClangTidy.cpp.
bool ApplyFixes |
Definition at line 246 of file ClangTidy.cpp.
std::vector<std::unique_ptr<ClangTidyCheck> > Checks |
ClangTidyContext& Context |
Definition at line 87 of file ClangTidy.cpp.
Referenced by clang::tidy::modernize::UseUsingCheck::check(), clang::tidy::misc::UnusedUsingDeclsCheck::check(), clang::tidy::misc::VirtualNearMissCheck::check(), clang::tidy::misc::MisplacedWideningCastCheck::check(), clang::tidy::utils::UsingInserter::createUsingDeclaration(), clang::tidy::getCheckNames(), clang::tidy::getCheckOptions(), clang::rename::NestedNameSpecifierLocFinder::getNestedNameSpecifierLocations(), clang::tidy::modernize::isCopyAssignmentAndCanBeDefaulted(), clang::tidy::utils::type_traits::isTriviallyDefaultConstructible(), clang::tidy::misc::UnusedUsingDeclsCheck::onEndOfTranslationUnit(), clang::tidy::utils::type_traits::recordIsTriviallyDefaultConstructible(), clang::tidy::ClangTidyCheckFactories::registerCheck(), and clang::tidy::runClangTidy().
IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts |
Definition at line 241 of file ClangTidy.cpp.
Referenced by clang::tidy::ClangTidyDiagnosticConsumer::ClangTidyDiagnosticConsumer(), and main().
DiagnosticConsumer* DiagPrinter |
Definition at line 242 of file ClangTidy.cpp.
DiagnosticsEngine Diags |
Definition at line 243 of file ClangTidy.cpp.
llvm::StringMap<Replacements> FileReplacements |
Definition at line 245 of file ClangTidy.cpp.
FileManager Files |
Definition at line 239 of file ClangTidy.cpp.
Referenced by applyFormatting(), applyReplacements(), getRewrittenData(), and main().
std::unique_ptr<ast_matchers::MatchFinder> Finder |
Definition at line 262 of file ClangTidy.cpp.
Referenced by clang::tidy::cppcoreguidelines::AST_MATCHER(), clang::tidy::matchers::AST_MATCHER(), clang::tidy::misc::AST_MATCHER(), clang::tidy::cppcoreguidelines::AST_MATCHER_P(), clang::tidy::utils::AST_MATCHER_P(), clang::tidy::misc::AST_MATCHER_P(), clang::tidy::modernize::LoopConvertCheck::check(), clang::tidy::ClangTidyASTConsumerFactory::CreateASTConsumer(), clang::rename::getLocationsOfUSRs(), clang::rename::getNamedDeclAt(), clang::rename::NestedNameSpecifierLocFinder::getNestedNameSpecifierLocations(), main(), and clang::query::MatchQuery::run().
StringRef FormatStyle |
Definition at line 250 of file ClangTidy.cpp.
Referenced by main().
LangOptions LangOpts |
Definition at line 240 of file ClangTidy.cpp.
Referenced by clang::tidy::misc::InefficientAlgorithmCheck::check(), clang::tidy::misc::AssertSideEffectCheck::check(), and clang::tidy::misc::replaceMoveWithForward().
SourceManager SourceMgr |
Definition at line 244 of file ClangTidy.cpp.
Referenced by clang::tidy::readability::addUsage(), and clang::rename::RenamingASTConsumer::HandleOneRename().
unsigned TotalFixes |
Definition at line 247 of file ClangTidy.cpp.
unsigned WarningsAsErrors |
Definition at line 249 of file ClangTidy.cpp.
Referenced by clang::tidy::ClangTidyContext::setCurrentFile().