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

Dominik Haumann noreply at phabricator.kde.org
Sat Nov 16 08:03:27 GMT 2019


dhaumann added a comment.


  You can force the current clang format to keep the multi-line if as follows:
  
    if (roles.isEmpty() // comment
            || roles.contains(Notifications::UpdatedRole)
            || roles.contains(Notifications::ExpiredRole)
  
  The comment prevents clang to join the lines. I understand it's not what you want, though.

REPOSITORY
  R240 Extra CMake Modules

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

To: cullmann, #frameworks, dfaure
Cc: zzag, sitter, mwolff, ochurlaud, nalvarez, kossebau, aacid, davidedmundson, 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-buildsystem/attachments/20191116/090e5f91/attachment-0001.html>


More information about the Kde-buildsystem mailing list