Hi,

for "auto" I think we should always annotate it with const, *, and/or & where appropriate:

auto *something = new MyCustomType;
auto *keyEvent = static_cast<QKeyEvent *>(event);
const auto myList = QStringList({QLatin1String("FooThing"), QLatin1String("BarThing")});
auto &barRef = foo[bar];

The common practice used in KDE seems to be:

     for (a<space>:<space>b)

+1

Cheers
Kai Uwe

Reply via email to