forked from qt-creator/qt-creator
CppEditor: Ensure a space between ref qualifier and exception spec
Task-number: QTCREATORBUG-27132 Change-Id: Iedb983f58ece345d5997607d2e557e36c951750f Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -531,6 +531,9 @@ void TypePrettyPrinter::visit(Function *type)
|
|||||||
|
|
||||||
// add exception specifier
|
// add exception specifier
|
||||||
if (const StringLiteral *spec = type->exceptionSpecification()) {
|
if (const StringLiteral *spec = type->exceptionSpecification()) {
|
||||||
|
if (type->refQualifier() != Function::NoRefQualifier)
|
||||||
|
_text.append(' ');
|
||||||
|
else
|
||||||
appendSpace();
|
appendSpace();
|
||||||
_text += QLatin1String(spec->chars());
|
_text += QLatin1String(spec->chars());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user