Searched refs:var_spec (Results 1 – 4 of 4) sorted by relevance
27 static VarInstance VarInstanceStubFromSpec(const VarSpec &var_spec) { in VarInstanceStubFromSpec() argument29 if (var_spec.has_type()) { in VarInstanceStubFromSpec()30 result.set_type(var_spec.type()); in VarInstanceStubFromSpec()32 cerr << "VarInstance with no type field: " << var_spec.DebugString(); in VarInstanceStubFromSpec()35 if (var_spec.has_name()) { in VarInstanceStubFromSpec()36 result.set_name(var_spec.name()); in VarInstanceStubFromSpec()38 if (var_spec.has_predefined_type()) { in VarInstanceStubFromSpec()39 result.set_predefined_type(var_spec.predefined_type()); in VarInstanceStubFromSpec()44 VarInstance ProtoFuzzerMutator::ArrayRandomGen(const VarSpec &var_spec) { in ArrayRandomGen() argument45 VarInstance result{VarInstanceStubFromSpec(var_spec)}; in ArrayRandomGen()[all …]
108 const TypeSpec &var_spec, in ExtractPredefinedTypesFromVar() argument110 predefined_types[var_spec.name()] = var_spec; in ExtractPredefinedTypesFromVar()112 for (const auto &sub_var_spec : var_spec.sub_struct()) { in ExtractPredefinedTypesFromVar()116 for (const auto &sub_var_spec : var_spec.sub_union()) { in ExtractPredefinedTypesFromVar()175 for (const auto &var_spec : comp_spec.attribute()) { in ExtractPredefinedTypes() local176 ExtractPredefinedTypesFromVar(var_spec, predefined_types); in ExtractPredefinedTypes()178 for (const auto &var_spec : comp_spec.interface().attribute()) { in ExtractPredefinedTypes() local179 ExtractPredefinedTypesFromVar(var_spec, predefined_types); in ExtractPredefinedTypes()
41 [](const VariableSpecificationMessage &var_spec) { in ProtoFuzzerMutator() argument42 return VariableSpecificationMessage{var_spec}; in ProtoFuzzerMutator()163 for (const auto &var_spec : func_spec.arg()) { in RandomGen() local164 VarInstance rand_var_spec = RandomGen(var_spec); in RandomGen()183 const VariableSpecificationMessage &var_spec, in Transform() argument185 auto type = var_spec.type(); in Transform()191 return transform_fn->second(var_spec); in Transform()194 VarInstance ProtoFuzzerMutator::RandomGen(const VarSpec &var_spec) { in RandomGen() argument195 return Transform(var_spec, random_gen_fns_); in RandomGen()
173 for (const auto &var_spec : func_spec.arg()) { in GetFuncArgTypes() local174 string type = GetCppVariableType(var_spec); in GetFuncArgTypes()175 types.emplace_back(GetCppVariableType(var_spec)); in GetFuncArgTypes()