forked from qt-creator/qt-creator
CppTools: Fix indent after ">>" in return type
Add case for ">>" token in declaration_start state to prevent falling through to stream_op. Task-number: QTCREATORBUG-9199 Change-Id: I53710be55eff4574de89f9159e95bbc1de2ba34e Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
5510ec0552
commit
a8c858acdd
@@ -1284,6 +1284,9 @@ void tst_CodeFormatter::functionReturnType()
|
||||
<< Line("template <class T>")
|
||||
<< Line("const QList<QMap<T, T> > &")
|
||||
<< Line("A::B::foo() {}")
|
||||
<< Line("std::map<int,std::vector<int>> indent() {}")
|
||||
<< Line("std::map<int,std::vector<int> > indent() {}")
|
||||
<< Line("")
|
||||
;
|
||||
checkIndent(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user