#include "TidyProvider.h"
#include "../clang-tidy/ClangTidyModuleRegistry.h"
#include "../clang-tidy/ClangTidyOptions.h"
#include "Config.h"
#include "support/FileCache.h"
#include "support/Logger.h"
#include "support/Path.h"
#include "support/ThreadsafeFS.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/SourceMgr.h"
#include <memory>
#include <optional>
namespace clang {
namespace clangd {
namespace {
class DotClangTidyCache : private FileCache { … };
class DotClangTidyTree { … };
}
static void mergeCheckList(std::optional<std::string> &Checks,
llvm::StringRef List) { … }
TidyProviderRef provideEnvironment() { … }
TidyProviderRef provideDefaultChecks() { … }
TidyProvider addTidyChecks(llvm::StringRef Checks,
llvm::StringRef WarningsAsErrors) { … }
TidyProvider disableUnusableChecks(llvm::ArrayRef<std::string> ExtraBadChecks) { … }
TidyProviderRef provideClangdConfig() { … }
TidyProvider provideClangTidyFiles(ThreadsafeFS &TFS) { … }
TidyProvider combine(std::vector<TidyProvider> Providers) { … }
tidy::ClangTidyOptions getTidyOptionsForFile(TidyProviderRef Provider,
llvm::StringRef Filename) { … }
bool isRegisteredTidyCheck(llvm::StringRef Check) { … }
std::optional<bool> isFastTidyCheck(llvm::StringRef Check) { … }
}
}