Add flag --enable-check-profile to clang-tidy.

Summary:
Add flag --enable-check-profile to clang-tidy.
It turns on per-matcher profiles in MatchFinder and prints a report to
stderr at the end.

Reviewers: alexfh

Subscribers: curdeius, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220491 91177308-0d34-0410-b5e6-96231b3b80d8
[clang-tidy] Bring order to check registration.

Summary:
Register readability checks in a separate module. Renamed the checks
and test file names accordingly.

Reviewers: djasper, klimek

Reviewed By: klimek

Subscribers: curdeius, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220631 91177308-0d34-0410-b5e6-96231b3b80d8
[clang-tidy] Simplify RUN: lines in the test

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220632 91177308-0d34-0410-b5e6-96231b3b80d8
[clang-tidy] Clean up test.

Simplify RUN lines and make checks stricter, check messages instead of fixes.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220633 91177308-0d34-0410-b5e6-96231b3b80d8
[clang-tidy] check_clang_tidy_fix.sh -> check_clang_tidy.sh

Summary: Make the script suitable for checking just messages. Move most of the tests to use it. Clean up the tests: shorten messages, insert line numbers, remove unnecessary RUN: lines, etc.

Reviewers: klimek

Reviewed By: klimek

Subscribers: curdeius, cfe-commits

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

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

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