jbenden / vscode-c-cpp-flylint

A VS Code extension for advanced, modern, static analysis of C/C++ that supports a number of back-end analyzer programs.
MIT License
152 stars 29 forks source link

c-cpp-flylint.cppcheck.extraArgs are not working and missing variable substitution #210

Closed daniel-brosche closed 3 months ago

daniel-brosche commented 9 months ago

I have tried to forwad some extra args to cppcheck like:

"c-cpp-flylint.cppcheck.extraArgs": ["--cppcheck-build-dir", "${workspaceFolder}/opc_ua_cxxx_workspace/build"],

but this caused this error

'cppcheck: error: unrecognized command line option: "--cppcheck-build-dir".',

I have noticed that = is missing so that cppcheck can interpret the extra args safely, like that:

"c-cpp-flylint.cppcheck.extraArgs": ["--cppcheck-build-dir=", "${workspaceFolder}/opc_ua_cxxx_workspace/build"],

Further more I have noticed that variable substitution is also not working. At least the support of workspaceFolderis highly demandable.

It seems also that configFile options is also not working properly.