| 24 | } |
| 25 | |
| 26 | bool ProtobufDescriptor::addField(const Type &InputType, |
| 27 | const std::string &FieldName) { |
| 28 | if (!util::isValidIdentifier(FieldName)) { |
| 29 | return false; |
| 30 | } |
| 31 | return addFieldToDescriptor(FuzzInputDescriptor, FieldName, InputType); |
| 32 | } |
| 33 | |
| 34 | void ProtobufDescriptor::genProtoFile(const std::string &OutDir) const { |
| 35 | google::protobuf::DescriptorPool DescriptorPool; |