GUIDELINES: add an explicit-this rule

Related-To: NEO-6789
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
Maciej Bielski 2022-03-15 15:53:55 +01:00 committed by Compute-Runtime-Automation
parent cd95572443
commit b7f516982b
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<!---
Copyright (C) 2018-2021 Intel Corporation
Copyright (C) 2018-2022 Intel Corporation
SPDX-License-Identifier: MIT
@ -18,6 +18,7 @@ File to cover guidelines for NEO project.
* avoid includes in headers unless absolutely necessary
* 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
# Naming conventions