Skip to content

Instantly share code, notes, and snippets.

@assapir
Created December 2, 2017 19:15
Show Gist options
  • Save assapir/5706790ede87a016d7b5c4bb1e84fd2e to your computer and use it in GitHub Desktop.
Save assapir/5706790ede87a016d7b5c4bb1e84fd2e to your computer and use it in GitHub Desktop.
coding conventions example
#include "example.h"
// space line
#include <system includes> // by alphabetic order
#include "project includes" // by alphabetic order
class CameCse : public BaseClass {
public:
void LongFunctionName(
/*2 spaces after ( */ int camelCase1,
int bla)
: mCamelCase(camelCase),
mBla(bla) // by the order of the private in the h file!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment