24 static llvm::SmallSet<llvm::SmallString<32>, 8> CustomCheckNames{};
27 for (
const llvm::SmallString<32> &Name : CustomCheckNames)
31 llvm::SmallString<32> Name = llvm::StringRef{
"custom-" + V.Name};
35 return std::make_unique<custom::QueryCheck>(Name, V, Context);
37 CustomCheckNames.insert(std::move(Name));
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.