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
Konsole
Commits
152ff13e
Commit
152ff13e
authored
Mar 15, 2021
by
Kurt Hindenburg
Browse files
Add code and notes for using clang-format
parent
4d94931f
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
152ff13e
...
...
@@ -36,6 +36,7 @@ include(ECMGenerateHeaders)
include
(
GenerateExportHeader
)
include
(
FeatureSummary
)
include
(
ECMQtDeclareLoggingCategory
)
include
(
KDEClangFormat
)
ecm_setup_version
(
${
RELEASE_SERVICE_VERSION
}
VARIABLE_PREFIX KONSOLEPRIVATE
SOVERSION
${
RELEASE_SERVICE_VERSION_MAJOR
}
...
...
@@ -111,3 +112,12 @@ else()
endif
()
feature_summary
(
WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES
)
# Do not do bulk whitespace/style changes without MRs and maintainer(s)
# approval. clang-format executeable needs to be installed prior to initial
# building; then do make clang-format.
# add clang-format target for all our real source files
file
(
GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.c *.cpp *.h *.hpp
)
kde_clang_format
(
${
ALL_CLANG_FORMAT_SOURCE_FILES
}
)
# Let's not do pre-hooks yet
#kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
Write
Preview
Markdown
is supported
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