This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Extend --check to time clang-tidy checks, so we can block slow ones
ClosedPublic

Authored by sammccall on Oct 17 2022, 7:38 AM.

Details

Summary

misc-const-correctness is so catastrophically slow that we need to block it
from running. But we need a way to detect this without breaking users first.

This is part of a plan to run only fast checks by default.
More details in https://github.com/clangd/clangd/issues/1337

Diff Detail

Event Timeline

sammccall created this revision.Oct 17 2022, 7:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 17 2022, 7:38 AM
sammccall requested review of this revision.Oct 17 2022, 7:38 AM
nridge added a subscriber: nridge.Oct 24 2022, 12:47 AM
kadircet accepted this revision.Nov 17 2022, 6:08 AM

thanks, lgtm!

clang-tools-extra/clangd/tool/Check.cpp
67

i guess we also need a llvm::cl::cat(Check) here?

302

nit: StringRef or std::string& or auto

This revision is now accepted and ready to land.Nov 17 2022, 6:08 AM
sammccall marked 2 inline comments as done.Nov 21 2022, 7:25 AM
sammccall added inline comments.
clang-tools-extra/clangd/tool/Check.cpp
67

Removed the category instead, it's useless afaict

This revision was automatically updated to reflect the committed changes.
sammccall marked an inline comment as done.