gpu/command_buffer/build_cmd_buffer_lib.py
def Format(generated_files, output_dir, chromium_root_dir):
  """Format generated_files relative to output_dir using clang-format."""
  formatter = "third_party/depot_tools/clang-format"
  if platform.system() == "Windows":
    formatter = "third_party\\depot_tools\\clang-format.bat"
  formatter = os.path.join(chromium_root_dir, formatter)
  generated_files = map(lambda filename: os.path.join(output_dir, filename),
                        generated_files)
  for filename in generated_files:
    call([formatter, "-i", "-style=chromium", filename], cwd=chromium_root_dir)
Format generated_files relative to output_dir using clang-format.
Format generated_files relative to output_dir using clang-format.
Format generated_files relative to output_dir using clang - format .
def Format(generated_files, output_dir, chromium_root_dir):
  formatter = "third_party/depot_tools/clang-format"
  if platform.system() == "Windows":
    formatter = "third_party\\depot_tools\\clang-format.bat"
  formatter = os.path.join(chromium_root_dir, formatter)
  generated_files = map(lambda filename: os.path.join(output_dir, filename),
                        generated_files)
  for filename in generated_files:
    call([formatter, "-i", "-style=chromium", filename], cwd=chromium_root_dir)
def Format ( generated_files , output_dir , chromium_root_dir ) : formatter = "third_party/depot_tools/clang-format" if platform . system ( ) == "Windows" : formatter = "third_party\\depot_tools\\clang-format.bat" formatter = os . path . join ( chromium_root_dir , formatter ) generated_files = map ( lambda filename : os . path . join ( output_dir , filename ) , generated_files ) for filename in generated_files : call ( [ formatter , "-i" , "-style=chromium" , filename ] , cwd = chromium_root_dir )
Format generated_files relative to output_dir using clang-format.
Format generated_files relative to output_dir using clang - format .
"""Format generated_files relative to output_dir using clang-format."""
generated_files
output_dir
chromium_root_dir