parameters: (command)
return_statement: return result
docstring: Prepare compiler flags (filters some and add others) and take out
      language (-x) and architecture (-arch) flags for future processing.
docstring_summary: Prepare compiler flags (filters some and add others) and take out
      language (-x) and architecture (-arch) flags for future processing.
docstring_tokens: Prepare compiler flags ( filters some and add others ) and take out language ( - x ) and architecture ( - arch ) flags for future processing .
function: def classify_parameters(command):
      """ Prepare compiler flags (filters some and add others) and take out
      language (-x) and architecture (-arch) flags for future processing. """
  
      result = {
          'flags': [],  # the filtered compiler flags
          'arch_list': [],  # list of architecture flags
          'language': None,  # compilation language, None, if not specified
          'compiler': compiler_language(command)  # 'c' or 'c++'
      }
  
      # iterate on the compile options
      args = iter(command[1:])
      for arg in args:
          # take arch flags into a separate basket
          if arg == '-arch':
              result['arch_list'].append(next(args))
          # take language
          elif arg == '-x':
              result['language'] = next(args)
          # parameters which looks source file are not flags
          elif re.match(r'^[^-].+', arg) and classify_source(arg):
              pass
          # ignore some flags
          elif arg in IGNORED_FLAGS:
              count = IGNORED_FLAGS[arg]
              for _ in range(count):
                  next(args)
          # we don't care about extra warnings, but we should suppress ones
          # that we don't want to see.
          elif re.match(r'^-W.+', arg) and not re.match(r'^-Wno-.+', arg):
              pass
          # and consider everything else as compilation flag.
          else:
              result['flags'].append(arg)
  
      return result
function_tokens: def classify_parameters ( command ) : result = { 'flags' : [ ] , # the filtered compiler flags 'arch_list' : [ ] , # list of architecture flags 'language' : None , # compilation language, None, if not specified 'compiler' : compiler_language ( command ) # 'c' or 'c++' } # iterate on the compile options args = iter ( command [ 1 : ] ) for arg in args : # take arch flags into a separate basket if arg == '-arch' : result [ 'arch_list' ] . append ( next ( args ) ) # take language elif arg == '-x' : result [ 'language' ] = next ( args ) # parameters which looks source file are not flags elif re . match ( r'^[^-].+' , arg ) and classify_source ( arg ) : pass # ignore some flags elif arg in IGNORED_FLAGS : count = IGNORED_FLAGS [ arg ] for _ in range ( count ) : next ( args ) # we don't care about extra warnings, but we should suppress ones # that we don't want to see. elif re . match ( r'^-W.+' , arg ) and not re . match ( r'^-Wno-.+' , arg ) : pass # and consider everything else as compilation flag. else : result [ 'flags' ] . append ( arg ) return result