Page 1 of 1

CppCheck progress

Posted: Tue Sep 22, 2009 11:11 am
by marfi
Hi guys,
It looks like the CppCheck plugin is nearly (completely) done. Great work! I have one question: Is it already available on Linux as well? I tried to run it via Explorer panel but nothing happened. Must I install also cppckeck utility on my system (Ubuntu 8.04) to make it work or it isn't fully implemented on Linux yet?

Regards
Michal

Re: CppCheck progress

Posted: Tue Sep 22, 2009 11:56 am
by eranif
The current revision (3018) already contains a fully working Linux version of cppcheck.
You dont need to install anything

checkout the sources, run ./configure build and install

Eran

Re: CppCheck progress

Posted: Tue Sep 22, 2009 1:15 pm
by marfi
Hi,
CppCheck in rev 3018 seems to work, but I have two suggestions/reports: it would be fine to print some message in the CppCheck panel even if no problem is found, because now it is difficult to find out whether empty log means that there are no problems in the checked file or the cppcheck doesn't work... :) It is strange that in some cases the analysis of some file takes proximately 1min, but on other file with +/- the same length it quits in few secs without any output. Another problem is that the "Stop" button is always disabled. Nevertheless, the CppCheck plugin is really great! Thank you for it!

Regards
Michal

Re: CppCheck progress

Posted: Thu Sep 24, 2009 6:45 pm
by rekisum
Hi,

I do not know if CppCheck is working or not in Version 3034.
A second after starting, it is saying 'Processing D:\files\myfile.cpp' with a green background.
Does that mean it hangs with that file?
Or has my code no problems, which I doubt ;-)

btw: I'm missing a horizontal scrollbar in the Output View.
Don't know how many tabs are there and how to reach them.

Re: CppCheck progress

Posted: Thu Sep 24, 2009 7:23 pm
by jfouche
Hi

If the Stop button is enabled, that mean that cppchecker is actually running. If not, and nothing appear in the CppCheck output view, enjoy : you do not have errors ;)

For your 2nd question, you have a black arrow just under the 'O' of 'Output view'. Clic it and you will see all available panes.

Re: CppCheck progress

Posted: Thu Sep 24, 2009 7:36 pm
by eranif
rekisum wrote:A second after starting, it is saying 'Processing D:\files\myfile.cpp' with a green background.
If the width of the "green background" is equal to the width of the 'CppCheck' tab, then yes. It has done. In addition, the 'Stop' and 'Skip' buttons should be disabled for you.

The best way to test it, is try to write a simple code with memory leak, like this:

Code: Select all

void function()
{
char *name = new char[100];
strcpy(name, "hello world");
}
Paste this into your myfile.cpp, and see if you get memory leak error
It works for me on all OSs (Mac, Win & Linux)
Eran

Re: CppCheck progress

Posted: Fri Sep 25, 2009 11:40 am
by rekisum
Ah ok,
now I get the memory error, with purple background.
I would agree that a success message would be nice.
Or the output of CppCheck could be stored in a file?
Great option anyway.
And I found the arrow ;)
Thanks