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
Merge pull request #6 from llvm-mirror/master

git pull