Author Topic: Static code analysis? Cppcheck?  (Read 6334 times)

Offline blablub

  • Single posting newcomer
  • *
  • Posts: 3
Static code analysis? Cppcheck?
« on: March 29, 2011, 08:03:31 pm »
The cppcheck website tells me that it is included with Code::Blocks. How/Where can I use/find it? I can't find it in any menu. Or should it work automatically in the background? If so, then it does not what I expect. When running the original cppcheck from their website I get a lot of advices on improving my code that C::B isn't advicing to me.

Thanks.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Static code analysis? Cppcheck?
« Reply #1 on: March 29, 2011, 08:33:36 pm »
Plugins menu -> CppCheck

What version of CB are you using ?

Offline blablub

  • Single posting newcomer
  • *
  • Posts: 3
Re: Static code analysis? Cppcheck?
« Reply #2 on: March 29, 2011, 09:04:22 pm »
C::B 10.05

My plugins menu is almost empty. It has only "Source code formatter (AStyle)" and "Windows XP Look'n'Feel".
« Last Edit: March 29, 2011, 09:20:09 pm by blablub »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Static code analysis? Cppcheck?
« Reply #3 on: March 29, 2011, 09:19:31 pm »
Reinstall and enable all the contrib plugins in the installer...
(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!]

Offline blablub

  • Single posting newcomer
  • *
  • Posts: 3
Re: Static code analysis? Cppcheck?
« Reply #4 on: March 29, 2011, 09:20:43 pm »
Yeah, just found this out myself...

I think there should be a way to install the basic plugins later on, if you realise after installing that you need them.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Static code analysis? Cppcheck?
« Reply #5 on: March 29, 2011, 09:31:02 pm »
I think there should be a way to install the basic plugins later on, if you realise after installing that you need them.
As you've seen you can do it :)
C::B is not as big as VStudio, so a full reinstall is OK for now :)
(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!]