[clangd] Add llvm-formatv-string to TidyFastChecks#197829
Conversation
|
@llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clangd Author: Dave Lee (kastiglione) ChangesFull diff: https://github.com/llvm/llvm-project/pull/197829.diff 1 Files Affected:
diff --git a/clang-tools-extra/clangd/TidyFastChecks.inc b/clang-tools-extra/clangd/TidyFastChecks.inc
index e36ed8f383a0d..95a3390143b91 100644
--- a/clang-tools-extra/clangd/TidyFastChecks.inc
+++ b/clang-tools-extra/clangd/TidyFastChecks.inc
@@ -274,6 +274,7 @@ FAST(google-runtime-operator, 1.0)
FAST(google-upgrade-googletest-case, 1.0)
FAST(linuxkernel-must-check-errs, 0.0)
FAST(llvm-else-after-return, 2.0)
+FAST(llvm-formatv-string, 2.0)
FAST(llvm-header-guard, 0.0)
FAST(llvm-include-order, -1.0)
FAST(llvm-namespace-comment, 1.0)
|
|
I ran TidyFastChecks.py. In addition to adding this entry for |
ArcsinX
left a comment
There was a problem hiding this comment.
By default TidyFastChecks.py runs checks on clang/lib/Sema/Sema.cpp file.
But we have no llvm::formatv calls there, this can be the reason why llvm-formatv-string is reported as a fast check.
Can you please check llvm-formatv-string performance on a relatively big file with several llvm::formatv calls? Maybe this one https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clangd/Quality.cpp ?
You can use --source argument of TidyFastChecks.py script to do this.
|
@ArcsinX I have run TidyFastChecks on Quality.cpp and generally get an output of 1%, sometimes 0%, and once it was 3%. |
Enables `llvm-formatv-string` (llvm#195974) in clangd.
Enables
llvm-formatv-string(#195974) in clangd.