parameters: (command, cwd)
return_statement: return decode(last_line)
docstring: Capture Clang invocation.
  
      :param command: the compilation command
      :param cwd:     the current working directory
      :return:        the detailed front-end invocation command
docstring_summary: Capture Clang invocation.
docstring_tokens: Capture Clang invocation .
function: def get_arguments(command, cwd):
      """ Capture Clang invocation.
  
      :param command: the compilation command
      :param cwd:     the current working directory
      :return:        the detailed front-end invocation command """
  
      cmd = command[:]
      cmd.insert(1, '-###')
      cmd.append('-fno-color-diagnostics')
  
      output = run_command(cmd, cwd=cwd)
      # The relevant information is in the last line of the output.
      # Don't check if finding last line fails, would throw exception anyway.
      last_line = output[-1]
      if re.search(r'clang(.*): error:', last_line):
          raise ClangErrorException(last_line)
      return decode(last_line)
function_tokens: def get_arguments ( command , cwd ) : cmd = command [ : ] cmd . insert ( 1 , '-###' ) cmd . append ( '-fno-color-diagnostics' ) output = run_command ( cmd , cwd = cwd ) # The relevant information is in the last line of the output. # Don't check if finding last line fails, would throw exception anyway. last_line = output [ - 1 ] if re . search ( r'clang(.*): error:' , last_line ) : raise ClangErrorException ( last_line ) return decode ( last_line )