GIT_SILENT kpasswdserver, break long lines for readability; add braces around if
ClosedPublic

Authored by ahmadsamir on Mar 21 2020, 3:56 PM.

Details

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ahmadsamir created this revision.Mar 21 2020, 3:56 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMar 21 2020, 3:56 PM
ahmadsamir requested review of this revision.Mar 21 2020, 3:56 PM
ahmadsamir updated this revision to Diff 78171.Mar 21 2020, 3:57 PM
ahmadsamir retitled this revision from GIT_SILENT break long lines for readability; add braces around if to GIT_SILENT kpasswdserver, break long lines for readability; add braces around if.

Verbatim

dfaure accepted this revision.Mar 21 2020, 4:06 PM

Nice.

clang-format can't be configured to add missing braces, and to have a max line length?

This revision is now accepted and ready to land.Mar 21 2020, 4:06 PM

Nice.

clang-format can't be configured to add missing braces,

Nope, I'd have had to use clang-format (which requires a "compilation server", I read some docs, searched online, tried, then read more docs; found that it took me about half an hour and I still couldn't get it to work (it replaced all of two occurrences and then barfed), I realised it would have taken me 10 minutes to do it by hand, and get on with what's left of my life, which is what I did).

and to have a max line length?

I used a .clang-format copied from clang-format.cmake from extra-cmake-modules, which has "ColumnLimit: 240", but that apparently leads to really long lines... why I didn't tweak the number? I forgot :D

This revision was automatically updated to reflect the committed changes.