mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-12 23:43:59 +03:00
cmMakefile: Inline PushScope into PushFunctionScope.
Make it possible to group the various methods here a different way.
This commit is contained in:
1 parent
ca140c2e89
commit
db74ce5820
1 file changed
+16
-2
+16
-2
@@ -1564,7 +1564,13 @@ void cmMakefile::InitializeFromParent()
|
||||
|
||||
void cmMakefile::PushFunctionScope(const cmPolicies::PolicyMap& pm)
|
||||
{
|
||||
this->PushScope();
|
||||
this->Internal->PushDefinitions();
|
||||
|
||||
this->PushLoopBlockBarrier();
|
||||
|
||||
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
||||
this->GetGlobalGenerator()->GetFileLockPool().PushFunctionScope();
|
||||
#endif
|
||||
|
||||
this->PushFunctionBlockerBarrier();
|
||||
|
||||
@@ -1579,7 +1585,15 @@ void cmMakefile::PopFunctionScope(bool reportError)
|
||||
|
||||
this->PopFunctionBlockerBarrier(reportError);
|
||||
|
||||
this->PopScope();
|
||||
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
||||
this->GetGlobalGenerator()->GetFileLockPool().PopFunctionScope();
|
||||
#endif
|
||||
|
||||
this->PopLoopBlockBarrier();
|
||||
|
||||
this->CheckForUnusedVariables();
|
||||
|
||||
this->Internal->PopDefinitions();
|
||||
}
|
||||
|
||||
void cmMakefile::PushMacroScope(const cmPolicies::PolicyMap& pm)
|
||||
|
||||
Reference in new issue
Block a user