Suppressing Undesired Diagnostics

Change-Id: Ifd0c096c0e2d62132b55b399ef90cc98fe3f8d03
Signed-off-by: Daria Hinz <daria.hinz@intel.com>
This commit is contained in:
Daria Hinz
2019-09-17 11:14:22 +02:00
committed by sys_ocldev
parent 2107af3a3b
commit 51e0c19f79

View File

@@ -111,7 +111,7 @@ TEST(unique_ptr_if_unused, IntializedWithoutCustomDeleterAtDestructionUsesDefaul
TEST(unique_ptr_if_unused, IntializedWithCustomDeleterAtDestructionUsesCustomDeleter) {
struct CustomDeleterTestStruct {
bool customDeleterWasCalled;
static void Delete(CustomDeleterTestStruct *ptr) {
static void Delete(CustomDeleterTestStruct *ptr) { // NOLINT(readability-identifier-naming)
ptr->customDeleterWasCalled = true;
}
} customDeleterObj;
@@ -130,7 +130,7 @@ TEST(unique_ptr_if_unused, IntializedWithDerivativeOfReferenceCounterAtDestructi
}
bool obtainedDeleterWasCalled;
static void Delete(ObtainedDeleterTestStruct *ptr) {
static void Delete(ObtainedDeleterTestStruct *ptr) { // NOLINT(readability-identifier-naming)
ptr->obtainedDeleterWasCalled = true;
}
} obtainedDeleterObj;