Lines Matching refs:path
33 Hash& Hash::getMutableHash(const std::string& path) { in getMutableHash() argument
36 auto it = hashes.find(path); in getMutableHash()
38 if (hashes.find(path) == hashes.end()) { in getMutableHash()
39 it = hashes.insert(it, {path, Hash(path)}); in getMutableHash()
45 const Hash& Hash::getHash(const std::string& path) { in getHash() argument
46 return getMutableHash(path); in getHash()
49 void Hash::clearHash(const std::string& path) { in clearHash() argument
50 getMutableHash(path).mHash = kEmptyHash; in clearHash()
53 static std::vector<uint8_t> sha256File(const std::string& path) { in sha256File() argument
54 std::ifstream stream(path); in sha256File()
66 Hash::Hash(const std::string& path) : mPath(path), mHash(sha256File(path)) {} in Hash() argument
98 static const HashFile* parse(const std::string& path, std::string* err) { in parse()
100 auto it = hashfiles.find(path); in parse()
103 it = hashfiles.insert(it, {path, readHashFile(path, err)}); in parse()
120 static HashFile* readHashFile(const std::string& path, std::string* err) { in readHashFile()
121 std::ifstream stream(path); in readHashFile()
127 file->path = path; in readHashFile()
135 *err = "Error reading line from " + path + ": " + line; in readHashFile()
150 *err = "Hash or fqName empty on " + path + ": " + line; in readHashFile()
160 std::string path; member
164 std::vector<std::string> Hash::lookupHash(const std::string& path, const std::string& interfaceName, in lookupHash() argument
167 const HashFile* file = HashFile::parse(path, err); in lookupHash()