BmnRoot
Loading...
Searching...
No Matches
run-clang-format Namespace Reference

Classes

class  DiffError
 
class  ExitStatus
 
class  UnexpectedError
 

Functions

 excludes_from_file (ignore_file)
 
 list_files (files, recursive=False, extensions=None, exclude=None)
 
 make_diff (file, original, reformatted)
 
 run_clang_format_diff_wrapper (args, file)
 
 run_clang_format_diff (args, file)
 
 bold_red (s)
 
 colorize (diff_lines)
 
 print_diff (diff_lines, use_color)
 
 print_trouble (prog, message, use_colors)
 
 main ()
 

Variables

 DEVNULL = open(os.devnull, "wb")
 
str DEFAULT_EXTENSIONS = 'c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx'
 
str DEFAULT_CLANG_FORMAT_IGNORE = '.clang-format-ignore'
 

Function Documentation

◆ bold_red()

run-clang-format.bold_red (   s)

◆ colorize()

run-clang-format.colorize (   diff_lines)

Definition at line 210 of file run-clang-format.py.

Referenced by run-clang-format.UnexpectedError.__init__(), and print_diff().

◆ excludes_from_file()

run-clang-format.excludes_from_file (   ignore_file)

Definition at line 44 of file run-clang-format.py.

Referenced by run-clang-format.UnexpectedError.__init__(), and main().

◆ list_files()

run-clang-format.list_files (   files,
  recursive = False,
  extensions = None,
  exclude = None 
)

Definition at line 62 of file run-clang-format.py.

Referenced by run-clang-format.UnexpectedError.__init__(), and main().

◆ main()

◆ make_diff()

run-clang-format.make_diff (   file,
  original,
  reformatted 
)

◆ print_diff()

run-clang-format.print_diff (   diff_lines,
  use_color 
)

Definition at line 236 of file run-clang-format.py.

References colorize().

Referenced by run-clang-format.UnexpectedError.__init__(), and main().

◆ print_trouble()

run-clang-format.print_trouble (   prog,
  message,
  use_colors 
)

Definition at line 245 of file run-clang-format.py.

References bold_red().

Referenced by run-clang-format.UnexpectedError.__init__(), and main().

◆ run_clang_format_diff()

run-clang-format.run_clang_format_diff (   args,
  file 
)

◆ run_clang_format_diff_wrapper()

run-clang-format.run_clang_format_diff_wrapper (   args,
  file 
)

Definition at line 117 of file run-clang-format.py.

References run_clang_format_diff().

Referenced by run-clang-format.UnexpectedError.__init__(), and main().

Variable Documentation

◆ DEFAULT_CLANG_FORMAT_IGNORE

str run-clang-format.DEFAULT_CLANG_FORMAT_IGNORE = '.clang-format-ignore'

Definition at line 36 of file run-clang-format.py.

◆ DEFAULT_EXTENSIONS

str run-clang-format.DEFAULT_EXTENSIONS = 'c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx'

Definition at line 35 of file run-clang-format.py.

◆ DEVNULL

run-clang-format.DEVNULL = open(os.devnull, "wb")

Definition at line 32 of file run-clang-format.py.