summaryrefslogtreecommitdiffstats
path: root/tests/auto/linguist/lupdate/testdata/good/parsecpp_clang_only/test_sameLineComments.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/linguist/lupdate/testdata/good/parsecpp_clang_only/test_sameLineComments.cpp')
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parsecpp_clang_only/test_sameLineComments.cpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/tests/auto/linguist/lupdate/testdata/good/parsecpp_clang_only/test_sameLineComments.cpp b/tests/auto/linguist/lupdate/testdata/good/parsecpp_clang_only/test_sameLineComments.cpp
new file mode 100644
index 000000000..6f0ddefab
--- /dev/null
+++ b/tests/auto/linguist/lupdate/testdata/good/parsecpp_clang_only/test_sameLineComments.cpp
@@ -0,0 +1,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");
+};