forked from qt-creator/qt-creator
CppTools: Fix indentation of stream operators after string
Task-number: QTCREATORBUG-12053 Change-Id: Ia34165d860bd7fd371a84a8349bed7a3fe1c01a9 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
60c4235bec
commit
904a1d78f4
@@ -634,6 +634,8 @@ void tst_CodeFormatter::expressionContinuation1()
|
||||
<< Line(" ~ << bar +")
|
||||
<< Line(" ~ foo - blah(1)")
|
||||
<< Line(" ~ << '?'")
|
||||
<< Line(" ~ << \"string\"")
|
||||
<< Line(" ~ \" concatenated\"")
|
||||
<< Line(" ~ << \"\\n\";")
|
||||
<< Line("}")
|
||||
;
|
||||
@@ -2159,13 +2161,13 @@ void tst_CodeFormatter::strings()
|
||||
{
|
||||
QList<Line> data;
|
||||
data << Line("char *a = \"foo\"")
|
||||
<< Line(" \"bar\" \"why\"")
|
||||
<< Line(" \"baz\";")
|
||||
<< Line("~ \"bar\" \"why\"")
|
||||
<< Line("~ \"baz\";")
|
||||
<< Line("void foo()")
|
||||
<< Line("{")
|
||||
<< Line(" func(1, 2, \"foo\"")
|
||||
<< Line(" \"bar\"")
|
||||
<< Line(" \"baz\", 4,")
|
||||
<< Line(" ~ \"bar\"")
|
||||
<< Line(" ~ \"baz\", 4,")
|
||||
<< Line(" ~ 5, 6);")
|
||||
<< Line("}")
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user