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

Method PushFunctionScope

Source/cmMakefile.cxx:1443–1459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1441}
1442
1443void cmMakefile::PushFunctionScope(std::string const& fileName,
1444 cmPolicies::PolicyMap const& pm)
1445{
1446 this->StateSnapshot = this->GetState()->CreateFunctionCallSnapshot(
1447 this->StateSnapshot, fileName);
1448 assert(this->StateSnapshot.IsValid());
1449
1450 this->PushLoopBlockBarrier();
1451
1452#if !defined(CMAKE_BOOTSTRAP)
1453 this->GetGlobalGenerator()->GetFileLockPool().PushFunctionScope();
1454#endif
1455
1456 this->PushFunctionBlockerBarrier();
1457
1458 this->PushPolicy(true, pm);
1459}
1460
1461void cmMakefile::PopFunctionScope(bool reportError)
1462{

Callers 2

PushScopeMethod · 0.45
FunctionPushPopMethod · 0.45

Calls 7

GetStateMethod · 0.95
PushLoopBlockBarrierMethod · 0.95
GetGlobalGeneratorMethod · 0.95
PushPolicyMethod · 0.95
IsValidMethod · 0.45

Tested by

no test coverage detected