From d510aaa02952689a3ce6f27b2d786148ce27e665 Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Wed, 6 Jan 2010 14:27:18 +0100
Subject: [PATCH] Fixed problem with nested templates in function declaration
 completion
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Wasn't using a space to separate the closing angular brackets.

Task-number: QTCREATORBUG-547
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
---
 src/libs/cplusplus/NamePrettyPrinter.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libs/cplusplus/NamePrettyPrinter.cpp b/src/libs/cplusplus/NamePrettyPrinter.cpp
index cee4f77fea9..71346d61e93 100644
--- a/src/libs/cplusplus/NamePrettyPrinter.cpp
+++ b/src/libs/cplusplus/NamePrettyPrinter.cpp
@@ -90,6 +90,8 @@ void NamePrettyPrinter::visit(TemplateNameId *name)
         else
             _name += arg;
     }
+    if (! _name.isEmpty() && _name.at(_name.length() - 1) == '>')
+        _name += QLatin1Char(' ');
     _name += QLatin1Char('>');
 }
 
-- 
GitLab