Y
Yelnats321
Guest
I am working on a project that uses cmake. It builds a number of external libraries, some of which have to be built (unfortunately using target_include_directories) and some of which are header only. I would like to run the full set of core guidelines checkers against only the code that I have written.
First of all, I am unsure on how to set a ruleset to be used. I couldn't figure out what the default rule set is.
Secondly, I would like to exclude all files located in the external/ directory. This is the directory in which external files live.
My CMakeSettings.json currently has this entry, which was automatically generated.
{
"name": "vs-analyze",
"generator": "Ninja",
"configurationType": "Debug",
"inheritEnvironments": [ "msvc_x64_x64" ],
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}",
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
"cmakeCommandArgs": "-DCMAKE_CXX_FLAGS=\"/analyze /analyzelugin EspXEngine.dll /EHsc\"",
"buildCommandArgs": "-v",
"ctestCommandArgs": "",
"environments": [
{
"esp.extensions": "cppcorecheck.dll",
"esp.annotationbuildlevel": "ignore",
"caexcludepath": "${env.INCLUDE}"
}
]
}
Continue reading...
First of all, I am unsure on how to set a ruleset to be used. I couldn't figure out what the default rule set is.
Secondly, I would like to exclude all files located in the external/ directory. This is the directory in which external files live.
My CMakeSettings.json currently has this entry, which was automatically generated.
{
"name": "vs-analyze",
"generator": "Ninja",
"configurationType": "Debug",
"inheritEnvironments": [ "msvc_x64_x64" ],
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}",
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
"cmakeCommandArgs": "-DCMAKE_CXX_FLAGS=\"/analyze /analyzelugin EspXEngine.dll /EHsc\"",
"buildCommandArgs": "-v",
"ctestCommandArgs": "",
"environments": [
{
"esp.extensions": "cppcorecheck.dll",
"esp.annotationbuildlevel": "ignore",
"caexcludepath": "${env.INCLUDE}"
}
]
}
Continue reading...