Clang Format Update

David Edmundson david at davidedmundson.co.uk
Mon Oct 26 22:30:45 GMT 2020


In a similar topic I've been pointed to a tool called qmlformat. It's
basically clang-format for QML.

It seems to work quite well. It insists on a very specific code layout :
https://doc.qt.io/qt-5/qml-codingconventions.html
id first, then newly declared properties and so on. This makes the changes
applied to files quite extreme.

It also removes braces on single line if statements with no possibility for
configuration currently.

I don't want to block the C++ tidying discussion on this, but it's
definitely worth looking into in parallel.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20201026/11b83699/attachment.htm>


More information about the Plasma-devel mailing list