Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Issue 11361240: Add the -Wobjc-missing-property-synthesis flag. (Closed)

Created:
8 years, 1 month ago by Miranda Callahan
Modified:
8 years, 1 month ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add the -Wobjc-missing-property-synthesis flag. Add the -Wobjc-missing-property-synthesis compiler flag for iOS and Mac builds. Because Clang now automatically synthesizes properties if it's not done explicitly, forgetting to add a @synthesize directive may result in difficult-to-uncover bugs, as Clang silently synthesizes instance variables and binds them to the wrong property (see, for example, https://chromereviews.googleplex.com/5618018/). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167783

Patch Set 1 #

Patch Set 2 : +mac #

Total comments: 2

Patch Set 3 : change flag to xcode setting #

Total comments: 2

Patch Set 4 : add to ios block #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -6 lines) Patch
M build/common.gypi View 1 2 3 5 chunks +9 lines, -6 lines 1 comment Download

Messages

Total messages: 14 (0 generated)
Miranda Callahan
Here's a patch that will force an error if auto-property synthesis kicks in. The error ...
8 years, 1 month ago (2012-11-13 17:54:34 UTC) #1
rohitrao (ping after 24h)
Does this uncover any other problems, or does our whole codebase build with this flag ...
8 years, 1 month ago (2012-11-13 18:27:57 UTC) #2
Miranda Callahan
On 2012/11/13 18:27:57, rohitrao wrote: > Does this uncover any other problems, or does our ...
8 years, 1 month ago (2012-11-13 19:24:04 UTC) #3
Miranda Callahan
Added Mark for upstream review as discussed.
8 years, 1 month ago (2012-11-13 19:24:50 UTC) #4
Miranda Callahan
On 2012/11/13 19:24:50, Miranda Callahan wrote: > Added Mark for upstream review as discussed. Ping ...
8 years, 1 month ago (2012-11-14 20:33:33 UTC) #5
Nico
https://chromiumcodereview.appspot.com/11361240/diff/1009/build/common.gypi File build/common.gypi (right): https://chromiumcodereview.appspot.com/11361240/diff/1009/build/common.gypi#newcode3073 build/common.gypi:3073: '-Wobjc-missing-property-synthesis', If you say 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES' instead, then the ...
8 years, 1 month ago (2012-11-14 21:06:55 UTC) #6
Miranda Callahan
Excellent, thanks -- please take another look. On 2012/11/14 21:06:55, Nico wrote: > https://chromiumcodereview.appspot.com/11361240/diff/1009/build/common.gypi > ...
8 years, 1 month ago (2012-11-14 21:21:03 UTC) #7
Nico
https://chromiumcodereview.appspot.com/11361240/diff/11004/build/common.gypi File build/common.gypi (right): https://chromiumcodereview.appspot.com/11361240/diff/11004/build/common.gypi#newcode3322 build/common.gypi:3322: 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', THis probably wants 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES' too (or ...
8 years, 1 month ago (2012-11-14 21:30:33 UTC) #8
mirandac
! https://chromiumcodereview.appspot.com/11361240/diff/11004/build/common.gypi File build/common.gypi (right): https://chromiumcodereview.appspot.com/11361240/diff/11004/build/common.gypi#newcode3322 build/common.gypi:3322: 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', On 2012/11/14 21:30:33, Nico wrote: > ...
8 years, 1 month ago (2012-11-14 21:51:52 UTC) #9
Nico
lgtm
8 years, 1 month ago (2012-11-14 21:52:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mirandac@chromium.org/11361240/5004
8 years, 1 month ago (2012-11-14 21:57:18 UTC) #11
Mark Mentovai
I’m glad Nico had the same comment as me. I don’t know why this didn’t ...
8 years, 1 month ago (2012-11-15 00:06:52 UTC) #12
Mark Mentovai
Ensuring I press send this time. https://chromiumcodereview.appspot.com/11361240/diff/5004/build/common.gypi File build/common.gypi (right): https://chromiumcodereview.appspot.com/11361240/diff/5004/build/common.gypi#newcode3094 build/common.gypi:3094: 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', One ...
8 years, 1 month ago (2012-11-15 00:07:51 UTC) #13
commit-bot: I haz the power
8 years, 1 month ago (2012-11-15 00:25:54 UTC) #14
Change committed as 167783

Powered by Google App Engine
This is Rietveld 408576698