Commit 596dfac9 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Add clang-format commit hook

parent eed19340
Pipeline #86612 passed with stage
in 29 seconds
...@@ -26,6 +26,7 @@ include(ECMSetupVersion) ...@@ -26,6 +26,7 @@ include(ECMSetupVersion)
include(ECMGenerateHeaders) include(ECMGenerateHeaders)
include(ECMPoQmTools) include(ECMPoQmTools)
include(KDEClangFormat) include(KDEClangFormat)
include(KDEGitCommitHooks)
ecm_setup_version(${PROJECT_VERSION} ecm_setup_version(${PROJECT_VERSION}
VARIABLE_PREFIX KONTRAST VARIABLE_PREFIX KONTRAST
...@@ -67,3 +68,4 @@ endif() ...@@ -67,3 +68,4 @@ endif()
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES src/*.cpp src/*.h) file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES src/*.cpp src/*.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment