How to Generate a list of unused procedures and functions

General questions regarding the usage of CodeLite
User avatar
ColleenKobe
CodeLite Expert
Posts: 129
Joined: Wed Mar 30, 2016 4:31 pm
Genuine User: Yes
IDE Question: C++
Contact:

How to Generate a list of unused procedures and functions

Post by ColleenKobe »

Hi. I have a workspace with roughly 1,710 procedures and functions. I need to remove any procedures or functions that are never called.

Is there a way I can build my workspace with CodeLite and have it generate a list of procedures or functions that are never called?
If so, where would I look for examples how to do that?

Thank you!

Colleen

User avatar
Jarod42
CodeLite Expert
Posts: 237
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: How to Generate a list of unused procedures and functions

Post by Jarod42 »

I don't think there is something in Codelite for that.
Maybe info can be retrieve with ctags or similar, but I don't think there is a builtin for that.

I worked on ccccc to collect metrics about a project and it should collect how many time each function is called/used.
But It is not production ready yet :-(

User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to Generate a list of unused procedures and functions

Post by eranif »

Your best bet is to try one of clang's tools

Make sure you have read the HOW TO POST thread
Post Reply