()
return []
Look for clang-format binary on build platform

    Do the same thing as detect_scanbuild to find clang-format except it
    currently does not check the environment variable.

    Return: a single-element list of the found clang-format binary ready to be
        passed to Popen()
Look for clang-format binary on build platform
Look for clang - format binary on build platform
def detect_clangformat() -> T.List[str]:
    """ Look for clang-format binary on build platform

    Do the same thing as detect_scanbuild to find clang-format except it
    currently does not check the environment variable.

    Return: a single-element list of the found clang-format binary ready to be
        passed to Popen()
    """
    tools = get_llvm_tool_names('clang-format')
    for tool in tools:
        path = shutil.which(tool)
        if path is not None:
            return [path]
    return []
def detect_clangformat ( ) -> T . List [ str ] : tools = get_llvm_tool_names ( 'clang-format' ) for tool in tools : path = shutil . which ( tool ) if path is not None : return [ path ] return [ ]