mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-18 22:08:53 +08:00
Add rules for defining global constant variables to GUIDELINES.md
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
11c7b3bacc
commit
841e536bc2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user