[PATCH] D60560: [clangd] Enable clang-tidy by default.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 11 03:48:03 PDT 2019
hokein created this revision.
hokein added a reviewer: sammccall.
Herald added subscribers: kadircet, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov.
Herald added a project: clang.
We have turned on the flag internally for a while, and we don't receive complains.
Should be good to turn it on now.
If the projects doesn't have .clang-tidy files, no clang-tidy check will
be run.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D60560
Files:
clang-tools-extra/clangd/tool/ClangdMain.cpp
Index: clang-tools-extra/clangd/tool/ClangdMain.cpp
===================================================================
--- clang-tools-extra/clangd/tool/ClangdMain.cpp
+++ clang-tools-extra/clangd/tool/ClangdMain.cpp
@@ -228,7 +228,7 @@
static llvm::cl::opt<bool> EnableClangTidy(
"clang-tidy",
llvm::cl::desc("Enable clang-tidy diagnostics."),
- llvm::cl::init(false));
+ llvm::cl::init(true));
static llvm::cl::opt<bool> SuggestMissingIncludes(
"suggest-missing-includes",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60560.194659.patch
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190411/74b2f795/attachment.bin>
More information about the cfe-commits
mailing list