Ericsson / CodecheckerVSCodePlugin

VSCode plugin that shows bugs detected by the Clang Static Analyzer and Clang Tidy analyzers using CodeChecker as a backend.
Apache License 2.0
24 stars 7 forks source link

Configurable options for CodeChecker log command #38

Closed csordasmarton closed 2 years ago

csordasmarton commented 2 years ago

If no compilation database is found when the users opens a workspace this plugin will add an option to create it with the CodeChecker log command. The command what we provide for the user looks like this:

CodeChecker log --output $WORKSPACE_FOLDER/.codechecker/compile_commands.json --build "make"

The problem with this command is that it's not configurable. For example if the build command is not so simple the user always have to change this build command because the plugin will not remember to it.

To solve this problem I recommend to add an extra setting to make CodeChecker log command configurable. The default value can be --build "make".