Add rules for defining global constant variables to GUIDELINES.md
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
parent
11c7b3bacc
commit
841e536bc2
|
@ -19,6 +19,7 @@ File to cover guidelines for NEO project.
|
||||||
* use of exceptions in driver code needs strong justification
|
* use of exceptions in driver code needs strong justification
|
||||||
* prefer static create methods returning std::unique_ptr instead of throwing from constructor
|
* prefer static create methods returning std::unique_ptr instead of throwing from constructor
|
||||||
* inside methods, use an explicit `this->` pointer for refering to non-static class members
|
* inside methods, use an explicit `this->` pointer for refering to non-static class members
|
||||||
|
* avoid defining global constants with internal-linkage in header files; use inline variables from C++17 instead
|
||||||
|
|
||||||
# Naming conventions
|
# Naming conventions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue