Andre Poenitz wrote:
Can everybody interested please state his preference wrt to
the cosmetics of enum types and 'members'? Name casing e.g.
I have no strong opinion on that other than that I like to
have some more uniform style than what we have now.
I have no strong opinion WRT enums but I just committed ColorCode.h
which is like this:
enum ColorCode
{
/// No particular color---clear or default
Color_none,
/// The different text colors
Color_black,
...
I used that naming mainly because it was easy for search&replace but I
find it nonetheless informative. So for me that would be:
enum CamelBump
{
Camel_foo,
Camel_bar
};
Concerning classes:
class CamelBump
{
bool isSomething();
void doSomething(int all_lower_case, ...);
Foo & foo();
void setFoo(Foo const & all_lower_case);
public:
bool public_member;
protected:
bool protected_member_;
private:
bool private_member_;
};
Abdel.