blob: b71267b625b0e135aaa5a6c18a54a8f29bce0fa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qcomparisontesthelper_p.h"
QT_BEGIN_NAMESPACE
namespace QTestPrivate {
QByteArray formatTypeWithCRefImpl(QMetaType type, bool isConst, bool isRef, bool isRvalueRef)
{
QByteArray res(type.name());
if (isConst)
res.append(" const");
if (isRef)
res.append(isRvalueRef ? " &&" : " &");
return res;
}
} // namespace QTestPrivate
QT_END_NAMESPACE
|