You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/documentation/src/developer_guide/codingguidelines.rst
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ in the future.
25
25
26
26
**New code should always follow the following guidelines. Touching old code is always a great opportunity to improve it with respect to these guidelines.**
27
27
28
+
.. _avoid-define-flags:
29
+
28
30
Avoid define flags
29
31
^^^^^^^^^^^^^^^^^^
30
32
@@ -69,8 +71,7 @@ In addition, the string-based lookup is not compile-time checked.
69
71
Const-correctness
70
72
^^^^^^^^^^^^^^^^^
71
73
72
-
Make new code const-correct and fix old code in that regard when working on it. Const-correctness is mainly relevant
73
-
for function parameters and member functions.
74
+
Make code const-correct. Const-correctness is mainly relevant for function parameters and member functions.
74
75
75
76
**Note:** The member fields of a struct or class should often not be ``const``, as this would prevent the struct or
76
77
class from being moved or copied. Instead, use ``const`` member functions to access the fields in a ``const`` context.
@@ -91,15 +92,18 @@ See also `Enum.3 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#e
91
92
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92
93
93
94
- **Namespaces** use CamelCase: ``LinAlg::``
94
-
- **Class names** / **function** names / **enum types** use camel case, starting with a capital letter:
0 commit comments