clang-tools 20.0.0git
Classes | Namespaces | Enumerations | Functions
ClangTidy.h File Reference
#include "ClangTidyDiagnosticConsumer.h"
#include "ClangTidyOptions.h"
#include "llvm/ADT/StringSet.h"
#include <memory>
#include <vector>

Go to the source code of this file.

Classes

class  clang::tidy::ClangTidyASTConsumerFactory
 
struct  clang::tidy::NamesAndOptions
 

Namespaces

namespace  llvm
 Some operations such as code completion produce a set of candidates.
 
namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::tooling
 
namespace  clang::tidy
 

Enumerations

enum  clang::tidy::FixBehaviour { clang::tidy::FB_NoFix , clang::tidy::FB_Fix , clang::tidy::FB_FixNotes }
 Controls what kind of fixes clang-tidy is allowed to apply. More...
 

Functions

std::vector< std::string > clang::tidy::getCheckNames (const ClangTidyOptions &Options, bool AllowEnablingAnalyzerAlphaCheckers)
 Fills the list of check names that are enabled when the provided filters are applied.
 
NamesAndOptions clang::tidy::getAllChecksAndOptions (bool AllowEnablingAnalyzerAlphaCheckers)
 
ClangTidyOptions::OptionMap clang::tidy::getCheckOptions (const ClangTidyOptions &Options, bool AllowEnablingAnalyzerAlphaCheckers)
 Returns the effective check-specific options.
 
std::vector< ClangTidyError > clang::tidy::runClangTidy (clang::tidy::ClangTidyContext &Context, const tooling::CompilationDatabase &Compilations, ArrayRef< std::string > InputFiles, llvm::IntrusiveRefCntPtr< llvm::vfs::OverlayFileSystem > BaseFS, bool ApplyAnyFix, bool EnableCheckProfile=false, llvm::StringRef StoreCheckProfile=StringRef())
 Run a set of clang-tidy checks on a set of files.
 
void clang::tidy::handleErrors (llvm::ArrayRef< ClangTidyError > Errors, ClangTidyContext &Context, FixBehaviour Fix, unsigned &WarningsAsErrorsCount, llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > BaseFS)
 Displays the found Errors to the users.
 
void clang::tidy::exportReplacements (StringRef MainFilePath, const std::vector< ClangTidyError > &Errors, raw_ostream &OS)
 Serializes replacements into YAML and writes them to the specified output stream.