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?

7 of 233 comments (clear)

  1. rm by Anonymous Coward · · Score: 4, Funny

    Who about "rm"?

    1. Re:rm by LifesABeach · · Score: 1, Funny

      My thoughts went to that energetic group that desire the H1B. Dangle one in front of the crowd and make your request.

    2. Re:rm by infernalC · · Score: 3, Funny

      -fr of course.

    3. Re:rm by fahrbot-bot · · Score: 4, Funny

      Who about "rm"?

      Ah yes. Every *nix programmer has, hopefully only once, experienced the joy of the following:

      % rm * .o
      .o: No such file or directory

      --
      It must have been something you assimilated. . . .
    4. Re:rm by jeffmeden · · Score: 1, Funny

      you mean you dont have `alias rm="rm -rf"` in your bash.rc file? Pansy.

  2. Easy by Anonymous Coward · · Score: 2, Funny

    cd Large_Cplusplus_project

    sudo rm -r *

    sudo apt-get install java

  3. Re:But are you lacking experience and the brain fo by I'm+New+Around+Here · · Score: 5, Funny

    Hey, MC Hammer built my house for me.

    Unfortunately, I'm not allowed to touch it.

    --
    If you think I voted for Trump because of this post, you're wrong. I voted for Dr. Jill Stein of the Green Party. Again.