summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools
diff options
context:
space:
mode:
authorDave Lewis <dmlewis@g.clemson.edu>2014-03-17 15:54:34 -0400
committerErik Verbruggen <erik.verbruggen@digia.com>2014-03-25 15:29:08 +0100
commit5510ec0552001e12706e20ab6919a57ac2717726 (patch)
treeda5a82cc39129c239f66f4e4692c84576873ffff /src/plugins/cpptools
parent61f18e6fc2707439dcbe378dd137c7c9aeb7be18 (diff)
downloadqt-creator-5510ec0552001e12706e20ab6919a57ac2717726.tar.gz
CppTools: Fix indent after template params
Add case for ">>" token when in template_param state. Task-number: QTCREATORBUG-9640 Change-Id: Icc5fc868202d6503d2afd954aa739cd2634cdff1 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools')
-rw-r--r--src/plugins/cpptools/cppcodeformatter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp
index d63fc49f43..dc01741e84 100644
--- a/src/plugins/cpptools/cppcodeformatter.cpp
+++ b/src/plugins/cpptools/cppcodeformatter.cpp
@@ -169,6 +169,7 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block)
switch (kind) {
case T_LESS: enter(template_param); break;
case T_GREATER: leave(); break;
+ case T_GREATER_GREATER: leave(); leave(); break; // call leave twice to pop both template_param states
} break;
case operator_declaration: