[PATCH] D40528: add new check to find NSError init invocation
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 28 01:28:20 PST 2017
hokein 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.
----------------
What's the warning message in Xcode? I suspect whether there is a diagnostic flag in clang already.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D40528
More information about the cfe-commits
mailing list