WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
ASSIGNED
Bug 234294
Clarify Objective-C++ style rules about pointer and reference token placement
https://bugs.webkit.org/show_bug.cgi?id=234294
Summary
Clarify Objective-C++ style rules about pointer and reference token placement
Kimmo Kinnunen
Reported
2021-12-14 06:16:14 PST
Clarify Objective-C++ style rules about pointer about reference token placement
https://webkit.org/code-style-guidelines/#pointers-and-references
Pointers and References Pointer types in non-C++ code Pointer types should be written with a space between the type and the * (so the * is adjacent to the following identifier if any). See discussion:
https://webkit.slack.com/archives/CU64U6FDW/p1639172238429000
Currently the style seems to say: - All pointers and references are written with space between type and */&. Currently the Objective-C++ .h file parts that define Objective-C interfaces, classes and protocols seem to sometimes follow this, sometimes not. Currently the Objective-C++ .mm files do not seem to follow this much at all.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-12-21 06:17:17 PST
<
rdar://problem/86766251
>
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