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

Method IsSystemIncludeDirectory

Source/cmGeneratorTarget.cxx:1266–1284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1264}
1265
1266bool cmGeneratorTarget::IsSystemIncludeDirectory(
1267 std::string const& dir, std::string const& config,
1268 std::string const& language) const
1269{
1270 std::string config_upper;
1271 if (!config.empty()) {
1272 config_upper = cmSystemTools::UpperCase(config);
1273 }
1274
1275 std::string key = cmStrCat(config_upper, '/', language);
1276 auto iter = this->SystemIncludesCache.find(key);
1277
1278 if (iter == this->SystemIncludesCache.end()) {
1279 this->AddSystemIncludeCacheKey(key, config, language);
1280 iter = this->SystemIncludesCache.find(key);
1281 }
1282
1283 return std::binary_search(iter->second.begin(), iter->second.end(), dir);
1284}
1285
1286bool cmGeneratorTarget::GetPropertyAsBool(std::string const& prop) const
1287{

Callers 8

CreateBuildSettingsMethod · 0.80
MoveSystemIncludesToEndFunction · 0.80
GetIncludeFlagsMethod · 0.80
GetFrameworkFlagsMethod · 0.80
GetXcFrameworkFlagsMethod · 0.80
ComputeClOptionsMethod · 0.80
ProcessLanguageMethod · 0.80
BuildCompileDataMethod · 0.80

Calls 6

cmStrCatFunction · 0.70
emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected