[webkit-dev] Coding convention of constants

Geoffrey Garen ggaren at apple.com
Fri Jul 10 12:19:16 PDT 2009


>> Ditto.  The last time I wondered about this, I grepped through the  
>> code and found [1] to be the most prevalent.  So, in code reviews I  
>> have been recommending people do [1].
>
> I think that's the nicest style (just like a variable, no special  
> prefix). Let's go with that and update the coding style guidelines.

As long as we're going to edit this, what should be the policy for  
static constant class members?

s_staticConstant
m_staticConstant
kStaticConstant
cStaticConstant
staticConstant

?

Geoff


More information about the webkit-dev mailing list