diff options
Diffstat (limited to 'src/plugins/cpptools/cppcodeformatter.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcodeformatter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp index d63fc49f43..c2ac2fb88d 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: @@ -188,6 +189,7 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block) case T_LBRACE: enter(defun_open); break; case T_COLON: enter(member_init_open); enter(member_init_expected); break; case T_OPERATOR: enter(operator_declaration); break; + case T_GREATER_GREATER: break; default: tryExpression(true); break; } break; |