clang-format-diff-3.51
Manual page for clang-format-diff.py 3.5
Overview
usage: clang-format-diff.py [-h] [-i] [-p NUM] [-regex PATTERN]
-
[-iregex PATTERN] [-style STYLE]
Reformat changed lines in diff. Without -i option just output the diff that would be introduced.
optional arguments:
-
-h, --help -
show this help message and exit
-
-i -
apply edits to files instead of displaying a diff
-
-p NUM -
strip the smallest prefix containing P slashes
-
-regex PATTERN -
custom pattern selecting file paths to reformat (case sensitive, overrides
-iregex)
-
-iregex PATTERN -
custom pattern selecting file paths to reformat (case insensitive, overridden by
-regex)
-
-style STYLE -
formatting style to apply (LLVM, Google, Chromium, Mozilla, WebKit)