diff options
author | Ilya Zverev <zverik@textual.ru> | 2016-11-24 20:27:51 +0300 |
---|---|---|
committer | Ilya Zverev <zverik@textual.ru> | 2016-11-30 18:55:40 +0300 |
commit | 153e4f2b8c0ea07b90b3f72455f201754577e751 (patch) | |
tree | 9c5809357572f6964dde7a9aa39c66eb8b12e3c4 /docs/CPP_STYLE.md | |
parent | 70871724edcb0a50dde550512310fda1a370566f (diff) |
[banners] Add banners infrastructure
Diffstat (limited to 'docs/CPP_STYLE.md')
-rw-r--r-- | docs/CPP_STYLE.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/CPP_STYLE.md b/docs/CPP_STYLE.md index 87bf2c28b5..0f9582abca 100644 --- a/docs/CPP_STYLE.md +++ b/docs/CPP_STYLE.md @@ -9,6 +9,8 @@ Below are our specific (but not all!) exceptions to the Google's coding standard - File names are lowercase with underscores, like `file_reader.cpp`. - We use `#pragma once` instead of the `#define` Guard in header files. - We don't include system, std and boost headers directly, use `#include "std/<wrapper.hpp>"`. +- Includes are sorted and grouped by directory, there should be newlines between different directories. +- Order of directories in includes: "current_dir/current_file.hpp", other includes from the same dir, includes from other dirs sorted by dependencies: `coding, geometry, base, std, "defines.hpp", 3party` should go last in that order. - We ARE using C++ exceptions. - We are using all features of C++11 (the only known exception is thread_local which is not fully supported on all platforms). - We don't use boost libraries which require linking (and prefer C++11 types over their boost counterparts). |