Skip to content

Visual Studio compatibility? #3208

Answered by gyorb
Gibson85 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

CodeChecker depens on a JSON Compilation Database to run the analysis.
The check example executes the compilation, collects the compile commands and runs the analysis.

If your build system can create a compile command database CodeChecker should be able to use it.
cmake can export the compilation commands like this: cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

I do not know if it is possible to get/export the compilation commands from Visual Studio somehow.

I found an extension by sourcetrail but I never tried it.
It is open source and developed here on github.

I'm not sure if there is a built-in feature in Visual Studio to get the compilation command database.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by csordasmarton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2514 on February 23, 2021 12:37.