From f56aaae2b96da812c6d8bab61ec8d282d529a5bb Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Thu, 21 Mar 2013 09:33:29 +0300 Subject: [PATCH] Minor code style update --- docs/cpp_coding_standard.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/cpp_coding_standard.txt b/docs/cpp_coding_standard.txt index fa8b237019..a967328ebf 100644 --- a/docs/cpp_coding_standard.txt +++ b/docs/cpp_coding_standard.txt @@ -17,6 +17,8 @@ Naming and formatting - We don't have hardcoded line width, but keep it reasonable to fit on the screen - Doxygen-style comments can be used - Underscores are allowed only in prefixes for member variables and namespace names, like int m_countriesCount; namespace utf_parser +- Don't specify std:: and boost:: prefixes (headers in std/ folder already have 'using std::string') +- Use right-to-left order for variables/params: string const & s (reference to the const string) // *********** Formatting Example *********** #include "../std/math.hpp"