News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Checking for unused code (such as #include files)

Started by daxm, January 13, 2011, 09:05:22 AM

Previous topic - Next topic

daxm

I'm new to Code::Blocks.  I skimmed the User Manual and didn't see anything that relates to checking for code that is unused/(unreachable) or for #include files that are not needed.  Does Code::Blocks have a "app" for these?

oBFusCATed

You can try the cppcheck plugin. It has some basic checks for unused/unreachable code, but don't expect miracles.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

Quote from: oBFusCATed on January 13, 2011, 09:16:01 AM
You can try the cppcheck plugin. It has some basic checks for unused/unreachable code, but don't expect miracles.


Butr be aware, that the cppcheck executable is not shipped with C::B, you have to download and install it seperately.
Make sure it is in your systempath if you are on windows.