CppTools: Fix formatting for new-style function declaration

Fixes: QTCREATORBUG-23502
Change-Id: Ie80fe9aa77ffbf0b9ecc531841e78f2bd80de37e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Christian Kandeler
2020-06-03 16:26:59 +02:00
parent 9e08ecb816
commit 02f2841a41
2 changed files with 6 additions and 0 deletions

View File

@@ -1287,6 +1287,7 @@ void tst_CodeFormatter::functionReturnType()
<< Line("A::B::foo() {}")
<< Line("std::map<int,std::vector<int>> indent() {}")
<< Line("std::map<int,std::vector<int> > indent() {}")
<< Line("auto indent() -> std::map<int,std::vector<int>>")
<< Line("")
;
checkIndent(data);