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

Method ReadDependentFile

Source/cmMakefile.cxx:668–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668bool cmMakefile::ReadDependentFile(std::string const& filename,
669 bool noPolicyScope)
670{
671 std::string filenametoread = cmSystemTools::CollapseFullPath(
672 filename, this->GetCurrentSourceDirectory());
673
674 IncludeScope incScope(this, filenametoread, noPolicyScope);
675
676#ifdef CMake_ENABLE_DEBUGGER
677 if (this->GetCMakeInstance()->GetDebugAdapter()) {
678 this->GetCMakeInstance()->GetDebugAdapter()->OnBeginFileParse(
679 this, filenametoread);
680 }
681#endif
682
683 cmListFile listFile;
684 if (!listFile.ParseFile(filenametoread.c_str(), this->GetMessenger(),
685 this->Backtrace)) {
686#ifdef CMake_ENABLE_DEBUGGER
687 if (this->GetCMakeInstance()->GetDebugAdapter()) {
688 this->GetCMakeInstance()->GetDebugAdapter()->OnEndFileParse();
689 }
690#endif
691
692 return false;
693 }
694
695#ifdef CMake_ENABLE_DEBUGGER
696 if (this->GetCMakeInstance()->GetDebugAdapter()) {
697 this->GetCMakeInstance()->GetDebugAdapter()->OnEndFileParse();
698 this->GetCMakeInstance()->GetDebugAdapter()->OnFileParsedSuccessfully(
699 filenametoread, listFile.Functions);
700 }
701#endif
702
703 this->RunListFile(listFile, filenametoread);
704 if (cmSystemTools::GetFatalErrorOccurred()) {
705 incScope.Quiet();
706 }
707 return true;
708}
709
710class cmMakefile::ListFileScope : public FileScopeBase
711{

Callers 5

ReadListFileMethod · 0.80
IncludeByVariableFunction · 0.80
cmIncludeCommandFunction · 0.80
ReadSubdirectoryFunction · 0.80
InitialPassMethod · 0.80

Calls 10

GetCMakeInstanceMethod · 0.95
GetMessengerMethod · 0.95
RunListFileMethod · 0.95
GetDebugAdapterMethod · 0.80
OnBeginFileParseMethod · 0.80
c_strMethod · 0.80
OnEndFileParseMethod · 0.80
ParseFileMethod · 0.45
QuietMethod · 0.45

Tested by 2

ReadSubdirectoryFunction · 0.64
InitialPassMethod · 0.64