• Home
  • Raw
  • Download

Lines Matching full:path

34 Hash& Hash::getMutableHash(const std::string& path) {  in getMutableHash()  argument
37 auto it = hashes.find(path); in getMutableHash()
39 if (hashes.find(path) == hashes.end()) { in getMutableHash()
40 it = hashes.insert(it, {path, Hash(path)}); in getMutableHash()
46 const Hash& Hash::getHash(const std::string& path) { in getHash() argument
47 return getMutableHash(path); in getHash()
50 void Hash::clearHash(const std::string& path) { in clearHash() argument
51 getMutableHash(path).mHash = kEmptyHash; in clearHash()
54 static std::vector<uint8_t> sha256File(const std::string& path) { in sha256File() argument
55 std::ifstream stream(path); in sha256File()
67 Hash::Hash(const std::string& path) : mPath(path), mHash(sha256File(path)) {} in Hash() argument
90 static const HashFile* parse(const std::string& path, std::string* err) { in parse()
92 auto it = hashfiles.find(path); in parse()
95 it = hashfiles.insert(it, {path, readHashFile(path, err)}); in parse()
112 static HashFile* readHashFile(const std::string& path, std::string* err) { in readHashFile()
113 std::ifstream stream(path); in readHashFile()
119 file->path = path; in readHashFile()
127 *err = "Error reading line from " + path + ": " + line; in readHashFile()
142 *err = "Hash or fqName empty on " + path + ": " + line; in readHashFile()
152 std::string path; member
156 std::vector<std::string> Hash::lookupHash(const std::string& path, const std::string& interfaceName, in lookupHash() argument
159 const HashFile* file = HashFile::parse(path, err); in lookupHash()