MCPcopy Create free account
hub / github.com/Samsung/UTopia / addField

Method addField

lib/generation/ProtobufDescriptor.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26bool 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
34void ProtobufDescriptor::genProtoFile(const std::string &OutDir) const {
35 google::protobuf::DescriptorPool DescriptorPool;

Callers 2

addInputMethod · 0.80
TEST_FFunction · 0.80

Calls 1

isValidIdentifierFunction · 0.85

Tested by 1

TEST_FFunction · 0.64