D24568: Provide clang-format target with a common KDE style file

Christoph Cullmann noreply at phabricator.kde.org
Fri Oct 11 19:46:45 BST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20191011/20ebb465/attachment.html>


More information about the Kde-buildsystem mailing list