cppcheclipse
cppcheclipse copied to clipboard
No longer compatible with cppcheck - Not possible to add switch '--platform' to invocation of cppcheck
If cppcheck is run without the 'platform' argument it will out the following as the first output, which breaks XML parsing:
'cppcheck: Windows 64-bit binaries currently default to the 'win64' platform. Starting with Cppcheck 2.13 they will default to 'native' instead. Please specify '--platform=win64' explicitly if you rely on this.'
As a result checks fail in Eclipse with the error 'Content is not allowed in prolog.'
A way to specify the platform argument needs to be added in order to use cppcheclipse in Eclipse.
Here is a bad solution to the issue. I added the flag '--platform=win64' and this is now at least running for me.
private static final String[] DEFAULT_ARGUMENTS = {"--xml-version=2", "--errorlist", "--platform=win64"};
Recompiled after some trouble with that.
Follow the guide by AntonKrug on installing by archive.
com.googlecode.cppcheclipse.repository-1.1.2.v20230531-0457.zip
Works with cppcheck2.9.