I'm on Windows. I would like to use parameter paths relative to my project.
"cppcheck-official.arguments": "--platform=./CppCheck/platform.xml"
I understand this doesn't work. I then tried running a script to generate parameters
"cppcheck-official.arguments": "@(./CppCheck/plugin_arguments.cmd)"
but I can't get this script to run, even when using an absolute path.
I also tried with a wrapper to cppcheck itself
"cppcheck-official.path": "./CppCheck/plugin_wrapper.cmd"
@echo off
REM Find project root (parent of this script directory)
set ROOT="%~dp0\.."
echo -- >>%ROOT%\args
echo %* >>%ROOT%\args
REM Run cppcheck with all passed arguments
"C:\Program Files\CppCheck Premium\cppcheck.exe" %*
The script is invoked once with the parameter "--version", then silence.
Any ideas?
I'm on Windows. I would like to use parameter paths relative to my project.
"cppcheck-official.arguments": "--platform=./CppCheck/platform.xml"I understand this doesn't work. I then tried running a script to generate parameters
"cppcheck-official.arguments": "@(./CppCheck/plugin_arguments.cmd)"but I can't get this script to run, even when using an absolute path.
I also tried with a wrapper to cppcheck itself
"cppcheck-official.path": "./CppCheck/plugin_wrapper.cmd"The script is invoked once with the parameter "--version", then silence.
Any ideas?