parameters: (cmd)
return_statement: return int(version) >= nkt.MIN_CLANG_FORMAT_VERSION
docstring: Checks if the given clang-format command is available and if its version is recent enough.
docstring_summary: Checks if the given clang-format command is available and if its version is recent enough.
docstring_tokens: Checks if the given clang - format command is available and if its version is recent enough .
function: def isSupported(cmd):
  	""" Checks if the given clang-format command is available and if its version is recent enough. """
  	if shutil.which(cmd) is None:
  		return False
  	# Read major revision number from "clang-format version XX.XX.XX ... "
  	version = str(subprocess.check_output([cmd, "--version"],
  		universal_newlines=True, env=getEnv())).strip().split()[-1].split('.')[0]
  	return int(version) >= nkt.MIN_CLANG_FORMAT_VERSION
function_tokens: def isSupported ( cmd ) : if shutil . which ( cmd ) is None : return False # Read major revision number from "clang-format version XX.XX.XX ... " version = str ( subprocess . check_output ( [ cmd , "--version" ] , universal_newlines = True , env = getEnv ( ) ) ) . strip ( ) . split ( ) [ - 1 ] . split ( '.' ) [ 0 ] return int ( version ) >= nkt . MIN_CLANG_FORMAT_VERSION