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

Method IsNormalDefinitionSet

Source/cmMakefile.cxx:2376–2388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2374}
2375
2376bool cmMakefile::IsNormalDefinitionSet(std::string const& name) const
2377{
2378 cmValue def = this->StateSnapshot.GetDefinition(name);
2379#ifndef CMAKE_BOOTSTRAP
2380 if (cmVariableWatch* vv = this->GetVariableWatch()) {
2381 if (!def) {
2382 vv->VariableAccessed(
2383 name, cmVariableWatch::UNKNOWN_VARIABLE_DEFINED_ACCESS, nullptr, this);
2384 }
2385 }
2386#endif
2387 return def != nullptr;
2388}
2389
2390cmValue cmMakefile::GetDefinition(std::string const& name) const
2391{

Callers 9

AddCacheDefinitionMethod · 0.95
RaiseScopeMethod · 0.95
ReplayItemsMethod · 0.80
ReplayZipListsMethod · 0.80
cmEnableLanguageCommandFunction · 0.80
cmProjectCommandFunction · 0.80
NormalizeFindResultMethod · 0.80
StoreFindResultMethod · 0.80

Calls 3

GetVariableWatchMethod · 0.95
VariableAccessedMethod · 0.80
GetDefinitionMethod · 0.45

Tested by

no test coverage detected