MCPcopy Create free account
hub / github.com/Snapchat/Valdi / FindFileByName

Method FindFileByName

valdi_protobuf/src/valdi_protobuf/DescriptorDatabase.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool DescriptorDatabase::FindFileByName(const std::string& filename, google::protobuf::FileDescriptorProto* output) {
78 const auto& it = _fileIndexByName.find(filename);
79 if (it == _fileIndexByName.end()) {
80 return false;
81 }
82 return copyProtoOfFile(it->second, output);
83}
84
85bool DescriptorDatabase::FindFileContainingSymbol(const std::string& symbolName,
86 google::protobuf::FileDescriptorProto* output) {

Callers 1

TESTFunction · 0.80

Calls 2

endMethod · 0.65
findMethod · 0.45

Tested by 1

TESTFunction · 0.64