aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/cplusplus/TypePrettyPrinter.cpp
diff options
context:
space:
mode:
authorhjk <qthjk@ovi.com>2012-08-23 01:47:53 +0200
committerhjk <qthjk@ovi.com>2012-08-23 10:56:33 +0200
commitc685abebafe7e08428b3f88e0a8d317ec33a3ace (patch)
tree9472b58a7d242a7ab1894737890d30f2044e845a /src/libs/cplusplus/TypePrettyPrinter.cpp
parent66bbb8b29110ecd650293c86277154b5fbac18b4 (diff)
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 <leandro.melo@nokia.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/libs/cplusplus/TypePrettyPrinter.cpp')
-rw-r--r--src/libs/cplusplus/TypePrettyPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/cplusplus/TypePrettyPrinter.cpp b/src/libs/cplusplus/TypePrettyPrinter.cpp
index 78475334ff..6fff1f6c1e 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(" ");
}