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

Christoph Cullmann noreply at phabricator.kde.org
Sat Oct 12 11:03:08 BST 2019


cullmann added a comment.


  In D24568#545736 <https://phabricator.kde.org/D24568#545736>, @apol wrote:
  
  > I'm not sure how this works, but would it be possible to have a target that only works on a patch? You usually want to make sure what you modified didn't diverge from the code.
  
  
  I think there is some hack around that:
  http://clang.llvm.org/docs/ClangFormat.html#script-for-patch-reformatting
  
  But actually, if your sources are already clang-formatted, you just need to run the clang-format target once before you commit, the your new code will be the only thing altered.

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D24568

To: cullmann
Cc: dhaumann, apol, ognarb, 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-frameworks-devel/attachments/20191012/eaad4f24/attachment.html>


More information about the Kde-frameworks-devel mailing list