MCPcopy Create free account
hub / github.com/Kitware/CMake / ComputeCodeCheckOptions

Method ComputeCodeCheckOptions

Source/cmFastbuildNormalTargetGenerator.cxx:1104–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1102}
1103
1104std::string cmFastbuildNormalTargetGenerator::ComputeCodeCheckOptions(
1105 cmSourceFile const& srcFile)
1106{
1107 cmValue const srcSkipCodeCheckVal = srcFile.GetProperty("SKIP_LINTING");
1108 bool const skipCodeCheck = srcSkipCodeCheckVal.IsSet()
1109 ? srcSkipCodeCheckVal.IsOn()
1110 : this->GetGeneratorTarget()->GetPropertyAsBool("SKIP_LINTING");
1111
1112 if (skipCodeCheck) {
1113 return {};
1114 }
1115 std::string compilerLauncher;
1116 std::string staticCheckRule = this->GenerateCodeCheckRules(
1117 srcFile, compilerLauncher, "", Config, nullptr);
1118 LogMessage(cmStrCat("CodeCheck: ", staticCheckRule));
1119 return staticCheckRule;
1120}
1121
1122void cmFastbuildNormalTargetGenerator::ComputeCompilerAndOptions(
1123 std::string const& compilerOptions, std::string const& staticCheckOptions,

Callers

nothing calls this directly

Calls 7

cmStrCatFunction · 0.70
GetPropertyMethod · 0.45
IsSetMethod · 0.45
IsOnMethod · 0.45
GetPropertyAsBoolMethod · 0.45
GetGeneratorTargetMethod · 0.45

Tested by

no test coverage detected