components/exo/wayland/compatibility_test/wayland_protocol_codegen.py
def clang_format_source_text(source_text: str, clang_format_path: str,
                             effective_filename: str) -> str:
    """Runs clang-format on source_text and returns the result."""
    # clang-format the output, for better readability and for
    # -Wmisleading-indentation.
    return subprocess.run(
        [clang_format_path, '--assume-filename', effective_filename],
        input=source_text,
        capture_output=True,
        check=True,
        text=True).stdout
Runs clang-format on source_text and returns the result.
Runs clang-format on source_text and returns the result.
Runs clang - format on source_text and returns the result .
def clang_format_source_text(source_text: str, clang_format_path: str,
                             effective_filename: str) -> str:
    return subprocess.run(
        [clang_format_path, '--assume-filename', effective_filename],
        input=source_text,
        capture_output=True,
        check=True,
        text=True).stdout
def clang_format_source_text ( source_text : str , clang_format_path : str , effective_filename : str ) -> str : return subprocess . run ( [ clang_format_path , '--assume-filename' , effective_filename ] , input = source_text , capture_output = True , check = True , text = True ) . stdout
Runs clang-format on source_text and returns the result.
Runs clang - format on source_text and returns the result .
"""Runs clang-format on source_text and returns the result.""" # clang-format the output, for better readability and for # -Wmisleading-indentation.
source_text
str
clang_format_path
str
effective_filename
str