Add rules for defining global constant variables to GUIDELINES.md

Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
Patryk Wrobel 2022-08-29 11:59:29 +00:00 committed by Compute-Runtime-Automation
parent 11c7b3bacc
commit 841e536bc2
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ File to cover guidelines for NEO project.
* use of exceptions in driver code needs strong justification
* 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
* avoid defining global constants with internal-linkage in header files; use inline variables from C++17 instead
# Naming conventions