components/exo/wayland/fuzzer/wayland_templater.py
def GetClangFormatPath():
    """Returns the path to clang-format, for formatting the output."""
    if sys.platform.startswith('linux'):
      platform, exe_suffix = 'linux64', ''
      exe_suffix = ""
    elif sys.platform == 'darwin':
      platform, exe_suffix = 'mac', ''
    elif sys.platform == 'win32':
      platform, exe_suffix = 'win', '.exe'
    else:
      assert False, 'Unknown platform: ' + sys.platform

    this_dir = os.path.abspath(os.path.dirname(__file__))
    root_src_dir = os.path.abspath(
        os.path.join(this_dir, '..', '..', '..', '..'))
    buildtools_platform_dir = os.path.join(root_src_dir, 'buildtools', platform)
    return os.path.join(buildtools_platform_dir, 'clang-format' + exe_suffix)
Returns the path to clang-format, for formatting the output.
Returns the path to clang-format, for formatting the output.
Returns the path to clang - format for formatting the output .
def GetClangFormatPath():
    if sys.platform.startswith('linux'):
      platform, exe_suffix = 'linux64', ''
      exe_suffix = ""
    elif sys.platform == 'darwin':
      platform, exe_suffix = 'mac', ''
    elif sys.platform == 'win32':
      platform, exe_suffix = 'win', '.exe'
    else:
      assert False, 'Unknown platform: ' + sys.platform
    this_dir = os.path.abspath(os.path.dirname(__file__))
    root_src_dir = os.path.abspath(
        os.path.join(this_dir, '..', '..', '..', '..'))
    buildtools_platform_dir = os.path.join(root_src_dir, 'buildtools', platform)
    return os.path.join(buildtools_platform_dir, 'clang-format' + exe_suffix)
def GetClangFormatPath ( ) : if sys . platform . startswith ( 'linux' ) : platform , exe_suffix = 'linux64' , '' exe_suffix = "" elif sys . platform == 'darwin' : platform , exe_suffix = 'mac' , '' elif sys . platform == 'win32' : platform , exe_suffix = 'win' , '.exe' else : assert False , 'Unknown platform: ' + sys . platform this_dir = os . path . abspath ( os . path . dirname ( __file__ ) ) root_src_dir = os . path . abspath ( os . path . join ( this_dir , '..' , '..' , '..' , '..' ) ) buildtools_platform_dir = os . path . join ( root_src_dir , 'buildtools' , platform ) return os . path . join ( buildtools_platform_dir , 'clang-format' + exe_suffix )
Returns the path to clang-format, for formatting the output.
Returns the path to clang - format for formatting the output .
"""Returns the path to clang-format, for formatting the output."""