Changes

Jump to: navigation, search

C++ Code Style Guide

97 bytes added, 09:45, 28 January 2021
Taboos
We have legacy and new code. fixes of the legacy, which are small patches actually, adhere to the enclosing style.
For new code, see below.
== Naming Conventions ==
# We do not use RTTI (no dynamic_cast<>)
# We do not use exceptions
# We do not use syntax allowed by C++11 standard
# We do not use conversion operators (int())
# We do not use polymorphic inheritance
# We do not use assembler inlines
# We do not use "friends"
# Use references to objects rather than pointers, even for smart pointers.
# Group related classes to a single namespace
# We do not welcome a polymorphic inheritance
# If possible, avoid manual memory management (use of "new" and "delete" operators)
# If possible, avoid low-level thread management API ("pthread_xxx"), better to use boost or QT wrappers over it.

Navigation menu