WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
46670
check-webkit-style should check for explicit constructors.
https://bugs.webkit.org/show_bug.cgi?id=46670
Summary
check-webkit-style should check for explicit constructors.
David Levin
Reported
2010-09-27 16:08:04 PDT
Based on this thread:
https://lists.webkit.org/pipermail/webkit-dev/2010-May/012873.html
Attachments
Patch
(5.17 KB, patch)
2010-09-27 16:11 PDT
,
David Levin
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
David Levin
Comment 1
2010-09-27 16:11:46 PDT
Created
attachment 68987
[details]
Patch
Darin Adler
Comment 2
2010-09-27 16:15:51 PDT
Comment on
attachment 68987
[details]
Patch This doesn’t seem like a style rule to me.
David Levin
Comment 3
2010-09-27 16:24:43 PDT
(In reply to
comment #2
)
> (From update of
attachment 68987
[details]
) > This doesn’t seem like a style rule to me.
So you don't believe that this should be flagged in general. I've noticed some folks noting this in reviews for patches, and in general it seems like a good practice to mark single argument constructors as explicit unless there is a good reason to do otherwise. It seemed in keeping with this comment:
https://lists.webkit.org/pipermail/webkit-dev/2010-May/012876.html
In fairness, this comment
https://lists.webkit.org/pipermail/webkit-dev/2010-May/012881.html
seemed to suggest a lot more modest use of explicit.
David Levin
Comment 4
2010-09-28 11:59:58 PDT
Comment on
attachment 68987
[details]
Patch Withdrawn for now.
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