-
Hi, I would like to know if it is possible to use CodeChecker for Visual Studio solutions too? ^^^ Or maybe it could be possible to provide a folder to scan for .hpp/.cpp files to check? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, CodeChecker depens on a JSON Compilation Database to run the analysis. If your build system can create a compile command database CodeChecker should be able to use it. 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. I'm not sure if there is a built-in feature in Visual Studio to get the compilation command database. |
Beta Was this translation helpful? Give feedback.
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.