From f26b624d8760e09af88fdc40815bb3aa9e169dbd Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Wed, 30 Jul 2014 11:56:42 +0300 Subject: [PATCH] Updated CPP Coding Style - typedefs should be like TNewType, not like new_type_t --- docs/cpp_coding_standard.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/cpp_coding_standard.txt b/docs/cpp_coding_standard.txt index 434b37fe71..0ce079b691 100644 --- a/docs/cpp_coding_standard.txt +++ b/docs/cpp_coding_standard.txt @@ -1,3 +1,5 @@ +We write code without warnings! + In general, Google's coding standard http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml is used and we strongly encourage to read it. Below are our specific exceptions to the Google's coding standard: @@ -8,7 +10,7 @@ Below are our specific exceptions to the Google's coding standard: - We don't include system, std and boost headers directly, use #include "../std/" - We ARE using C++ exceptions - We don't support C++11 yet -- We don't use boost libraries which requires linking +- We don't use boost libraries which require linking Naming and formatting @@ -27,6 +29,8 @@ Naming and formatting // *********** Formatting Example *********** #include "../std/math.hpp" +typedef double TMyTypeStartsWithCapitalTLetter; + class ComplexClass { public: @@ -179,3 +183,4 @@ Tips and Hints -- Calculate array size with ARRAY_SIZE(arrayVariable) -- Declare your own exceptions with DECLARE_EXCEPTION(name, baseException), where baseException is usually RootException -- Throw exceptions with MYTHROW(exceptionName, (message)) +-- A lot of useful string conversion utils are in base/string_utils.hpp