diff options
author | Alexander Kornienko <alexfh@google.com> | 2014-05-07 09:06:53 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2014-05-07 09:06:53 +0000 |
commit | 18d561bdf6e708ded7784ce9f16bc477702f3ffe (patch) | |
tree | f89964cee209b4815224ceba00d75ddf7ce7dc48 /clang-tidy/ClangTidy.h | |
parent | fe56061f362a35540a74faa7ef4d72dce909ed28 (diff) |
Print stats on displayed and ignored warnings.
Summary:
Also displays a hint to use -header-filter='.*' in case any warnings
are in non-user code. This will help discoverability of this option.
Reviewers: klimek
Reviewed By: klimek
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D3621
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@208174 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/ClangTidy.h')
-rw-r--r-- | clang-tidy/ClangTidy.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang-tidy/ClangTidy.h b/clang-tidy/ClangTidy.h index 8d71eeb3..1bc3e295 100644 --- a/clang-tidy/ClangTidy.h +++ b/clang-tidy/ClangTidy.h @@ -121,10 +121,10 @@ private: std::vector<std::string> getCheckNames(const ClangTidyOptions &Options); /// \brief Run a set of clang-tidy checks on a set of files. -void runClangTidy(const ClangTidyOptions &Options, - const tooling::CompilationDatabase &Compilations, - ArrayRef<std::string> Ranges, - SmallVectorImpl<ClangTidyError> *Errors); +ClangTidyStats runClangTidy(const ClangTidyOptions &Options, + const tooling::CompilationDatabase &Compilations, + ArrayRef<std::string> Ranges, + SmallVectorImpl<ClangTidyError> *Errors); // FIXME: This interface will need to be significantly extended to be useful. // FIXME: Implement confidence levels for displaying/fixing errors. |