Use the KDE C++ coding style
Created by: LNJ2
https://community.kde.org/Policies/Kdelibs_Coding_Style
We can easily switch to it by using astyle
:
astyle --indent=spaces=4 --style=linux \
--indent-labels --pad-oper --unpad-paren --pad-header \
--keep-one-line-statements --convert-tabs \
--indent-preprocessor \
`find -type f -name '*.cpp' -or -name '*.cc' -or -name '*.h'`
It will use 4 spaces instead tabs. This is the only point I'm not really sure about. But if we do this, we should do this right before the next release, when (probably) no pull request are open anymore.