Hello,
I use Clang Power Tool, a Visual Studio extension, to generate compile database (example attached below). Currently cppcheck 2.9 is having a few problems with this compile_commands.json file:
1. The extension generates the .json file in UTF8-BOM format and cppcheck, using picojson, doesn't recognize this. It's just a click away to change it to UTF-8, but maybe cppcheck can support this format or detail this issue in the manual?
2. Cannot parse the preprocessor definition -D in this .json file.
Hello,
I use Clang Power Tool, a Visual Studio extension, to generate compile database (example attached below). Currently cppcheck 2.9 is having a few problems with this compile_commands.json file:
1. The extension generates the .json file in UTF8-BOM format and cppcheck, using picojson, doesn't recognize this. It's just a click away to change it to UTF-8, but maybe cppcheck can support this format or detail this issue in the manual?
2. Cannot parse the preprocessor definition -D in this .json file.
Thank you!
Thanks!
I think it would be good to handle the Clang power tool output.
I have created this ticket:
https://trac.cppcheck.net/ticket/11356