Bug 144201 - Avoid using TBD as an argument to NS_AVAILABLE
Summary: Avoid using TBD as an argument to NS_AVAILABLE
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: mitz
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-04-25 17:38 PDT by mitz
Modified: 2015-04-25 23:08 PDT (History)
1 user (show)

See Also:


Attachments
Use a version number instead of TBD (4.89 KB, patch)
2015-04-25 18:35 PDT, mitz
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2015-04-25 17:38:31 PDT
<rdar://problem/20697966>

CFAvailability.h tells us
// Do not use TBD as an argument to NS_AVAILABLE
but some of our generated bindings headers do it anyway.
Comment 1 mitz 2015-04-25 18:35:33 PDT
Created attachment 251661 [details]
Use a version number instead of TBD
Comment 2 WebKit Commit Bot 2015-04-25 18:37:41 PDT
Attachment 251661 [details] did not pass style-queue:


ERROR: Source/WebCore/bindings/objc/WebKitAvailability.h:35:  Missing spaces around =  [whitespace/operators] [4]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 mitz 2015-04-25 18:39:59 PDT
Committed <http://trac.webkit.org/r183343>.
Comment 4 Alexey Proskuryakov 2015-04-25 23:00:42 PDT
This broke bindings generation tests on all bots, e.g.:

-WEBKIT_CLASS_AVAILABLE_MAC(TBD)
+WEBKIT_CLASS_AVAILABLE_MAC(9876_5)

Is this the new expected behavior?
Comment 5 mitz 2015-04-25 23:01:39 PDT
(In reply to comment #4)
> This broke bindings generation tests on all bots, e.g.:
> 
> -WEBKIT_CLASS_AVAILABLE_MAC(TBD)
> +WEBKIT_CLASS_AVAILABLE_MAC(9876_5)
> 
> Is this the new expected behavior?

Iā€™m sorry, yes, it is expected.
Comment 6 mitz 2015-04-25 23:08:10 PDT
Updated the expected test results in <http://trac.webkit.org/r183350>.