Bug 247095

Summary: Style Checker error thinking an array literal is a capture list.
Product: WebKit Reporter: Megan Gardner <megan_gardner>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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>