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 150396
check-webkit-style complains about missing operator whitespace inside character literal
https://bugs.webkit.org/show_bug.cgi?id=150396
Summary
check-webkit-style complains about missing operator whitespace inside charact...
Frédéric Wang (:fredw)
Reported
2015-10-21 10:09:57 PDT
Bug 150394
, contains a patch that loads the OS/2 table as follows: CFDataRef os2Table = CGFontCopyTableForTag(m_platformData.cgFont(), 'OS/2') Here 'OS/2' is a character literal (32 bit integer) used as a tag representing the TrueType table. The slash is not used as an operator, however check-webkit-style complains with the following message: ERROR: Source/WebCore/platform/graphics/cocoa/FontCocoa.mm:179: Missing spaces around / [whitespace/operators] [3]
Attachments
Patch
(2.70 KB, patch)
2015-10-24 08:52 PDT
,
Frédéric Wang (:fredw)
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Frédéric Wang (:fredw)
Comment 1
2015-10-24 08:52:58 PDT
Created
attachment 263979
[details]
Patch
Frédéric Wang (:fredw)
Comment 2
2015-10-24 08:56:24 PDT
Note that the 'OS/2' case is already in the source code:
https://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/cocoa/FontCocoa.mm#L284
Csaba Osztrogonác
Comment 3
2015-10-24 12:21:04 PDT
Comment on
attachment 263979
[details]
Patch Could you please add a new unittest covers this change?
Csaba Osztrogonác
Comment 4
2015-10-24 12:22:03 PDT
(In reply to
comment #3
)
> Comment on
attachment 263979
[details]
> Patch > > Could you please add a new unittest covers this change?
Sorry, please ignore this comment.
Frédéric Wang (:fredw)
Comment 5
2015-10-24 16:37:07 PDT
Committed
r191538
: <
http://trac.webkit.org/changeset/191538
>
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