Bug 124730

Summary: check-webkit-style is wrong about expected format for std::function variables
Product: WebKit Reporter: Brady Eidson <beidson>
Component: Tools / TestsAssignee: Lauro Moura <lmoura>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, cgarcia, lmoura, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Brady Eidson
Reported 2013-11-21 11:38:32 PST
check-webkit-style is wrong about expected format for std::function variables. Seen in the patch(es) attached to https://bugs.webkit.org/show_bug.cgi?id=124698 - Source/WebKit2/Shared/AsyncRequest.h:60: Extra space before ( in function call [whitespace/parens] [4] Source/WebKit2/Shared/AsyncRequest.h:78: Extra space before ( in function call [whitespace/parens] [4] Source/WebKit2/Shared/AsyncRequest.h:89: Extra space before ( in function call [whitespace/parens] [4] The lines in question are: static PassRefPtr<AsyncRequest> create(std::function<void (Arguments...)> completionHandler) AsyncRequestImpl(std::function<void (Arguments...)> completionHandler) std::function<void (Arguments...)> m_completionHandler; The style-checker needs to know that when "something that looks like a function decl/def" is inside std::function<> brackets, the space before the paren is expected.
Attachments
László Langó
Comment 1 2014-04-04 00:03:54 PDT
*** Bug 131202 has been marked as a duplicate of this bug. ***
Lauro Moura
Comment 2 2024-03-06 20:58:08 PST
EWS
Comment 3 2024-03-14 15:03:03 PDT
Committed 276122@main (b3871d2a862c): <https://commits.webkit.org/276122@main> Reviewed commits have been landed. Closing PR #25567 and removing active labels.
Radar WebKit Bug Importer
Comment 4 2024-03-14 15:04:18 PDT
Note You need to log in before you can comment on or make changes to this bug.