aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/KDEGitCommitHooks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kde-modules/KDEGitCommitHooks.cmake')
-rw-r--r--kde-modules/KDEGitCommitHooks.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/kde-modules/KDEGitCommitHooks.cmake b/kde-modules/KDEGitCommitHooks.cmake
index b0b1a188..1ad93470 100644
--- a/kde-modules/KDEGitCommitHooks.cmake
+++ b/kde-modules/KDEGitCommitHooks.cmake
@@ -18,6 +18,16 @@
# In case the source dir does not contain the .git folder, the GIT_DIR
# parameter can be passed in.
#
+# Checks:
+#
+# - ``CLANG_FORMAT`` With this check enabled the ``git clang-format`` tool will be used to make sure that
+# the changed parts are properly formatted. In case the changes are not properly formatted an error
+# message with the command to preview the formatting changes and to format the files in place
+# will be displayed. This tool will reuse the exsting ``.clang-format`` file, in case you
+# want to use the one provided by ECM you can include ``include(KDEClangFormat)`` which will copy
+# the file to the source dir. It is also recommended to reformat the entire project before enforcing
+# the formatting using this commit hook.
+#
# Example usage:
#
# .. code-block:: cmake