Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@mapswithme.com>2014-07-30 12:56:42 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:22:47 +0300
commitf26b624d8760e09af88fdc40815bb3aa9e169dbd (patch)
tree4d0e4ba517f411fe115ffa29832962a6dc43e8ae /docs
parentba84ce67547e0de0f6d1f85a6edb05a19ac7c62b (diff)
Updated CPP Coding Style - typedefs should be like TNewType, not like new_type_t
Diffstat (limited to 'docs')
-rw-r--r--docs/cpp_coding_standard.txt7
1 files changed, 6 insertions, 1 deletions
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/<wrapper.hpp>"
- 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