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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to