GUIDELINES: add an explicit-this rule
Related-To: NEO-6789 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
parent
cd95572443
commit
b7f516982b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue