parameters: (entry)
return_statement: return '<>'.join([filename, directory, command])
docstring: Implement unique hash method for compilation database entries.
docstring_summary: Implement unique hash method for compilation database entries.
docstring_tokens: Implement unique hash method for compilation database entries .
function: def entry_hash(entry):
      """ Implement unique hash method for compilation database entries. """
  
      # For faster lookup in set filename is reverted
      filename = entry['file'][::-1]
      # For faster lookup in set directory is reverted
      directory = entry['directory'][::-1]
      # On OS X the 'cc' and 'c++' compilers are wrappers for
      # 'clang' therefore both call would be logged. To avoid
      # this the hash does not contain the first word of the
      # command.
      command = ' '.join(decode(entry['command'])[1:])
  
      return '<>'.join([filename, directory, command])
function_tokens: def entry_hash ( entry ) : # For faster lookup in set filename is reverted filename = entry [ 'file' ] [ : : - 1 ] # For faster lookup in set directory is reverted directory = entry [ 'directory' ] [ : : - 1 ] # On OS X the 'cc' and 'c++' compilers are wrappers for # 'clang' therefore both call would be logged. To avoid # this the hash does not contain the first word of the # command. command = ' ' . join ( decode ( entry [ 'command' ] ) [ 1 : ] ) return '<>' . join ( [ filename , directory , command ] )