Bug 26188

Summary: Clarify some of the cases in the coding style guide
Product: WebKit Reporter: Kenneth Rohde Christiansen <kenneth>
Component: WebKit WebsiteAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ddkilzer
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
Changed the coding style document to clarify some cases of ambiguity.
none
Incorporated the review commetns ddkilzer: review+

Kenneth Rohde Christiansen
Reported 2009-06-04 09:49:03 PDT
Here is a patch clarifying some cases of ambiguity in the coding style guide, with regard to control clauses.
Attachments
Changed the coding style document to clarify some cases of ambiguity. (2.34 KB, patch)
2009-06-04 09:49 PDT, Kenneth Rohde Christiansen
no flags
Incorporated the review commetns (2.55 KB, patch)
2009-06-04 13:00 PDT, Kenneth Rohde Christiansen
ddkilzer: review+
Kenneth Rohde Christiansen
Comment 1 2009-06-04 09:49:57 PDT
Created attachment 30948 [details] Changed the coding style document to clarify some cases of ambiguity.
David Kilzer (:ddkilzer)
Comment 2 2009-06-04 11:26:34 PDT
Comment on attachment 30948 [details] Changed the coding style document to clarify some cases of ambiguity. You must set the review? flag to get it reviewed. :)
David Levin
Comment 3 2009-06-04 11:59:13 PDT
Since you're clarifying this rule about single line clauses, you may want to make it slightly more general (as discussed on webkit-dev). Here was my attempt but you may find a way to phrase it better: "Control clauses (including any preceeding comments) that are one physical line should not use braces". Good: if (test) { myFunction(reallyLongParam1, reallyLongParam2, ... reallyLongParam4); }
Kenneth Rohde Christiansen
Comment 4 2009-06-04 13:00:37 PDT
Created attachment 30955 [details] Incorporated the review commetns
David Kilzer (:ddkilzer)
Comment 5 2009-06-04 13:32:10 PDT
Comment on attachment 30955 [details] Incorporated the review commetns You must still set the review? flag.
Kenneth Rohde Christiansen
Comment 6 2009-06-04 13:39:10 PDT
How do I do that? Add a keyword?
David Kilzer (:ddkilzer)
Comment 7 2009-06-05 07:52:10 PDT
(In reply to comment #6) > How do I do that? Add a keyword? Click the "Edit" button on the attachment after it's been attached, or look for the "Flags" section when attaching new files and set the pop-up menu to "?" next to the word "review".
David Kilzer (:ddkilzer)
Comment 8 2009-06-05 10:41:53 PDT
Comment on attachment 30955 [details] Incorporated the review commetns r=me. I'll land this with some verbage tweaks.
David Kilzer (:ddkilzer)
Comment 9 2009-06-05 10:43:31 PDT
$ git svn dcommit Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebKitSite/ChangeLog M WebKitSite/coding/coding-style.html Committed r44473 http://trac.webkit.org/changeset/44473
David Kilzer (:ddkilzer)
Comment 10 2009-06-05 10:44:12 PDT
(In reply to comment #8) > (From update of attachment 30955 [details] [review]) > r=me. I'll land this with some verbage tweaks. Also, verbiage tweaks. :)
Note You need to log in before you can comment on or make changes to this bug.