Skip to content
Yiftah Waisman edited this page Oct 20, 2024 · 15 revisions

Info

Implementation Suggestion:

  • define the following entries in .vscode/settings.json:
    "C_Cpp.default.compileCommands": "${workspaceFolder}/build/merged_compile_commands.json", // already implemented
    "C_cpp.mergeCompileCommands": { // new
        "source": [
            "${workspaceFolder}/build/proj1/compile_commands.json",
            "${workspaceFolder}/build/proj2/compile_commands.json",
        ],
        "destination": "${workspaceFolder}/build/merged_compile_commands.json"
    },
  • "C_Cpp.default.compileCommands" can also be ignored and overridden to C_cpp.mergeCompileCommands.destination (not mandatory)

Why not use paths already defined in .vscode/c_cpp_properties.json configuratations?

  • fill me with data

Why glob patterns are not supported?

  • fill me with data
Clone this wiki locally