CppCheck

Discuss anything related to product development
Post Reply
seasoned_geek
Posts: 257
Joined: Thu Jun 11 2020 12:18 pm

CppCheck

Post by seasoned_geek »

All,

RedDiamond is coming along far enough that I decided to integrate CppCheck as part of the build. Once I gave it the path to CopperSpice so it could find the include files, there was a lot of stuff like this popping up.

Code: Select all

/usr/include/copperspice/QtCore/csobject_macro.h:86:28: warning: The class 'cs_number < 166 >' defines member variable with name 'value' also defined in its parent class 'cs_number < 161 >'. [duplInheritedMember]
      static constexpr int value = N;
                           ^
/usr/include/copperspice/QtCore/csobject_macro.h:86:28: note: Parent variable 'cs_number < 161 >::value'
      static constexpr int value = N;
                           ^
/usr/include/copperspice/QtCore/csobject_macro.h:86:28: note: Derived variable 'cs_number < 166 >::value'
      static constexpr int value = N;
Posting because CopperSpice is far enough along that it should be focusing on a clean CppCheck. The tool is free and not bad.
Post Reply