[PATCH] D40528: add new check to find NSError init invocation

Yan Zhang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 28 02:25:21 PST 2017


Wizard added inline comments.


================
Comment at: docs/clang-tidy/checks/objc-avoid-nserror-init.rst:10
+``errorWithDomain:code:userInfo:`` to create new NSError objects instead
+of ``[NSError alloc] init]``. Otherwise it will lead to a warning message
+during compilation in Xcode.
----------------
hokein wrote:
> What's the warning message in Xcode? I suspect whether there is a diagnostic flag in clang already. 
It was discussed originally here https://buganizer.corp.google.com/issues/62445078 I think


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D40528





More information about the cfe-commits mailing list