cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

Rework compile_commands.json import

Open ludviggunne opened this issue 1 month ago • 2 comments

There has been multiple issues with the import lately, and (my) fixes have been a bit hacky. With this change, command is first split similarily to how the shell would, and is then handled like the arguments field. For extracting compiler options, the argument list is handled like the compiler would read argv. I believe this will be easier to maintain in the future.

ludviggunne avatar Dec 12 '25 12:12 ludviggunne

The clang-tidy warning seems to be a false positive, I have reported it here: https://github.com/llvm/llvm-project/issues/172018

chrchr-github avatar Dec 12 '25 15:12 chrchr-github