diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-10-19 12:49:09 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2010-10-19 12:49:43 +0200 |
commit | 5ac981a0aceeb688656453731dee191be251853f (patch) | |
tree | c9510714bc90c63dc11f7d9679be0cb6e16e72c8 /src/plugins/cpptools/cppcodeformatter.cpp | |
parent | 3c94a89801ec51fba944873593a150fb539fba7c (diff) | |
download | qt-creator-5ac981a0aceeb688656453731dee191be251853f.tar.gz |
C++ indenter: Fix indentation after namespace aliases.
Task-number: QTCREATORBUG-2574
Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/plugins/cpptools/cppcodeformatter.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcodeformatter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp index 3c13d10f58..b733277dd4 100644 --- a/src/plugins/cpptools/cppcodeformatter.cpp +++ b/src/plugins/cpptools/cppcodeformatter.cpp @@ -93,6 +93,7 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block) case namespace_start: switch (kind) { case T_LBRACE: enter(namespace_open); break; + case T_SEMICOLON: case T_RBRACE: leave(); break; } break; |