ignore clang-tidy for IntNode in gtest_coordination

This commit is contained in:
JackyWoo 2021-11-18 21:27:43 +08:00
parent afd8a321b4
commit 0d19f2a485

View File

@ -832,14 +832,7 @@ TEST_P(CoordinationTest, ChangelogTestLostFiles)
struct IntNode struct IntNode
{ {
int value; int value;
#ifdef __clang__ IntNode(int value_) : value(value_) { } // NOLINT(google-explicit-constructor)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgoogle-explicit-constructor"
#endif
IntNode(int value_) : value(value_) { }
#ifdef __clang__
#pragma clang diagnostic pop
#endif
UInt64 sizeInBytes() const { return sizeof value; } UInt64 sizeInBytes() const { return sizeof value; }
IntNode & operator=(int rhs) IntNode & operator=(int rhs)
{ {