29 #ifndef CXXATTRIBUTE_H
30 #define CXXATTRIBUTE_H
32 #include <QtCore/QObject>
49 [[deprecated(
"reason[[")]]
void deprecatedReasonWith2LBRACK() {}
50 [[deprecated(
"reason]")]]
void deprecatedReasonWithRBRACK() {}
51 [[deprecated(
"reason]]")]]
void deprecatedReasonWith2RBRACK() {}
52 void slotWithArguments([[tst_moc::maybe_unused]]
int) {}
53 #if !defined(_MSC_VER) || _MSC_VER >= 1912
56 Q_INVOKABLE [[tst_moc::noreturn]]
void noreturnSlot() {
throw "unused"; }
57 [[tst_moc::noreturn]]
Q_SCRIPTABLE void noreturnSlot2() {
throw "unused"; }
58 [[deprecated]]
int returnInt() {
return 0; }
59 Q_SLOT [[tst_moc::noreturn]] [[deprecated]]
void noreturnDeprecatedSlot() {
throw "unused"; }
60 Q_INVOKABLE void noreturnSlot3() [[tst_moc::noreturn]] {
throw "unused"; }
67 # define TEST_COMPILER_DEPRECATION [[deprecated]]
68 # define TEST_COMPILER_DEPRECATION_X(x) [[deprecated(x)]]
70 # define TEST_COMPILER_DEPRECATION Q_DECL_ENUMERATOR_DEPRECATED
71 # define TEST_COMPILER_DEPRECATION_X(x) Q_DECL_ENUMERATOR_DEPRECATED_X(x)
void deprecatedReasonWithLBRACK()
The QObject class is the base class of all Qt objects.
#define TEST_COMPILER_DEPRECATION_X(x)
#define TEST_COMPILER_DEPRECATION
@ TEST_COMPILER_DEPRECATION_X
@ TEST_COMPILER_DEPRECATION
@ TEST_COMPILER_DEPRECATION_X
@ TEST_COMPILER_DEPRECATION
#define QT_WARNING_DISABLE_DEPRECATED
#define QT_WARNING_DISABLE_GCC(text)
#define QT_WARNING_DISABLE_CLANG(text)