Lines Matching refs:tool
52 description = '''This tool runs `clang-format` on C++ files.
72 def is_supported(tool):
73 if not shutil.which(tool):
76 cmd = '%s -version' % tool
87 util.abort("Failed to get clang tool version: %s" % version)
95 def detect_clang_tool(tool):
96 supported_tools = [tool] + [tool + '-' + str(ver) for ver in CLANG_TOOL_SUPPORTED_VERSIONS]
97 for tool in supported_tools:
98 if is_supported(tool):
99 return tool