aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/clang-format.md
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-07 01:27:21 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-07 01:27:21 +0300
commitc6e99acef81208ae679fe4234b6b35e111f91789 (patch)
tree561d96103ad4d1ab5e198ced939935bc62b18170 /docs/clang-format.md
parentctest-driver.py: add --fail-regex, fix --pass-regex (diff)
downloadcmake-common-c6e99acef81208ae679fe4234b6b35e111f91789.tar.gz
cmake-common-c6e99acef81208ae679fe4234b6b35e111f91789.zip
tools: update usage information, add docs/ entries
Diffstat (limited to 'docs/clang-format.md')
-rw-r--r--docs/clang-format.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/clang-format.md b/docs/clang-format.md
new file mode 100644
index 0000000..217b2da
--- /dev/null
+++ b/docs/clang-format.md
@@ -0,0 +1,5 @@
+`clang-format` all C/C++ files in the project.
+
+ $ cd project/
+ $ python3 path/to/tools/clang-format.py # Prints a diff
+ $ python3 path/to/tools/clang-format.py -i # Edits files in-place