From 47b2b1f66cac7b04c63fbce2ecac1810b6200a4b Mon Sep 17 00:00:00 2001 From: Pavel Kovalenko Date: Sat, 4 Oct 2014 16:42:39 +0400 Subject: [PATCH] Add naming rule for using declarations of primitive types. --- doc/procedure/cpp_code.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/procedure/cpp_code.txt b/doc/procedure/cpp_code.txt index 1271ab668ae..924d6b99d28 100644 --- a/doc/procedure/cpp_code.txt +++ b/doc/procedure/cpp_code.txt @@ -424,6 +424,7 @@ Naming conventions: Casing styles: - class/struct/enum: PascalCase - Math primitives can be in lowercase: vector2f, angle3f, matrix44f + - Using declarations of primitive types can be in lowercase: uint, int16, uint64 - Functions: PascalCase - Public and protected fields: PascalCase - Math primitives can use lowercase: vector2f.x, angle3f.yaw, matrix44f.m03 @@ -812,7 +813,7 @@ code fragments, put a comment line. if (storage.size() == 0) Log("! ERROR: No items found"); - GOOD + GOOD for (auto& item : items) storage.push_back(item); // check if there's no items