Slashdot Mirror


Ask Slashdot: What Tools To Clean Up a Large C/C++ Project?

An anonymous reader writes I find myself in the uncomfortable position of having to clean up a relatively large C/C++ project. We are talking ~200 files, 11MB of source code, 220K lines of code. A superficial glance shows that there are a lot of functions that seem to be doing the same things, a lot of 'unused' stuff, and a lot of inconsistency between what is declared in .h files and what is implemented in the corresponding .cpp files. Are there any tools that will help me catalog this mess and make it easier for me to locate/erase unused things, clean up .h files, and find functions with similar names?

3 of 233 comments (clear)

  1. Hire me by ezakimak · · Score: 0, Offtopic

    I'm available to help.

  2. Re:rm by geantvert · · Score: 1, Offtopic

    Ok! But your object files were properly removed so the command was successful.

  3. Re:rm by nedlohs · · Score: 1, Offtopic

    There was always one student who when tarring up their code for submission for an assignment would leave off the tar file name:

    tar -cf *

    I hope that first file wasn't important :)

    Of course then they'd see there was no tar file when they tried to submit and would then run:

    tar -cf assignment.tar *

    Not noticing that that first file isn't what they thought it was anymore.