Bug 105678 - Remove wtf/Platform.h includes from {c|cpp} files
Summary: Remove wtf/Platform.h includes from {c|cpp} files
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-22 11:19 PST by Laszlo Gombos
Modified: 2012-12-24 18:18 PST (History)
11 users (show)

See Also:


Attachments
proposed change (6.26 KB, patch)
2012-12-22 11:25 PST, Laszlo Gombos
haraken: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
for cq (6.31 KB, patch)
2012-12-24 17:29 PST, Laszlo Gombos
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Gombos 2012-12-22 11:19:21 PST
According to WebKit coding style - "All implementation files must #include "config.h" first. Header files should never include "config.h"

As config.h (by design) includes wtf/Platform.h including wtf/Platform.h explicitly in {c|cpp} files is always a duplicate/unnecessary.
Comment 1 Laszlo Gombos 2012-12-22 11:25:30 PST
Created attachment 180606 [details]
proposed change

If this patch lands, I plan to file a separate bug to add this rule to check-webkit-style.
Comment 2 Kentaro Hara 2012-12-24 16:42:40 PST
Comment on attachment 180606 [details]
proposed change

OK
Comment 3 WebKit Review Bot 2012-12-24 16:45:07 PST
Comment on attachment 180606 [details]
proposed change

Rejecting attachment 180606 [details] from commit-queue.

Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', u'--status-host=queues.webkit.org', ..." exit_code: 1 cwd: /mnt/git/webkit-commit-queue

/mnt/git/webkit-commit-queue/Source/JavaScriptCore/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).

Full output: http://queues.webkit.org/results/15503556
Comment 4 Kentaro Hara 2012-12-24 16:51:29 PST
Comment on attachment 180606 [details]
proposed change

View in context: https://bugs.webkit.org/attachment.cgi?id=180606&action=review

> Source/JavaScriptCore/ChangeLog:5
> +

You need to add a 'Reviewed by' line.
Comment 5 Laszlo Gombos 2012-12-24 17:29:54 PST
Created attachment 180694 [details]
for cq

> > Source/JavaScriptCore/ChangeLog:5
> > +
> 
> You need to add a 'Reviewed by' line.

Hoops. Done.
Comment 6 WebKit Review Bot 2012-12-24 18:18:19 PST
Comment on attachment 180694 [details]
for cq

Clearing flags on attachment: 180694

Committed r138449: <http://trac.webkit.org/changeset/138449>
Comment 7 WebKit Review Bot 2012-12-24 18:18:24 PST
All reviewed patches have been landed.  Closing bug.