Commit 22ecca45 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Add clang-format

parent 7ce8511a
Pipeline #175797 passed with stage
in 4 minutes and 13 seconds
......@@ -22,7 +22,7 @@ CMakeLists.txt.user*
*.unc-backup*
compile_commands.json
compile_commands.json
.clang-format
/.clang-format
.clangd
.idea
/cmake-build*
......
......@@ -61,6 +61,7 @@ include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMAddAppIcon)
include(ECMQtDeclareLoggingCategory)
include(ECMDeprecationSettings)
include(KDEClangFormat)
# Find KF5 packages
find_package(KF5WidgetsAddons ${KF5_WANT_VERSION} CONFIG REQUIRED)
......@@ -211,3 +212,6 @@ if(KF5DocTools_FOUND)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
# add clang-format target for all our real source files
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h *.c)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
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