WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
158001
Use auto for some of our lambda function parameters
https://bugs.webkit.org/show_bug.cgi?id=158001
Summary
Use auto for some of our lambda function parameters
Chris Dumez
Reported
2016-05-23 15:26:38 PDT
Use auto for some of our lambda function parameters now that we build with c++14.
Attachments
Patch
(54.92 KB, patch)
2016-05-23 15:28 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(55.14 KB, patch)
2016-05-23 15:30 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(54.19 KB, patch)
2016-05-23 15:35 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(53.45 KB, patch)
2016-05-23 15:46 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(52.90 KB, patch)
2016-05-23 16:05 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(52.29 KB, patch)
2016-05-23 16:22 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(52.43 KB, patch)
2016-05-23 16:32 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(52.21 KB, patch)
2016-05-24 09:07 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(53.66 KB, patch)
2016-05-24 09:24 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(53.67 KB, patch)
2016-05-24 09:32 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(53.67 KB, patch)
2016-05-24 09:43 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(53.66 KB, patch)
2016-05-24 09:48 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(11)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-05-23 15:28:23 PDT
Created
attachment 279593
[details]
Patch
Chris Dumez
Comment 2
2016-05-23 15:30:55 PDT
Created
attachment 279595
[details]
Patch
WebKit Commit Bot
Comment 3
2016-05-23 15:33:40 PDT
Attachment 279595
[details]
did not pass style-queue: ERROR: Source/WebCore/accessibility/AccessibilityRenderObject.cpp:3248: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:213: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:217: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WTF/wtf/BubbleSort.h:92: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 4 in 46 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 4
2016-05-23 15:35:18 PDT
Created
attachment 279597
[details]
Patch
WebKit Commit Bot
Comment 5
2016-05-23 15:36:27 PDT
Attachment 279597
[details]
did not pass style-queue: ERROR: Source/WebCore/accessibility/AccessibilityRenderObject.cpp:3248: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:213: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:217: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WTF/wtf/BubbleSort.h:92: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 4 in 45 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 6
2016-05-23 15:42:03 PDT
Hmm, GTK seems to have issues with this but not EFL, weird.
Chris Dumez
Comment 7
2016-05-23 15:46:42 PDT
Created
attachment 279599
[details]
Patch
WebKit Commit Bot
Comment 8
2016-05-23 15:47:58 PDT
Attachment 279599
[details]
did not pass style-queue: ERROR: Source/WebCore/accessibility/AccessibilityRenderObject.cpp:3248: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:213: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:217: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WTF/wtf/BubbleSort.h:92: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 4 in 45 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 9
2016-05-23 16:05:22 PDT
Created
attachment 279601
[details]
Patch
Chris Dumez
Comment 10
2016-05-23 16:05:59 PDT
Trying to scale down the patch until it builds on GTK.
WebKit Commit Bot
Comment 11
2016-05-23 16:07:45 PDT
Attachment 279601
[details]
did not pass style-queue: ERROR: Source/WebCore/accessibility/AccessibilityRenderObject.cpp:3248: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:213: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:217: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WTF/wtf/BubbleSort.h:92: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 4 in 45 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 12
2016-05-23 16:22:05 PDT
Created
attachment 279604
[details]
Patch
Chris Dumez
Comment 13
2016-05-23 16:32:49 PDT
Created
attachment 279606
[details]
Patch
WebKit Commit Bot
Comment 14
2016-05-23 16:35:19 PDT
Attachment 279606
[details]
did not pass style-queue: ERROR: Source/WebCore/accessibility/AccessibilityRenderObject.cpp:3248: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:213: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:217: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WTF/wtf/BubbleSort.h:92: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 4 in 45 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 15
2016-05-23 16:46:15 PDT
Comment on
attachment 279606
[details]
Patch GTK is building!
Darin Adler
Comment 16
2016-05-24 08:56:04 PDT
Comment on
attachment 279606
[details]
Patch Could you make the style bot happy so the next person who modifies these won’t see a complaint? Many of those const auto& could just be auto& instead; I don’t think the const helps.
Brady Eidson
Comment 17
2016-05-24 08:59:58 PDT
(In reply to
comment #16
)
> Comment on
attachment 279606
[details]
> Patch > > Could you make the style bot happy so the next person who modifies these > won’t see a complaint?
This is a *long* standing deficiency in the style bot, around ever since we started using lambdas and std::functions
https://bugs.webkit.org/show_bug.cgi?id=124730
https://bugs.webkit.org/show_bug.cgi?id=125616
I think the reason it remains unfixed is because nobody knows how to distinguish between function definitions and lambdas in the current style bot infrastructure.
Brady Eidson
Comment 18
2016-05-24 09:02:02 PDT
(In reply to
comment #17
)
> (In reply to
comment #16
) > > Comment on
attachment 279606
[details]
> > Patch > > > > Could you make the style bot happy so the next person who modifies these > > won’t see a complaint? > > This is a *long* standing deficiency in the style bot, around ever since we > started using lambdas and std::functions > >
https://bugs.webkit.org/show_bug.cgi?id=124730
>
https://bugs.webkit.org/show_bug.cgi?id=125616
> > I think the reason it remains unfixed is because nobody knows how to > distinguish between function definitions and lambdas in the current style > bot infrastructure.
And, of course, I might be completely wrong about that, because I see in one of those I suggested the fix and in the other I (maybe) partially implemented the fix. Maybe it's solvable.
Chris Dumez
Comment 19
2016-05-24 09:07:55 PDT
Created
attachment 279655
[details]
Patch
Chris Dumez
Comment 20
2016-05-24 09:09:14 PDT
(In reply to
comment #18
)
> (In reply to
comment #17
) > > (In reply to
comment #16
) > > > Comment on
attachment 279606
[details]
> > > Patch > > > > > > Could you make the style bot happy so the next person who modifies these > > > won’t see a complaint? > > > > This is a *long* standing deficiency in the style bot, around ever since we > > started using lambdas and std::functions > > > >
https://bugs.webkit.org/show_bug.cgi?id=124730
> >
https://bugs.webkit.org/show_bug.cgi?id=125616
> > > > I think the reason it remains unfixed is because nobody knows how to > > distinguish between function definitions and lambdas in the current style > > bot infrastructure. > > And, of course, I might be completely wrong about that, because I see in one > of those I suggested the fix and in the other I (maybe) partially > implemented the fix. > > Maybe it's solvable.
I do think this is a style script bug. putting the curly bracket on the next line does not look right in such cases.
Brady Eidson
Comment 21
2016-05-24 09:10:27 PDT
(In reply to
comment #20
)
> (In reply to
comment #18
) > > (In reply to
comment #17
) > > > (In reply to
comment #16
) > > > > Comment on
attachment 279606
[details]
> > > > Patch > > > > > > > > Could you make the style bot happy so the next person who modifies these > > > > won’t see a complaint? > > > > > > This is a *long* standing deficiency in the style bot, around ever since we > > > started using lambdas and std::functions > > > > > >
https://bugs.webkit.org/show_bug.cgi?id=124730
> > >
https://bugs.webkit.org/show_bug.cgi?id=125616
> > > > > > I think the reason it remains unfixed is because nobody knows how to > > > distinguish between function definitions and lambdas in the current style > > > bot infrastructure. > > > > And, of course, I might be completely wrong about that, because I see in one > > of those I suggested the fix and in the other I (maybe) partially > > implemented the fix. > > > > Maybe it's solvable. > > I do think this is a style script bug. putting the curly bracket on the next > line does not look right in such cases.
There's no debate that the style checker is getting this wrong - It is. It's just that nobody has fixed it to get it right and then update the style guidelines on the site.
WebKit Commit Bot
Comment 22
2016-05-24 09:10:40 PDT
Attachment 279655
[details]
did not pass style-queue: ERROR: Source/WebCore/accessibility/AccessibilityRenderObject.cpp:3248: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:213: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm:217: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WTF/wtf/BubbleSort.h:92: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 4 in 45 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 23
2016-05-24 09:24:40 PDT
Created
attachment 279657
[details]
Patch
Chris Dumez
Comment 24
2016-05-24 09:25:20 PDT
I tweaked the style checker to stop warning in this case. It is probably not perfect but it seems to work.
Chris Dumez
Comment 25
2016-05-24 09:32:43 PDT
Created
attachment 279660
[details]
Patch
WebKit Commit Bot
Comment 26
2016-05-24 09:40:49 PDT
Comment on
attachment 279660
[details]
Patch Rejecting
attachment 279660
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'validate-changelog', '--check-oops', '--non-interactive', 279660, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in Source/WTF/ChangeLog contains OOPS!. Full output:
http://webkit-queues.webkit.org/results/1375417
Chris Dumez
Comment 27
2016-05-24 09:43:39 PDT
Created
attachment 279662
[details]
Patch
WebKit Commit Bot
Comment 28
2016-05-24 09:45:18 PDT
Comment on
attachment 279662
[details]
Patch Rejecting
attachment 279662
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'validate-changelog', '--check-oops', '--non-interactive', 279662, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in Tools/ChangeLog contains OOPS!. Full output:
http://webkit-queues.webkit.org/results/1375435
Chris Dumez
Comment 29
2016-05-24 09:48:01 PDT
Created
attachment 279664
[details]
Patch
Chris Dumez
Comment 30
2016-05-24 09:49:20 PDT
Comment on
attachment 279664
[details]
Patch Clearing flags on attachment: 279664 Committed
r201333
: <
http://trac.webkit.org/changeset/201333
>
Chris Dumez
Comment 31
2016-05-24 09:49:25 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug