Skip to content

Commit

Permalink
Add naming rule for using declarations of primitive types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kovalenko committed Oct 4, 2014
1 parent a7e05b6 commit 47b2b1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/procedure/cpp_code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 47b2b1f

Please sign in to comment.