9

I'm looking for anything, like plugin to qt-creator to highlight unused/dead code in c++. Or maybe there is a standalone gui tool for this. I'm using cmake based project.

Thanks in advance!

asyrov
  • 376
  • 1
  • 3
  • 11
  • clang static analyzer can do dead code detection (although I don't know if it has any integration into Qt Creator. It is integrated into X-Code if you are able to use that; alternatively you can run it from the command line) – Jeremy Friesner Apr 22 '16 at 23:57
  • See also: http://stackoverflow.com/questions/4813947/how-can-i-know-which-parts-in-the-code-are-never-used – Jeremy Friesner Apr 22 '16 at 23:59

1 Answers1

0

You can use Coco. It is a tool developed by the Qt group.

Please see: https://www.qt.io/blog/quality-assurance/find-unused-functions-c-code-coverage

Adrian Mole
  • 49,934
  • 160
  • 51
  • 83