@@ -1596,6 +1596,7 @@ class PCM_API PCM
15961596 typedef std::pair<std::shared_ptr<MMIORange>, uint32> MMIORegisterEncoding; // MMIORange shared ptr, offset
15971597 struct MMIORegisterEncodingHash : public PCICFGRegisterEncodingHash
15981598 {
1599+ // cppcheck-suppress duplInheritedMember
15991600 std::size_t operator ()(const RawEventEncoding& e) const
16001601 {
16011602 std::size_t h4 = std::hash<uint64>{}(e[MMIOEventPosition::membar_bits1]);
@@ -1605,6 +1606,7 @@ class PCM_API PCM
16051606 };
16061607 struct MMIORegisterEncodingCmp : public PCICFGRegisterEncodingCmp
16071608 {
1609+ // cppcheck-suppress duplInheritedMember
16081610 bool operator ()(const RawEventEncoding& a, const RawEventEncoding& b) const
16091611 {
16101612 return PCICFGRegisterEncodingCmp::operator ()(a,b)
@@ -3927,20 +3929,23 @@ class SocketCounterState : public BasicCounterState, public UncoreCounterState
39273929 friend class PCM ;
39283930
39293931protected:
3932+ // cppcheck-suppress duplInheritedMember
39303933 void readAndAggregate (std::shared_ptr<SafeMsrHandle> handle)
39313934 {
39323935 BasicCounterState::readAndAggregate (handle);
39333936 UncoreCounterState::readAndAggregate (handle);
39343937 }
39353938
39363939public:
3940+ // cppcheck-suppress duplInheritedMember
39373941 SocketCounterState& operator += ( const BasicCounterState& ccs )
39383942 {
39393943 BasicCounterState::operator += ( ccs );
39403944
39413945 return *this ;
39423946 }
39433947
3948+ // cppcheck-suppress duplInheritedMember
39443949 SocketCounterState& operator += ( const UncoreCounterState& ucs )
39453950 {
39463951 UncoreCounterState::operator += ( ucs );
@@ -3953,6 +3958,7 @@ class SocketCounterState : public BasicCounterState, public UncoreCounterState
39533958 SocketCounterState ( SocketCounterState&& ) = default ;
39543959 SocketCounterState & operator = ( SocketCounterState&& ) = default ;
39553960
3961+ // cppcheck-suppress duplInheritedMember
39563962 SocketCounterState & operator = ( UncoreCounterState&& ucs ) {
39573963 UncoreCounterState::operator = ( std::move (ucs) );
39583964 return *this ;
@@ -3983,6 +3989,7 @@ class SystemCounterState : public SocketCounterState
39833989 std::unordered_map<PCM::RawEventEncoding, std::vector<uint64>, PCM::PMTRegisterEncodingHash2> PMTValues{};
39843990
39853991protected:
3992+ // cppcheck-suppress duplInheritedMember
39863993 void readAndAggregate (std::shared_ptr<SafeMsrHandle> handle)
39873994 {
39883995 BasicCounterState::readAndAggregate (handle);
@@ -4022,6 +4029,7 @@ class SystemCounterState : public SocketCounterState
40224029 SystemCounterState ( SystemCounterState&& ) = default ;
40234030 SystemCounterState & operator = ( SystemCounterState&& ) = default ;
40244031
4032+ // cppcheck-suppress duplInheritedMember
40254033 SystemCounterState & operator += ( const SocketCounterState& scs )
40264034 {
40274035 BasicCounterState::operator += ( scs );
@@ -4030,6 +4038,7 @@ class SystemCounterState : public SocketCounterState
40304038 return *this ;
40314039 }
40324040
4041+ // cppcheck-suppress duplInheritedMember
40334042 SystemCounterState & operator += ( const UncoreCounterState& ucs )
40344043 {
40354044 UncoreCounterState::operator += ( ucs );
0 commit comments