parameters: (opts, continuation=run_analyzer)
return_statement: return continuation(opts)
docstring: Execute only one phase of 2 phases of CTU if needed.
docstring_summary: Execute only one phase of 2 phases of CTU if needed.
docstring_tokens: Execute only one phase of 2 phases of CTU if needed .
function: def dispatch_ctu(opts, continuation=run_analyzer):
      """ Execute only one phase of 2 phases of CTU if needed. """
  
      ctu_config = opts['ctu']
  
      if ctu_config.collect or ctu_config.analyze:
          assert ctu_config.collect != ctu_config.analyze
          if ctu_config.collect:
              return ctu_collect_phase(opts)
          if ctu_config.analyze:
              cwd = opts['directory']
              cmd = [opts['clang'], '--analyze'] + opts['direct_args'] \
                  + opts['flags'] + [opts['file']]
              triarch = get_triple_arch(cmd, cwd)
              ctu_options = ['ctu-dir=' + os.path.join(ctu_config.dir, triarch),
                             'experimental-enable-naive-ctu-analysis=true']
              analyzer_options = prefix_with('-analyzer-config', ctu_options)
              direct_options = prefix_with('-Xanalyzer', analyzer_options)
              opts['direct_args'].extend(direct_options)
  
      return continuation(opts)
function_tokens: def dispatch_ctu ( opts , continuation = run_analyzer ) : ctu_config = opts [ 'ctu' ] if ctu_config . collect or ctu_config . analyze : assert ctu_config . collect != ctu_config . analyze if ctu_config . collect : return ctu_collect_phase ( opts ) if ctu_config . analyze : cwd = opts [ 'directory' ] cmd = [ opts [ 'clang' ] , '--analyze' ] + opts [ 'direct_args' ] + opts [ 'flags' ] + [ opts [ 'file' ] ] triarch = get_triple_arch ( cmd , cwd ) ctu_options = [ 'ctu-dir=' + os . path . join ( ctu_config . dir , triarch ) , 'experimental-enable-naive-ctu-analysis=true' ] analyzer_options = prefix_with ( '-analyzer-config' , ctu_options ) direct_options = prefix_with ( '-Xanalyzer' , analyzer_options ) opts [ 'direct_args' ] . extend ( direct_options ) return continuation ( opts )