[PATCH] D46659: [clang-tidy/google-readability-casting] Disable check for Objective-C++

Stephane Moore via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 16 12:23:09 PDT 2018


stephanemoore accepted this revision.
stephanemoore added inline comments.


================
Comment at: clang-tidy/google/AvoidCStyleCastsCheck.cpp:103-104
   // The rest of this check is only relevant to C++.
-  if (!getLangOpts().CPlusPlus)
+  // We also disable it for Objective-C++.
+  if (!getLangOpts().CPlusPlus || getLangOpts().ObjC1 || getLangOpts().ObjC2)
     return;
----------------
In the future it would probably be good to allow configuring whether or not this is disabled but I think that disabling it for Objective-C++ completely in the interim is a positive change.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D46659





More information about the cfe-commits mailing list