Results 1 to 3 of 3

Thread: Dead method and data identifier

  1. #1
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Dead method and data identifier

    Back in the day there used to be a commercial product (I believe it was called "The C/C++ Programmer's ToolBox" under DOS). It had a lot of useful stuff in it. As I recall, it used to have a coverage analyzer. You would add their header and library to your build, then execute your code. When it exited the library would continue to churn for some length of time and out would pop a list of every function/method executed along with every variable which was touched. The report was really useful when it came to identifying dead code and dead variables.

    I'm asking because I'm currently on a project which has, oh a three digit number of source and header files that have been generated by multiple people over the years this project carried on. It is all C++ and Qt. I would really like to find some form of that tool on Linux, preferrably open source, which could perform this same function. We have plenty of "college kids" to do the searches based upon the header files once we have the report.

    Has anybody found such a C++ Qt Linux tool?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Dead method and data identifier

    My reflex would have assume that this is being covered by valgrind, so I searched a bit. Maybe one of those will do what you need:
    http://www.brainmurders.eclipse.co.uk/covergrind.html
    http://benjamin-meyer.blogspot.co.at...rt-3-code.html

    Also, a lot of recent analysis tools are built upon LLVM, e.g. as plugins for clang. Might be worth researching into

    Cheers,
    _

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Dead method and data identifier

    Also look at gcov

Similar Threads

  1. Replies: 3
    Last Post: 19th April 2011, 10:27
  2. Exists any method to move data into STL::MAPS ???
    By tonnot in forum General Programming
    Replies: 2
    Last Post: 18th April 2011, 17:22
  3. Replies: 13
    Last Post: 6th December 2010, 04:41
  4. QThread Data Access Method
    By schan117 in forum Qt Programming
    Replies: 7
    Last Post: 18th August 2009, 06:25
  5. Replies: 0
    Last Post: 29th May 2009, 06:08

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.