summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-08-01 12:46:27 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-08-01 12:46:27 +0200
commit5589ce8cac60eab8886efa5e234bfcd7a1565b9e (patch)
tree8e9de99f45b6e08ca46d45f84ce9b1e41fff3e94 /tools
parent1d77aa3032e8575712821149d82e594920f05cee (diff)
pre-commit: Improve documentation for clang-format hook
Diffstat (limited to 'tools')
-rwxr-xr-xtools/clang_format.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/clang_format.py b/tools/clang_format.py
index 4447cb70aa..80aa419c2f 100755
--- a/tools/clang_format.py
+++ b/tools/clang_format.py
@@ -87,7 +87,7 @@ def main(argv: typing.Optional[typing.List[str]] = None) -> int:
rootdir = githelper.get_toplevel_path()
# First pass: Format added lines using clang-format
- logger.info("First pass: Reformat files...")
+ logger.info("First pass: Reformatting added/changed lines...")
files_with_added_lines = githelper.get_changed_lines_grouped(
from_ref=args.from_ref,
filter_lines=lambda line: line.added,
@@ -97,7 +97,7 @@ def main(argv: typing.Optional[typing.List[str]] = None) -> int:
run_clang_format_on_lines(rootdir, changed_file)
# Second pass: Wrap long added lines using clang-format
- logger.info("Second pass: Reformat files with long lines...")
+ logger.info("Second pass: Breaking long added/changed lines...")
files_with_long_added_lines = githelper.get_changed_lines_grouped(
from_ref=args.from_ref,
filter_lines=lambda line: line.added