GIT_SILENT clang-format kpasswdserver.*
ClosedPublic

Authored by ahmadsamir on Mar 17 2020, 10:46 AM.

Details

Summary

Braces around if blocks.

Test Plan

make && ctest

Diff Detail

Repository
R241 KIO
Branch
l-kpasswdserver-clang-format (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 23808
Build 23826: arc lint + arc unit
ahmadsamir created this revision.Mar 17 2020, 10:46 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptMar 17 2020, 10:46 AM
ahmadsamir requested review of this revision.Mar 17 2020, 10:46 AM
dfaure requested changes to this revision.Mar 21 2020, 10:46 AM
dfaure added inline comments.
src/kpasswdserver/kpasswdserver.cpp
249

This didn't use to be called when m_walletDisabled is true.

Make it a lambda if you want to simplify the if() condition while still preserving evaluation order?

Or better: let's not change code in a "reformatting" commit... It's too dangerous. I could have missed this. Reviewing reformatting from a tool and reviewing changes made by a human are two different kinds of reviews :-)

309

same

748

same

This revision now requires changes to proceed.Mar 21 2020, 10:46 AM

clang-format only, less prone to errors, as the level of stupidity of the tool is locked at the compile time of the tool (unlike manual changes)

ahmadsamir retitled this revision from GIT_SILENT clang-format kpasswdserver.* plus some manual changes to GIT_SILENT clang-format kpasswdserver.*.

Verbatim

dfaure accepted this revision.Mar 21 2020, 12:20 PM

Thanks. Let's do manual changes separately :-)

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

Rebase on master

This revision was automatically updated to reflect the committed changes.