diff options
| author | Alexander Kornienko <alexfh@google.com> | 2014-10-29 18:25:09 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2014-10-29 18:25:09 +0000 |
| commit | 50ab15654e0fa7a60f651bb90023aa5a32a47c94 (patch) | |
| tree | 7551d64a02a6de5a134e15c19178df8a25da7444 /clang-tools-extra | |
| parent | 633c814f8fc366658a9abe8686b5525a1cfb160f (diff) | |
| download | bcm5719-llvm-50ab15654e0fa7a60f651bb90023aa5a32a47c94.tar.gz bcm5719-llvm-50ab15654e0fa7a60f651bb90023aa5a32a47c94.zip | |
Shrink the set of checks enabled by default.
Summary:
Enable only compiler diagnostics and safe static analyzer checks by
default. Let the defaults be conservative and safe for an average project.
Reviewers: djasper
Reviewed By: djasper
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D6027
llvm-svn: 220865
Diffstat (limited to 'clang-tools-extra')
| -rw-r--r-- | clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp index a925a74de60..5ef39bfa3c7 100644 --- a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp +++ b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp @@ -35,11 +35,10 @@ static cl::extrahelp ClangTidyHelp( " option, command-line option takes precedence. The effective\n" " configuration can be inspected using -dump-config.\n\n"); -const char DefaultChecks[] = - "*," // Enable all checks, except these: - "-clang-analyzer-alpha*," // Too many false positives. - "-llvm-include-order," // Not implemented yet. - "-google-*,"; // Doesn't apply to LLVM. +const char DefaultChecks[] = // Enable these checks: + "clang-diagnostic-*," // * compiler diagnostics + "clang-analyzer-*," // * Static Analyzer checks + "-clang-analyzer-alpha*"; // * but not alpha checks: many false positives static cl::opt<std::string> Checks("checks", cl::desc("Comma-separated list of globs with optional '-'\n" |

