Renamed runClangTidy argument Ranges to InputFiles, removed a TODO comment.
No functional changes.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@209743 91177308-0d34-0410-b5e6-96231b3b80d8
Remove redundant check discovered in post-commit review of r209505.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@209882 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "Remove redundant check discovered in post-commit review of r209505."

This breaks with MSVC.
With IsLateTemplateParsed, FunctionDecl::doesThisDeclarationHaveABody() returns true regardless of Body.

This reinstates what was fixed in r208985.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@209896 91177308-0d34-0410-b5e6-96231b3b80d8
Use error_code() instead of error_code::succes()

There is no std::error_code::success, so this removes much of the noise
in transitioning to std::error_code.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@209953 91177308-0d34-0410-b5e6-96231b3b80d8
clang-tidy: Extend the use-override check to understand 'final'.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210031 91177308-0d34-0410-b5e6-96231b3b80d8
Exit with error when no checks enabled.

Summary:
This seems like a more appropriate reaction to the user specifying a
single check with a wrong name, for example.

Reviewers: klimek

Reviewed By: klimek

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D3981

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210043 91177308-0d34-0410-b5e6-96231b3b80d8
Never filter-out compile errors in clang-tidy, display them as errors.

Summary:
No filters should affect the display of errors. Fixed a few tests,
which had compile errors.

We need to think what we should do with mapped errors (-Werror).

Reviewers: klimek

Reviewed By: klimek

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D3982

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210044 91177308-0d34-0410-b5e6-96231b3b80d8
Don't assume an implicit error_code -> bool operator.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210070 91177308-0d34-0410-b5e6-96231b3b80d8
Remove inclusions of LLVM's private config.h

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210146 91177308-0d34-0410-b5e6-96231b3b80d8
clang-tidy use override: Don't generate incorrect warnings without fixes

Add basic testing for the emitted diagnostics.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210171 91177308-0d34-0410-b5e6-96231b3b80d8
clang-tidy: Make use-override tests stricter.

As per post review comment.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210173 91177308-0d34-0410-b5e6-96231b3b80d8
Allow per-file clang-tidy options.

Summary:
This patch makes it possible for clang-tidy clients to provide
different options for different translation units. The option, which doesn't
make sense to be file-dependent, was moved to a separate ClangTidyGlobalOptions
struct. Added parsing of ClangTidyOptions.

Reviewers: klimek

Reviewed By: klimek

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D3979

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210260 91177308-0d34-0410-b5e6-96231b3b80d8
[C++11] Use 'nullptr'.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210447 91177308-0d34-0410-b5e6-96231b3b80d8
Simplify code. No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210508 91177308-0d34-0410-b5e6-96231b3b80d8
Prospective build fix following clang r210518

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210521 91177308-0d34-0410-b5e6-96231b3b80d8
clang-tidy: [use-override] Remove 'override' if 'final' is also present.

Also, make warning more precise by distinguishing different cases.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210651 91177308-0d34-0410-b5e6-96231b3b80d8
Use generic_category from the std namespace.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210735 91177308-0d34-0410-b5e6-96231b3b80d8
Track clang changes from r210758

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210759 91177308-0d34-0410-b5e6-96231b3b80d8
A follow-up to r210260: updated a comment. No functional changes.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210767 91177308-0d34-0410-b5e6-96231b3b80d8
Replace llvm::error_code with std::error_code.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210776 91177308-0d34-0410-b5e6-96231b3b80d8