Commit c685abeb authored by hjk's avatar hjk

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: default avatarLeandro Melo <>
Reviewed-by: default avatarRoberto Raggi <>
parent 66bbb8b2
......@@ -405,7 +405,7 @@ void TypePrettyPrinter::prependWordSeparatorSpace()
const QChar ch =;
if (ch.isLetterOrNumber())
if (ch.isLetterOrNumber() || ch == QLatin1Char('_'))
_text.prepend(" ");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment