From 5ac981a0aceeb688656453731dee191be251853f Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 19 Oct 2010 12:49:09 +0200 Subject: C++ indenter: Fix indentation after namespace aliases. Task-number: QTCREATORBUG-2574 Reviewed-by: Roberto Raggi --- src/plugins/cpptools/cppcodeformatter.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/cpptools/cppcodeformatter.cpp') 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; -- cgit v1.2.1