summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-04-02 08:27:12 +0000
committerDaniel Jasper <djasper@google.com>2014-04-02 08:27:12 +0000
commita3b8f0cf7d8b97f877b7827821c212f085a38ebb (patch)
tree671fc028c3321d3f48e2d98bd20efca51f1cb8b2 /clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
parent601073287f501ede113c574e600e7969a854f255 (diff)
downloadbcm5719-llvm-a3b8f0cf7d8b97f877b7827821c212f085a38ebb.tar.gz
bcm5719-llvm-a3b8f0cf7d8b97f877b7827821c212f085a38ebb.zip
Disable a few clang-tidy checks by default.
The goal is to be able to run clang-tidy on LLVM files without further configuration for now. Once llvm.org/PR19306 is addressed, we can add a configuration file instead and choose other defaults. llvm-svn: 205407
Diffstat (limited to 'clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
index e130d13930d..95dd51f6a53 100644
--- a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
+++ b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
@@ -34,7 +34,11 @@ static cl::opt<std::string> Checks(
static cl::opt<std::string> DisableChecks(
"disable-checks",
cl::desc("Regular expression matching the names of the checks to disable."),
- cl::init("clang-analyzer-alpha.*"), cl::cat(ClangTidyCategory));
+ cl::init("(clang-analyzer-alpha.*" // To many false positives.
+ "|llvm-include-order" // Not implemented yet.
+ "|llvm-namespace-comment" // Not complete.
+ "|google-.*"), // Doesn't apply to LLVM.
+ cl::cat(ClangTidyCategory));
static cl::opt<bool> Fix("fix", cl::desc("Fix detected errors if possible."),
cl::init(false), cl::cat(ClangTidyCategory));
OpenPOWER on IntegriCloud