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
include system_error directly.

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

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210840 91177308-0d34-0410-b5e6-96231b3b80d8
Move google-explicit-constructor check to a separate source file.

Summary: No functional changes.

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@211154 91177308-0d34-0410-b5e6-96231b3b80d8
Unbreak the build after r211244.

These operator overloads were unneeded (once the const correctness in
PooledStringPtr was corrected) and inefficient (since the strings are
pooled the pointers can just be compared for equality instead of doing
strcmp).

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@211245 91177308-0d34-0410-b5e6-96231b3b80d8
clang-tidy: [misc-use-override] Correctly handle defaulted destructors.

Also, minor implementation and test fixes.

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