Add clang-tidy-diff.py script to run clang-tidy and display warnings on changed lines only.

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@211698 91177308-0d34-0410-b5e6-96231b3b80d8
Add a check to flag the usage of C-style casts (Google Style).

Summary:
Add a check to flag the usage of C-style casts, as per Google Style
Guide:
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Casting#Casting

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@211702 91177308-0d34-0410-b5e6-96231b3b80d8
Apparently, some versions of diff like -U0 more than -u0.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@211703 91177308-0d34-0410-b5e6-96231b3b80d8
Rolling back, as the test fails on one of the buildbots:
  http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/13505/steps/check-all/logs/Clang%20Tools%3A%3Ac-style-casts.cpp



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@211708 91177308-0d34-0410-b5e6-96231b3b80d8
Suppress clang-tidy-diff.py. It is incompatible to py26 due to argparse.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@211741 91177308-0d34-0410-b5e6-96231b3b80d8
Make the clang-tidy-diff.py test conditional on the presence of Python 2.7. Use the python binary from the configuration.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@211789 91177308-0d34-0410-b5e6-96231b3b80d8
Suppress clang-tools-extra/test/clang-tidy/clang-tidy-diff.cpp on win32 due to dos path issue.

I'll fix it later.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@211831 91177308-0d34-0410-b5e6-96231b3b80d8
Make clang-tidy-diff.py py3-compatible.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@211834 91177308-0d34-0410-b5e6-96231b3b80d8
Another attempt to add a clang-tidy check for flagging C-style casts.

Summary:
The first version failed the SubstNonTypeTempateParmExpr-related test
on some buildbots. This one uses the new substNonTypeTempateParmExpr matcher to
filter out implicit C-style casts.

This patch depends on D4327.

Reviewers: djasper

Reviewed By: djasper

Subscribers: aemerson, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@212002 91177308-0d34-0410-b5e6-96231b3b80d8
Added a comment to document relation of this check to -Wold-style-cast.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@212033 91177308-0d34-0410-b5e6-96231b3b80d8
Initialize ClangTidyMessage::FileOffset field to avoid unitialized variable access when sorting errors on output.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@212042 91177308-0d34-0410-b5e6-96231b3b80d8
Merge pull request #14 from llvm-mirror/master

git pull