I set it with the following commandline option: --platform=platform_msp430_eabi_large_datamodel.xml
But for every file that cppcheck 1.77 processes it prints "Platform:win64" (older versions did the same)
Now i'm not sure if the correct platform is set or if the default (Host) platform is set (which would be win64).
cppcheck doesn't report any error/warning about my platform file, so i would expect that it uses it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But for every file that cppcheck 1.77 processes it prints "Platform:win64" (older versions did the same)
Then it sounds to me that win64 is used instead of your xml file.
For some reason your --platform seems to be overriden. What cppcheck flags do you use? My first guess is that you use --project to analyse a VS project.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have created a custom platform file for my MSP430 projects:
platform_msp430_eabi_large_datamodel.xml:
I set it with the following commandline option:
--platform=platform_msp430_eabi_large_datamodel.xml
But for every file that cppcheck 1.77 processes it prints "Platform:win64" (older versions did the same)
Now i'm not sure if the correct platform is set or if the default (Host) platform is set (which would be win64).
cppcheck doesn't report any error/warning about my platform file, so i would expect that it uses it.
Then it sounds to me that win64 is used instead of your xml file.
For some reason your --platform seems to be overriden. What cppcheck flags do you use? My first guess is that you use --project to analyse a VS project.
I'm not using --project. Here is my commandline that is run from a windows batch file:
I've reduced the commandline to the following and still the wrong platform is used (or at least cppcheck reports the wrong platform):
Last edit: versat 2017-01-11