The cstyle and cppstyle indenter had certain issues with auto brackets (wrong indentation and semicolons inserted instead of closing braces). This patch fixes those issues and adds unit tests for the new behavior.
See https://bugs.kde.org/show_bug.cgi?id=370715 for more information.
EDIT:
Due to arc being weird, this is a duplicate and can be closed. The new revision can be found here: https://phabricator.kde.org/D3105