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

Method Detach

Source/cmMakefile.cxx:453–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453cmMakefile* cmMakefile::CallRAII::Detach()
454{
455 assert(this->Makefile);
456
457 this->Makefile->ExecutionStatusStack.pop_back();
458 --this->Makefile->RecursionDepth;
459 this->Makefile->Backtrace = this->Makefile->Backtrace.Pop();
460
461 auto* const mf = this->Makefile;
462 this->Makefile = nullptr;
463 return mf;
464}
465
466// Helper class to make sure the call stack is valid.
467class cmMakefile::CallScope : public CallRAII

Callers 2

~CallRAIIMethod · 0.95
~CallScopeMethod · 0.80

Calls 2

pop_backMethod · 0.80
PopMethod · 0.45

Tested by

no test coverage detected