Title: [222935] trunk/Websites/webkit.org
- Revision
- 222935
- Author
- [email protected]
- Date
- 2017-10-05 15:32:55 -0700 (Thu, 05 Oct 2017)
Log Message
Update Webkit Style webpage to include Obj-C blocks
https://bugs.webkit.org/show_bug.cgi?id=177906
Reviewed by Tim Horton.
* code-style.md:
Modified Paths
Diff
Modified: trunk/Websites/webkit.org/ChangeLog (222934 => 222935)
--- trunk/Websites/webkit.org/ChangeLog 2017-10-05 21:54:16 UTC (rev 222934)
+++ trunk/Websites/webkit.org/ChangeLog 2017-10-05 22:32:55 UTC (rev 222935)
@@ -1,3 +1,12 @@
+2017-10-04 Megan Gardner <[email protected]>
+
+ Update Webkit Style webpage to include Obj-C blocks
+ https://bugs.webkit.org/show_bug.cgi?id=177906
+
+ Reviewed by Tim Horton.
+
+ * code-style.md:
+
2017-10-02 Jon Davis <[email protected]>
Add a WebKit Build Archives page
Modified: trunk/Websites/webkit.org/code-style.md (222934 => 222935)
--- trunk/Websites/webkit.org/code-style.md 2017-10-05 21:54:16 UTC (rev 222934)
+++ trunk/Websites/webkit.org/code-style.md 2017-10-05 22:32:55 UTC (rev 222935)
@@ -234,6 +234,34 @@
f( a, b );
```
+[](#spacing-function-paren) In Objective-C, do not place spaces between the start of a block and its arguments, or the start of a block and its opening brace. **Do** place a space between argument lists and the opening brace of the block.
+
+###### Right:
+
+```cpp
+block = ^{
+...
+};
+
+block = ^(int, int) {
+...
+};
+
+```
+
+###### Wrong:
+
+```cpp
+block = ^ {
+...
+};
+
+block = ^ (int, int){
+...
+};
+
+```
+
### Line breaking
[](#linebreaking-multiple-statements) Each statement should get its own line.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes