Bug 125847 - Should not have identifiers with underscores in them, especially not leading underscores.
Summary: Should not have identifiers with underscores in them, especially not leading ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-17 02:21 PST by Gergő Balogh
Modified: 2013-12-18 10:03 PST (History)
5 users (show)

See Also:


Attachments
patch (4.61 KB, patch)
2013-12-18 08:17 PST, Gergő Balogh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gergő Balogh 2013-12-17 02:21:31 PST
example:
Options::Options(double _default_long_timeout, double _default_short_timeout)
Should be defaultLongTimeout and defaultShortTimeout.
Comment 1 Gergő Balogh 2013-12-17 02:22:32 PST
RFC: it is true or not?
Comment 2 Darin Adler 2013-12-17 07:49:41 PST
This is all covered in the coding style document <http://www.webkit.org/coding/coding-style.html>. It doesn’t list everything that it prohibits, but it’s clear that underscores are used only in macros (it calls them “defined constants”).
Comment 3 Alexey Proskuryakov 2013-12-17 11:50:28 PST
There are some exceptions where underscores are needed to match names coming from elsewhere (e.g. please don't rename CryptoAlgorithmRSAES_PKCS1_v1_5.h), but this example is clearly in violation of WebKit rules.
Comment 4 Gergő Balogh 2013-12-18 08:17:55 PST
Created attachment 219536 [details]
patch

This is fix the existing underscore checking logic, which ignored the constructor definitions.
Comment 5 WebKit Commit Bot 2013-12-18 10:03:44 PST
Comment on attachment 219536 [details]
patch

Clearing flags on attachment: 219536

Committed r160773: <http://trac.webkit.org/changeset/160773>
Comment 6 WebKit Commit Bot 2013-12-18 10:03:47 PST
All reviewed patches have been landed.  Closing bug.