Bug 234294 - Clarify Objective-C++ style rules about pointer and reference token placement
Summary: Clarify Objective-C++ style rules about pointer and reference token placement
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kimmo Kinnunen
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-12-14 06:16 PST by Kimmo Kinnunen
Modified: 2021-12-21 06:17 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kinnunen 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.
Comment 1 Radar WebKit Bug Importer 2021-12-21 06:17:17 PST
<rdar://problem/86766251>