[clang-tidy/google-readability-casting] Disable check for Objective-C++
authorBen Hamilton <benhamilton@google.com>
Wed, 16 May 2018 20:07:19 +0000 (20:07 +0000)
committerBen Hamilton <benhamilton@google.com>
Wed, 16 May 2018 20:07:19 +0000 (20:07 +0000)
commit35d3398f8dc64727189c99f123aed1467153864b
treeb9550a88fdbeaa0edd766ce187f53437b2d2da70
parentf8947da9cee7228850866f1cf40c5452d358e441
[clang-tidy/google-readability-casting] Disable check for Objective-C++

Summary:
Previously, `google-readability-casting` was disabled for Objective-C.

The Google Objective-C++ style allows both Objective-C and
C++ style in the same file. Since clang-tidy doesn't have a good
way to allow multiple styles per file, this disables the
check for Objective-C++.

Test Plan: New tests added. Ran tests with:
  % make -j16 check-clang-tools
  Before diff, confirmed tests failed:
  https://reviews.llvm.org/P8081
  After diff, confirrmed tests passed.

Reviewers: alexfh, Wizard, hokein, stephanemoore

Reviewed By: alexfh, Wizard, stephanemoore

Subscribers: stephanemoore, cfe-commits, bkramer, klimek

Differential Revision: https://reviews.llvm.org/D46659

llvm-svn: 332516
clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp
clang-tools-extra/test/clang-tidy/google-readability-casting.mm [new file with mode: 0644]