Bug 247095 - Style Checker error thinking an array literal is a capture list.
Summary: Style Checker error thinking an array literal is a capture list.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-26 15:41 PDT by Megan Gardner
Modified: 2022-11-02 15:42 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Megan Gardner 2022-10-26 15:41:58 PDT
Errors from the style checker:

ERROR: Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:10115:  Extra space in capture list.  [whitespace/brackets] [4]
ERROR: Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:10116:  Extra space in capture list.  [whitespace/brackets] [4]

The lines in question:

[_pencilHoverGestureRecognizer setAllowedTouchTypes:@[ @(UITouchTypePencil)] ];
[_mouseGestureRecognizer setAllowedTouchTypes:@[ @(UITouchTypeDirect), @(UITouchTypeIndirectPointer)] ];

This should not trigger the style checker as a failure.
Comment 1 Radar WebKit Bug Importer 2022-11-02 15:42:18 PDT
<rdar://problem/101883087>