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
Utilities
KEditBookmarks
Commits
ee5bb41a
Verified
Commit
ee5bb41a
authored
Feb 24, 2021
by
Alexander Lohnau
💬
Browse files
Add clang-format configuration
parent
ddd55c10
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
ee5bb41a
...
...
@@ -25,6 +25,10 @@ include(ECMAddTests)
include
(
ECMQtDeclareLoggingCategory
)
include
(
FeatureSummary
)
include
(
ECMAddAppIcon
)
if
(
ECM_VERSION VERSION_GREATER_EQUAL 5.79
)
include
(
KDEClangFormat
)
include
(
KDEGitCommitHooks
)
endif
()
set
(
KEDITBOOKMARKS_VERSION
"5.97.0"
)
...
...
@@ -44,3 +48,8 @@ add_subdirectory(doc)
feature_summary
(
WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES
)
if
(
ECM_VERSION VERSION_GREATER_EQUAL 5.79
)
file
(
GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h
)
kde_clang_format
(
${
ALL_CLANG_FORMAT_SOURCE_FILES
}
)
kde_configure_git_pre_commit_hook
(
CHECKS CLANG_FORMAT
)
endif
()
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