cullmann created this revision. Herald added projects: Frameworks, Build System. Herald added subscribers: kde-buildsystem, kde-frameworks-devel. cullmann requested review of this revision.
REVISION SUMMARY Provides a clang-format target if wanted Example usage: include(KDEClangFormat) add clang-format target for all our real source files ===================================================== file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES autotests/src/*.cpp autotests/src/*.h src/*.cpp src/*.h templates/*.cpp templates/*.h) kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) TEST PLAN Tried that above usage thingy in KTextEditor REPOSITORY R240 Extra CMake Modules BRANCH master REVISION DETAIL https://phabricator.kde.org/D24568 AFFECTED FILES kde-modules/KDEClangFormat.cmake kde-modules/clang-format.cmake To: cullmann Cc: kde-frameworks-devel, kde-buildsystem, LeGast00n, GB_2, bencreasy, michaelh, ngraham, bruns