Skip to content

Developer: code convention

Reed A. Cartwright edited this page Jun 9, 2016 · 1 revision

Rule of thumb

Use Google C++ Style Guide for most of the code.

This is working in progress, lots of things might get updated.

#Exceptions ##Header Files ####The #define Guard Include #pragma once

##Scoping ####Named Namespaces Sometimes it's ok to use a using-directive to make all names from a namespace available. using namespace foo

##Naming ####Constant Names Variables declared constexpr or const, don't have to start with k. Use UPPER_CASE

##Formatting ####Spaces vs. Tabs Default indent 4 spaces at a time.

Clone this wiki locally