From c685abebafe7e08428b3f88e0a8d317ec33a3ace Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 23 Aug 2012 01:47:53 +0200 Subject: [PATCH] typeprettyprinter: fix handling of _ at start of identifiers This broke e.g. 'AddDefinition' for 'int foo(int const * const _x)'. resulting in 'foo(const int *const_x)' Change-Id: I6aae6c4a47e127de109b5fbefdf202ca050a391f Reviewed-by: Leandro Melo Reviewed-by: Roberto Raggi --- src/libs/cplusplus/TypePrettyPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/cplusplus/TypePrettyPrinter.cpp b/src/libs/cplusplus/TypePrettyPrinter.cpp index 78475334ffd..6fff1f6c1e7 100644 --- a/src/libs/cplusplus/TypePrettyPrinter.cpp +++ b/src/libs/cplusplus/TypePrettyPrinter.cpp @@ -405,7 +405,7 @@ void TypePrettyPrinter::prependWordSeparatorSpace() const QChar ch = _text.at(0); - if (ch.isLetterOrNumber()) + if (ch.isLetterOrNumber() || ch == QLatin1Char('_')) _text.prepend(" "); }