diff options
author | Daniel Jasper <djasper@google.com> | 2014-04-02 08:27:12 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-04-02 08:27:12 +0000 |
commit | 9eec02bbb60e5fa592905194f07767660ecc9334 (patch) | |
tree | 2f891857f9e1b46f3e5a3256605c808ea574a31c /clang-tidy/tool/ClangTidyMain.cpp | |
parent | 5ff58fea130468ba45f4148766817bfa286428fb (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@205407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/tool/ClangTidyMain.cpp')
-rw-r--r-- | clang-tidy/tool/ClangTidyMain.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang-tidy/tool/ClangTidyMain.cpp b/clang-tidy/tool/ClangTidyMain.cpp index e130d139..95dd51f6 100644 --- a/clang-tidy/tool/ClangTidyMain.cpp +++ b/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)); |