kc3-lang/angle/doc/CodingStandard.md

Download

Coding Standard for the ANGLE Project

Google Style Guide

We generally use the [Google C++ Style Guide] (http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml) as a basis for our Coding Standard, however we will deviate from it in a few areas, as noted below.

Items marked {DEV} indicate a deviation from the Google guidelines. Items marked {DO} are reiterating points from the Google guidelines.

Header Files

Scoping

Classes

Other C++ Features

Naming

File Names

Variable Names

Use the following guidelines, they do deviate somewhat from the Google guidelines. * class and type names: start with capital letter and use CamelCase.

Comments

Formatting

Examples: if (conditional) { stuff(); } else { otherstuff() } switch (conditional) { case foo: dostuff(); break; case bar: otherstuff() break; default: WTFBBQ(); } class MyClass : public Foo { public: MyClass(); ~MyClass() {}; private: DISALLOW_COPY_AND_ASSIGN(MyClass); }; char *c; const string &str;

Exceptions to the Rules


Source

Download