For example:
-NetworkStyle::NetworkStyle(const QString &appName, const QString &appIcon, const char *titleAddText, const QString &splashImage):
- appName(appName),
- appIcon(appIcon),
- titleAddText(qApp->translate("SplashScreen", titleAddText)),
- splashImage(splashImage)
+NetworkStyle::NetworkStyle(const QString& appName, const QString& appIcon, const char* titleAddText, const QString& splashImage) : appName(appName),
+ appIcon(appIcon),
+ titleAddText(qApp->translate("SplashScreen", titleAddText)),
+ splashImage(splashImage)
Aligning the arguments all the way to the right doesn't look too good in the case of a long constructor. I'd prefer if they started on the next line instead, and have the normal indentation. @sipa Is this possible with clang-format?
This is not a fluke; I've noted this before (https://github.com/bitcoin/bitcoin/pull/4933#issuecomment-56338845) as well.