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

Method GetBmiFilePath

Source/cmNinjaTargetGenerator.cxx:430–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430std::string cmNinjaTargetGenerator::GetBmiFilePath(
431 cmSourceFile const* source, std::string const& config) const
432{
433 auto& importedConfigInfo = this->Configs.at(config).ImportedCxxModules;
434 if (!importedConfigInfo.Initialized()) {
435 std::string configUpper = cmSystemTools::UpperCase(config);
436 std::string propName = cmStrCat("IMPORTED_CXX_MODULES_", configUpper);
437 auto value = this->GeneratorTarget->GetSafeProperty(propName);
438 importedConfigInfo.Initialize(value);
439 }
440
441 std::string bmiName =
442 importedConfigInfo.BmiNameForSource(source->GetFullPath());
443
444 return cmStrCat(this->GetObjectFileDir(config), '/', bmiName);
445}
446
447std::string cmNinjaTargetGenerator::GetClangTidyReplacementsFilePath(
448 std::string const& directory, cmSourceFile const& source,

Callers 2

WriteTargetDependInfoMethod · 0.95

Calls 7

GetObjectFileDirMethod · 0.95
InitializedMethod · 0.80
BmiNameForSourceMethod · 0.80
cmStrCatFunction · 0.70
atMethod · 0.45
InitializeMethod · 0.45
GetFullPathMethod · 0.45

Tested by

no test coverage detected