CppCheck progress

General questions regarding the usage of CodeLite
marfi
CodeLite Expert
Posts: 159
Joined: Mon Nov 03, 2008 9:17 pm
Contact:

CppCheck progress

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CppCheck progress

Post 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
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread
marfi
CodeLite Expert
Posts: 159
Joined: Mon Nov 03, 2008 9:17 pm
Contact:

Re: CppCheck progress

Post 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
rekisum
CodeLite Enthusiast
Posts: 27
Joined: Fri Apr 24, 2009 6:49 pm
Contact:

Re: CppCheck progress

Post 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.
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: CppCheck progress

Post 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.
Jérémie
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CppCheck progress

Post 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
Make sure you have read the HOW TO POST thread
rekisum
CodeLite Enthusiast
Posts: 27
Joined: Fri Apr 24, 2009 6:49 pm
Contact:

Re: CppCheck progress

Post 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
Post Reply