WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 164194
Use #pragma once in WebCore
https://bugs.webkit.org/show_bug.cgi?id=164194
Summary
Use #pragma once in WebCore
Joseph Pecoraro
Reported
2016-10-29 16:47:04 PDT
This uses pragma once in a number of large (dom, html, page) and smaller directories. - Convert headers to #pragma once - Also cleanup / make consistent closing feature endifs and namespace brace comments. - Also remove some unnecessary lines. - Add namespace WebCore if missing - Add copyright if missing The goal here was to mostly remove lines and not affect history in a negative way.
Attachments
[PATCH] Proposed Fix
(361.18 KB, patch)
2016-10-29 16:56 PDT
,
Joseph Pecoraro
sam
: review+
Details
Formatted Diff
Diff
[PATCH] For Bots
(360.49 KB, patch)
2016-10-31 10:50 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] For Bots
(359.89 KB, patch)
2016-10-31 11:09 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2016-10-29 16:56:56 PDT
Created
attachment 293318
[details]
[PATCH] Proposed Fix Need to make sure the bots are green.
Sam Weinig
Comment 2
2016-10-29 17:20:04 PDT
Comment on
attachment 293318
[details]
[PATCH] Proposed Fix rs=me
Joseph Pecoraro
Comment 3
2016-10-31 10:50:23 PDT
Created
attachment 293433
[details]
[PATCH] For Bots
Joseph Pecoraro
Comment 4
2016-10-31 11:08:47 PDT
> In file included from /Volumes/Data/EWS/WebKit/Source/WebKit/mac/DOM/DOMHTML.mm:41: > In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release-iphonesimulator/WebCore.framework/PrivateHeaders/HTMLInputElement.h:28: > In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release-iphonesimulator/WebCore.framework/PrivateHeaders/HTMLTextFormControlElement.h:27: > In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release-iphonesimulator/WebCore.framework/PrivateHeaders/HTMLFormControlElementWithState.h:26: > In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release-iphonesimulator/WebCore.framework/PrivateHeaders/HTMLFormControlElement.h:31: > In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release-iphonesimulator/WebCore.framework/PrivateHeaders/Autocapitalize.h:28: > /Volumes/Data/EWS/WebKit/WebKitBuild/Release-iphonesimulator/WebCore.framework/PrivateHeaders/WebAutocapitalize.h:34:3: error: typedef redefinition with different types ('enum WebAutocapitalizeType' vs 'enum WebAutocapitalizeType') > } WebAutocapitalizeType; > ^ > In file included from /Volumes/Data/EWS/WebKit/Source/WebKit/mac/DOM/DOMHTML.mm:36: > In file included from /Volumes/Data/EWS/WebKit/Source/WebKit/mac/DOM/DOMPrivate.h:30: > /Volumes/Data/EWS/WebKit/WebKitBuild/Release-iphonesimulator/WebKitLegacy.framework/PrivateHeaders/WebAutocapitalize.h:34:3: note: previous definition is here > } WebAutocapitalizeType; > ^ > 6 errors generated.
Apparently WebAutocapitalize is SPI. I'll not #pragma once it.
Joseph Pecoraro
Comment 5
2016-10-31 11:09:31 PDT
Created
attachment 293439
[details]
[PATCH] For Bots
WebKit Commit Bot
Comment 6
2016-10-31 15:10:56 PDT
Comment on
attachment 293439
[details]
[PATCH] For Bots Clearing flags on attachment: 293439 Committed
r208179
: <
http://trac.webkit.org/changeset/208179
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug