Menu

Support compile_commands.json generated by Clang Power Tool

2022-10-18
2022-10-19
  • Charles-the-intern

    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!

     
  • Daniel Marjamäki

    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

     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.