954,141 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Tool Needed

Hello,

Is there any tool which will detect the unused methods of a class in a C++ project? So by using this tool I can reduce my build size by eliminating the un used methods.

vivekgalatage
Newbie Poster
6 posts since Aug 2004
Reputation Points: 12
Solved Threads: 0
 

> Is there any tool which will detect the unused methods of a class in a C++ project?

PC-lint ?

Dave Sinkula
long time no c
Team Colleague
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
 

The linker can remove unreferenced functions too. In VC, under Project Settings/"c/c++"/Customize there's a checkbox called "Enable function-level linking."

Check it, and unreferenced functions can go away.

Chainsaw
Posting Pro in Training
436 posts since Jun 2004
Reputation Points: 36
Solved Threads: 11
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You