clang-tools 20.0.0git
Namespaces | Typedefs | Functions
TidyProvider.h File Reference
#include "../clang-tidy/ClangTidyOptions.h"
#include "support/ThreadsafeFS.h"
#include "llvm/ADT/FunctionExtras.h"
#include "llvm/ADT/StringRef.h"

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::clangd
 FIXME: Skip testing on windows temporarily due to the different escaping code mode.
 

Typedefs

using clang::clangd::TidyProvider = llvm::unique_function< void(tidy::ClangTidyOptions &, llvm::StringRef) const >
 A factory to modify a tidy::ClangTidyOptions.
 
using clang::clangd::TidyProviderRef = llvm::function_ref< void(tidy::ClangTidyOptions &, llvm::StringRef)>
 A factory to modify a tidy::ClangTidyOptions that doesn't hold any state.
 

Functions

TidyProvider clang::clangd::combine (std::vector< TidyProvider > Providers)
 
TidyProvider clang::clangd::provideEnvironment ()
 Provider that just sets the defaults.
 
TidyProvider clang::clangd::provideDefaultChecks ()
 Provider that will enable a nice set of default checks if none are specified.
 
TidyProvider clang::clangd::addTidyChecks (llvm::StringRef Checks, llvm::StringRef WarningsAsErrors={})
 Provider the enables a specific set of checks and warnings as errors.
 
TidyProvider clang::clangd::disableUnusableChecks (llvm::ArrayRef< std::string > ExtraBadChecks={})
 Provider that will disable checks known to not work with clangd.
 
TidyProvider clang::clangd::provideClangTidyFiles (ThreadsafeFS &)
 Provider that searches for .clang-tidy configuration files in the directory tree.
 
TidyProvider clang::clangd::provideClangdConfig ()
 
tidy::ClangTidyOptions clang::clangd::getTidyOptionsForFile (TidyProviderRef Provider, llvm::StringRef Filename)
 
bool clang::clangd::isRegisteredTidyCheck (llvm::StringRef Check)
 Returns if Check is a registered clang-tidy check.
 
std::optional< bool > clang::clangd::isFastTidyCheck (llvm::StringRef Check)
 Returns if Check is known-fast, known-slow, or its speed is unknown.