clang-tools 22.0.0git
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::ChecksAndOptions

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
namespace  clang::tidy::custom

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, bool ExperimentalCustomChecks)
 Fills the list of check names that are enabled when the provided filters are applied.
ChecksAndOptions clang::tidy::getAllChecksAndOptions (bool AllowEnablingAnalyzerAlphaCheckers, bool ExperimentalCustomChecks)
ClangTidyOptions::OptionMap clang::tidy::getCheckOptions (const ClangTidyOptions &Options, bool AllowEnablingAnalyzerAlphaCheckers, bool ExperimentalCustomChecks)
 Returns the effective check-specific options.
void clang::tidy::filterCheckOptions (ClangTidyOptions &Options, const std::vector< std::string > &EnabledChecks)
 Filters CheckOptions in Options to only include options specified in the EnabledChecks which is a sorted vector.
std::vector< ClangTidyErrorclang::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(), bool Quiet=false)
 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.

Variables

void(* clang::tidy::custom::RegisterCustomChecks )(const ClangTidyOptions &O, ClangTidyCheckFactories &Factories)