[PATCH] D136082: [clangd] Extend --check to time clang-tidy checks, so we can block slow ones
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 17 06:08:46 PST 2022
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.
Herald added a reviewer: njames93.
thanks, lgtm!
================
Comment at: clang-tools-extra/clangd/tool/Check.cpp:66
+ llvm::cl::desc("Print the overhead of checks matching this glob"),
+ llvm::cl::init(""));
+
----------------
i guess we also need a `llvm::cl::cat(Check)` here?
================
Comment at: clang-tools-extra/clangd/tool/Check.cpp:303
+
+ for (std::string Check : listTidyChecks(CheckTidyTime)) {
+ // vlog the check name in case we crash!
----------------
nit: `StringRef` or `std::string&` or `auto`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136082/new/
https://reviews.llvm.org/D136082
More information about the cfe-commits
mailing list