Commit e66d86af authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

Add a clang-format pre-commit hook

parent 053d8656
Pipeline #181498 passed with stage
in 9 minutes and 31 seconds
......@@ -187,3 +187,9 @@ elseif(BUILD_FUZZING)
message(STATUS "Fuzzing build was requested but not enabled because compiler is ${CMAKE_CXX_COMPILER_ID} and not Clang")
endif()
# pre-commit hook
if (ECM_VERSION VERSION_GREATER_EQUAL "5.79.0")
include(KDEGitCommitHooks)
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
endif()
Supports Markdown
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