Page 1 of 1
How to Generate a list of unused procedures and functions
Posted: Tue Jan 24, 2023 6:15 pm
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
Re: How to Generate a list of unused procedures and functions
Posted: Wed Jan 25, 2023 8:20 pm
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
Re: How to Generate a list of unused procedures and functions
Posted: Wed Feb 01, 2023 9:20 pm
by eranif
Your best bet is to try one of clang
's tools