Coding style guide, incomplete
All type definitions, function declarations and global definitions follow the Pascal Case. Each word within the name must be capitalized.
int Global;
struct FooBar {
void Foo();
};
All members variables, local variables and function parameters follow the camel Case. First word must be in lowercase, followed by all remaining words capitalized.
struct FooBar {
void Foo(int newFoos) {
const int maxFoos = 16;
numFoos = std::min(maxFoos, newFoos);
}
int numFoos;
};
All tabs must be 4 spaces.
a;
a;
a;
Scopes must start on the same line, except for in statement-block scopes.
namespace A {
}
void Foo() {
// Scope inside statement block
{
}
}
All preprocessors must be upper case with underscores for separation, and start with GRS_
.
#define GRS_DECLARE_TYPE
Please refer to the Microsoft C# code style.