cppcheclipse icon indicating copy to clipboard operation
cppcheclipse copied to clipboard

No longer compatible with cppcheck - Not possible to add switch '--platform' to invocation of cppcheck

Open thomasarnbjerg opened this issue 1 year ago • 2 comments

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.

thomasarnbjerg avatar May 24 '23 12:05 thomasarnbjerg

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

unoriginalxx avatar May 31 '23 05:05 unoriginalxx

Works with cppcheck2.9.

thomasarnbjerg avatar Jun 15 '23 13:06 thomasarnbjerg