Skip to content

Commit 47b2b1f

Browse files
author
Pavel Kovalenko
committed
Add naming rule for using declarations of primitive types.
1 parent a7e05b6 commit 47b2b1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/procedure/cpp_code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ Naming conventions:
424424
Casing styles:
425425
- class/struct/enum: PascalCase
426426
- Math primitives can be in lowercase: vector2f, angle3f, matrix44f
427+
- Using declarations of primitive types can be in lowercase: uint, int16, uint64
427428
- Functions: PascalCase
428429
- Public and protected fields: PascalCase
429430
- Math primitives can use lowercase: vector2f.x, angle3f.yaw, matrix44f.m03
@@ -812,7 +813,7 @@ code fragments, put a comment line.
812813

813814
if (storage.size() == 0)
814815
Log("! ERROR: No items found");
815-
GOOD
816+
GOOD
816817
for (auto& item : items)
817818
storage.push_back(item);
818819
// check if there's no items

0 commit comments

Comments
 (0)