aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/project-clang-format.md
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-05 14:33:27 +0500
committerEgor Tensin <egor@tensin.name>2026-10-05 14:33:27 +0500
commit0e26a35cd2d4f097f24cfbb4edb10cfcdcfa2098 (patch)
treeb3944cd8af49bb4d414dbec4a282f804ce6d7422 /docs/project-clang-format.md
parentproject.ctest_driver: verbose logging (diff)
downloadcmake-common-0e26a35cd2d4f097f24cfbb4edb10cfcdcfa2098.tar.gz
cmake-common-0e26a35cd2d4f097f24cfbb4edb10cfcdcfa2098.zip
update README & docs
Diffstat (limited to 'docs/project-clang-format.md')
-rw-r--r--docs/project-clang-format.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/project-clang-format.md b/docs/project-clang-format.md
index 1beeced..821ad9f 100644
--- a/docs/project-clang-format.md
+++ b/docs/project-clang-format.md
@@ -1,5 +1,7 @@
`clang-format` all C/C++ files in the project.
$ cd project/
- $ python path/to/tools/project-clang-format.py # Prints a diff
- $ python path/to/tools/project-clang-format.py -i # Edits files in-place
+ $ project-format # Prints a diff
+ $ project-format -i # Edits files in-place
+
+Alternatively, run it as a Python module: `python -m project.format`