parameters: (opts, continuation=filter_debug_flags)
docstring: Find out the language from command line parameters or file name
      extension. The decision also influenced by the compiler invocation.
docstring_summary: Find out the language from command line parameters or file name
      extension. The decision also influenced by the compiler invocation.
docstring_tokens: Find out the language from command line parameters or file name extension . The decision also influenced by the compiler invocation .
function: def language_check(opts, continuation=filter_debug_flags):
      """ Find out the language from command line parameters or file name
      extension. The decision also influenced by the compiler invocation. """
  
      accepted = frozenset({
          'c', 'c++', 'objective-c', 'objective-c++', 'c-cpp-output',
          'c++-cpp-output', 'objective-c-cpp-output'
      })
  
      # language can be given as a parameter...
      language = opts.pop('language')
      compiler = opts.pop('compiler')
      # ... or find out from source file extension
      if language is None and compiler is not None:
          language = classify_source(opts['file'], compiler == 'c')
  
      if language is None:
          logging.debug('skip analysis, language not known')
          return None
      elif language not in accepted:
          logging.debug('skip analysis, language not supported')
          return None
      else:
          logging.debug('analysis, language: %s', language)
          opts.update({'language': language,
                       'flags': ['-x', language] + opts['flags']})
          return continuation(opts)
function_tokens: def language_check ( opts , continuation = filter_debug_flags ) : accepted = frozenset ( { 'c' , 'c++' , 'objective-c' , 'objective-c++' , 'c-cpp-output' , 'c++-cpp-output' , 'objective-c-cpp-output' } ) # language can be given as a parameter... language = opts . pop ( 'language' ) compiler = opts . pop ( 'compiler' ) # ... or find out from source file extension if language is None and compiler is not None : language = classify_source ( opts [ 'file' ] , compiler == 'c' ) if language is None : logging . debug ( 'skip analysis, language not known' ) return None elif language not in accepted : logging . debug ( 'skip analysis, language not supported' ) return None else : logging . debug ( 'analysis, language: %s' , language ) opts . update ( { 'language' : language , 'flags' : [ '-x' , language ] + opts [ 'flags' ] } ) return continuation ( opts )