Exported fuctions duplicated

If using AlwaysBreakAfterReturnType for clang formatting functions are not detected in the exported ui_events.cpp resulting in them being duplicated.

Formatting a function as such


instead of

void someFunc(){}

results in

void someFunc(){}

being added to the end of the ui_events.cpp

Thanks, I added it to our Todo list.