summaryrefslogtreecommitdiffstats
path: root/tests/auto/linguist/lupdate/testdata/good/parsecpp_clang_only/test_sameLineComments.cpp
blob: 6f0ddefab363b35f8e20bdb116e14c47f79b4013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only


























#include <QtCore/QtCore>

class CommentOnSameLineMetaDataComment
{
    Q_OBJECT
    //= other metaData
    void hello(int something /*= metaData1 */, QString str = tr("meta data comment before translation. , and = in between"));
    void hellobis(/*= metaData2 */QString str = tr("meta data comment before translation. = in between"));
    void hellobiss()
    {
        hellobis(/*= metaData3*/ tr("meta data comment before translation"));
    }
};
class CommentOnSameLineExtraComment
{
    Q_OBJECT
    //: other extra comment
    void hello(int something /*: extra1 */, QString str = tr("extra comment before translation. , and = in between"));
    void hellobis(/*: extra2 */QString str = tr("extra comment before translation. = in between"));
    void hellobiss()
    {
        hellobis(/*: extra3*/ tr("extra comment before translation"));
    }
    //: other extra comment
    QString toto/*: extra4*/; QString titi = tr("extra comment before translation. ; in between");
};