Bug 234294

Summary: Clarify Objective-C++ style rules about pointer and reference token placement
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: Tools / TestsAssignee: Kimmo Kinnunen <kkinnunen>
Status: ASSIGNED    
Severity: Normal CC: mitz, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=230401

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