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

Method ReadFile

Source/cmQtAutoMocUic.cxx:975–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973}
974
975bool cmQtAutoMocUicT::JobParseT::ReadFile()
976{
977 // Clear old parse information
978 this->FileHandle->ParseData->Clear();
979 std::string const& fileName = this->FileHandle->FileName;
980 // Write info
981 if (this->Log().Verbose()) {
982 this->Log().Info(GenT::GEN,
983 cmStrCat("Parsing ", this->MessagePath(fileName)));
984 }
985 // Read file content
986 {
987 std::string error;
988 if (!cmQtAutoGenerator::FileRead(this->Content, fileName, &error)) {
989 this->LogError(GenT::GEN,
990 cmStrCat("Could not read ", this->MessagePath(fileName),
991 ".\n", error));
992 return false;
993 }
994 }
995 // Warn if empty
996 if (this->Content.empty()) {
997 this->Log().Warning(GenT::GEN,
998 cmStrCat(this->MessagePath(fileName), " is empty."));
999 return false;
1000 }
1001 return true;
1002}
1003
1004void cmQtAutoMocUicT::JobParseT::CreateKeys(
1005 std::vector<IncludeKeyT>& container, std::set<std::string> const& source,

Callers 1

ProcessMethod · 0.45

Calls 9

VerboseMethod · 0.80
InfoMethod · 0.80
WarningMethod · 0.80
cmStrCatFunction · 0.70
ClearMethod · 0.45
LogMethod · 0.45
MessagePathMethod · 0.45
LogErrorMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected