Bug 234294
Summary: | Clarify Objective-C++ style rules about pointer and reference token placement | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kimmo Kinnunen <kkinnunen> |
Component: | Tools / Tests | Assignee: | 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
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
<rdar://problem/86766251>