OSDN Git Service

QmlJS indenter: Fix labelled statements and break/continue with label.
authorChristian Kamm <christian.d.kamm@nokia.com>
Wed, 7 Sep 2011 11:30:48 +0000 (13:30 +0200)
committerChristian Kamm <christian.d.kamm@nokia.com>
Wed, 14 Sep 2011 09:02:45 +0000 (11:02 +0200)
commit16b4a6fe733b9973311ae19c6ecc90b1a6c53f36
treebcc70f823600c6aef5a820cff6df3e6af44701db
parentbbc48690e85adbe5ea8a5ffe14d5ba26fc7a3b7c
QmlJS indenter: Fix labelled statements and break/continue with label.

Also do some cleanup to make handling of substatements nicer.

Change-Id: I78773fc81d9b0058fa97c5cef393cca34b7fd885
Reviewed-on: http://codereview.qt-project.org/4413
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
src/libs/qmljs/qmljscodeformatter.cpp
src/libs/qmljs/qmljscodeformatter.h
src/plugins/qmljstools/qmljsqtstylecodeformatter.cpp
tests/auto/qml/qmleditor/qmlcodeformatter/tst_qmlcodeformatter.cpp