|
BmnRoot
|
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' |
| run-clang-format.bold_red | ( | s | ) |
Definition at line 206 of file run-clang-format.py.
Referenced by run-clang-format.UnexpectedError.__init__(), and print_trouble().
| 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().
| 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().
| 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().
| run-clang-format.main | ( | ) |
Definition at line 252 of file run-clang-format.py.
References excludes_from_file(), list_files(), main(), min(), print_diff(), print_trouble(), and run_clang_format_diff_wrapper().
Referenced by run-clang-format.UnexpectedError.__init__(), and main().
| run-clang-format.make_diff | ( | file, | |
| original, | |||
| reformatted | |||
| ) |
Definition at line 94 of file run-clang-format.py.
Referenced by run-clang-format.UnexpectedError.__init__(), and run_clang_format_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().
| 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.run_clang_format_diff | ( | args, | |
| file | |||
| ) |
Definition at line 128 of file run-clang-format.py.
References make_diff().
Referenced by run-clang-format.UnexpectedError.__init__(), and 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().
| str run-clang-format.DEFAULT_CLANG_FORMAT_IGNORE = '.clang-format-ignore' |
Definition at line 36 of file run-clang-format.py.
| 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.
| run-clang-format.DEVNULL = open(os.devnull, "wb") |
Definition at line 32 of file run-clang-format.py.