| 1102 | } |
| 1103 | |
| 1104 | std::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 | |
| 1122 | void cmFastbuildNormalTargetGenerator::ComputeCompilerAndOptions( |
| 1123 | std::string const& compilerOptions, std::string const& staticCheckOptions, |
nothing calls this directly
no test coverage detected