Using Qt Creator 4.10.2 and Qt 5.9/5.12
As described here since C++ 11 you can use the arrow operator in the function's heading. The coding conventions at my place of work currently require for all functions to be written like this.
My problem is that apparently Qt Creator doesn't support this when you auto-generate the definition of a function using refactoring (click on a function in header without definition to open context menu -> select Refactoring -> Add definition to xyz.cpp).
Example: If you have declared a function inside your header
auto foo() -> void;
the auto-generated definition will be
void foo()
{
}
In addition to that apparently the moc generation in Qt doesn't like this style either when used for slots.
Is there a workaround or I just need to make exceptions for all the slots and also always either manually add the definition of a function to my source file or edit the auto-generated one? Perhaps I am missing some tweak in the settings of Qt Creator?