Lines Matching refs:options

352         self.options = enum_options
417 if not self.options.long_names:
423 if self.options.enum_to_string:
429 if not self.options.enum_to_string:
1417 if self.desc.options.map_entry:
1676 if not enum.options.long_names:
1691 def generate_header(self, includes, headername, options): argument
1697 if options.notimestamp:
1711 yield options.libformat % ('pb.h')
1714 yield options.libformat
1722 yield options.genformat % incfile
1727 yield options.genformat % (noext + options.extension + options.header_extension)
1856 if options.cpp_descriptors:
1874 def generate_source(self, headername, options): argument
1878 if options.notimestamp:
1882 yield options.genformat % (headername)
1976 def get_nanopb_suboptions(subdesc, options, name): argument
1979 new_options.CopyFrom(options)
1986 for namemask, options in Globals.separate_options:
1989 new_options.MergeFrom(options)
1992 if isinstance(subdesc.options, descriptor.FieldOptions):
1994 elif isinstance(subdesc.options, descriptor.FileOptions):
1996 elif isinstance(subdesc.options, descriptor.MessageOptions):
1998 elif isinstance(subdesc.options, descriptor.EnumOptions):
2003 if subdesc.options.HasExtension(ext_type):
2004 ext = subdesc.options.Extensions[ext_type]
2073 def parse_file(filename, fdesc, options): argument
2076 for s in options.settings:
2086 optfilename = options.options_file % os.path.splitext(filename)[0]
2089 optfilename = options.options_file
2092 paths = ['.'] + options.options_path
2096 if options.verbose:
2104 if options.verbose or had_abspath:
2109 Globals.protoc_insertion_points = options.protoc_insertion_points
2118 def process_file(filename, fdesc, options, other_files = {}): argument
2131 f = parse_file(filename, fdesc, options)
2145 headername = noext + options.extension + options.header_extension
2146 sourcename = noext + options.extension + options.source_extension
2148 if options.strip_path:
2155 …excludes = ['nanopb.proto', 'google/protobuf/descriptor.proto'] + options.exclude + list(f.file_op…
2158 headerdata = ''.join(f.generate_header(includes, headerbasename, options))
2159 sourcedata = ''.join(f.generate_source(headerbasename, options))
2164 if options.error_on_unmatched:
2167 elif not options.quiet:
2180 options, filenames = optparser.parse_args()
2182 if options.version:
2190 if options.quiet:
2191 options.verbose = False
2193 if options.output_dir and not os.path.exists(options.output_dir):
2195 sys.stderr.write("\noutput_dir does not exist: %s\n" % options.output_dir)
2198 if options.verbose:
2205 include_path = ['-I%s' % p for p in options.options_path]
2223 other_files[fdesc.name] = parse_file(fdesc.name, fdesc, options)
2226 Globals.verbose_options = options.verbose
2228 results = process_file(fdesc.name, fdesc, options, other_files)
2230 base_dir = options.output_dir or ''
2236 if not options.quiet:
2290 options, dummy = optparser.parse_args(args)
2292 if options.version:
2296 Globals.verbose_options = options.verbose
2298 if options.verbose:
2309 options.options_path.append(os.path.dirname(request.file_to_generate[0]))
2315 other_files[fdesc.name] = parse_file(fdesc.name, fdesc, options)
2320 results = process_file(filename, fdesc, options, other_files)