make a folder named sample containing the files to be checked
make a subfolder named cppcheck to save the helloworld.cppcheck
make build dir named build under sample for cmake and let cmake to generate a compile_commands.json
launch cppcheck-gui, create a new project, and import the compile_commands.json
I uploaded the sample.zip. Could you pls help take a look? Thanks!
Hi, this issue is 100% reproduced on my side. I am not sure if I did something wrong, as the steps are quite simple. The error message is as below.
Steps:
I uploaded the sample.zip. Could you pls help take a look? Thanks!
Known issue tracked in https://trac.cppcheck.net/ticket/13909.
Since the prerequisites have been merged I hope to finish https://github.com/danmar/cppcheck/pull/7570 later today, so it will hopefully be merged over the weekend.