Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

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

Open
thomasarnbjerg opened this issue May 24, 2023 · 2 comments

Comments

@thomasarnbjerg
Copy link

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.

@unoriginalxx
Copy link

unoriginalxx commented May 31, 2023

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

@thomasarnbjerg
Copy link
Author

Works with cppcheck2.9.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants