parameters: (opts, continuation=language_check)
docstring: Do run analyzer through one of the given architectures.
docstring_summary: Do run analyzer through one of the given architectures.
docstring_tokens: Do run analyzer through one of the given architectures .
function: def arch_check(opts, continuation=language_check):
      """ Do run analyzer through one of the given architectures. """
  
      disabled = frozenset({'ppc', 'ppc64'})
  
      received_list = opts.pop('arch_list')
      if received_list:
          # filter out disabled architectures and -arch switches
          filtered_list = [a for a in received_list if a not in disabled]
          if filtered_list:
              # There should be only one arch given (or the same multiple
              # times). If there are multiple arch are given and are not
              # the same, those should not change the pre-processing step.
              # But that's the only pass we have before run the analyzer.
              current = filtered_list.pop()
              logging.debug('analysis, on arch: %s', current)
  
              opts.update({'flags': ['-arch', current] + opts['flags']})
              return continuation(opts)
          else:
              logging.debug('skip analysis, found not supported arch')
              return None
      else:
          logging.debug('analysis, on default arch')
          return continuation(opts)
function_tokens: def arch_check ( opts , continuation = language_check ) : disabled = frozenset ( { 'ppc' , 'ppc64' } ) received_list = opts . pop ( 'arch_list' ) if received_list : # filter out disabled architectures and -arch switches filtered_list = [ a for a in received_list if a not in disabled ] if filtered_list : # There should be only one arch given (or the same multiple # times). If there are multiple arch are given and are not # the same, those should not change the pre-processing step. # But that's the only pass we have before run the analyzer. current = filtered_list . pop ( ) logging . debug ( 'analysis, on arch: %s' , current ) opts . update ( { 'flags' : [ '-arch' , current ] + opts [ 'flags' ] } ) return continuation ( opts ) else : logging . debug ( 'skip analysis, found not supported arch' ) return None else : logging . debug ( 'analysis, on default arch' ) return continuation ( opts )