Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Accessibility
Kontrast
Commits
596dfac9
Commit
596dfac9
authored
Oct 07, 2021
by
Nicolas Fella
Browse files
Add clang-format commit hook
parent
eed19340
Pipeline
#86612
passed with stage
in 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
596dfac9
...
...
@@ -26,6 +26,7 @@ include(ECMSetupVersion)
include
(
ECMGenerateHeaders
)
include
(
ECMPoQmTools
)
include
(
KDEClangFormat
)
include
(
KDEGitCommitHooks
)
ecm_setup_version
(
${
PROJECT_VERSION
}
VARIABLE_PREFIX KONTRAST
...
...
@@ -67,3 +68,4 @@ endif()
file
(
GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES src/*.cpp src/*.h
)
kde_clang_format
(
${
ALL_CLANG_FORMAT_SOURCE_FILES
}
)
kde_configure_git_pre_commit_hook
(
CHECKS CLANG_FORMAT
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment