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