Hi!
I'm using Fedora 17 and I've installed codeblocks with plugins from my repo (it is 10.05 version).
When I'm trying to run cppcheck plugin I get error in console:
cppcheck --version
Cppcheck 1.57
cppcheck --verbose --all --style --xml --file-list=CppCheckInput.txt
cppcheck: error: unrecognized command line option: "--all".
Failed to parse cppcheck XML file.
Probably it's not produced correctly.
Is it a bug?
Thank you, I've installed the newest version from trunk and these errors are gone, but there is other poblem.
When I input a sample (wrong code like this):
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!"s22 << endl
dsad()
return 0;
}
and click plugins->cppcheck i get the output:
cppcheck --version
Cppcheck 1.57
Switching working directory to : /home/[username]/dev/test/
cppcheck --verbose --enable=all --enable=style --xml --file-list=CppCheckInput.txt
Checking main.cpp...
Checking usage of global functions..
<?xml version="1.0" encoding="UTF-8"?>
<results>
</results>
And nothing happens - no lines are underscored I see no notifications etc - how can I make this plugin running? :(
Additionl, cppcheck for following code does not return any errors also:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl
int* x = new int;
return 0;
}
::)