WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
96944
check-webkit-style should warn when using booleans where enums are better
https://bugs.webkit.org/show_bug.cgi?id=96944
Summary
check-webkit-style should warn when using booleans where enums are better
Eric Seidel (no email)
Reported
2012-09-17 12:35:21 PDT
check-webkit-style should warn when using booleans where enums are better Cases where bools are used in multi-argument functions are almost always wrong and should be enums instead. foo(baz, true) and void bar(void* ptr, bool baz = true) are just confusing and check-webkit-style should warn and instruct individuals to fix them with enums.
Attachments
Add attachment
proposed patch, testcase, etc.
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