qt6-bb10/tests/auto/tools/moc
Marc Mutz a0f9aef11b Long live Q_GADGET_EXPORT!
Like Q_NAMESPACE_EXPORT for Q_NAMESPACE, this variant of Q_GADGET
allows passing an export macro. This is useful to avoid exporting the
whole class just to get the staticMetaObject hidden therein exported.

Before anyone asks: No, we don't need Q_OBJECT_EXPORT, because QObject
subclasses, being polymorphic, always need to have a class-level
export macro (to export their vtable), but while that technique also
works for value classes (the Q_GADGET audience), it is not desirable
for them, because it makes inline functions exported in Windows debug
builds, which is not what we want, because it needlessly restricts
what you can to with the inline functions (e.g. remove).

[ChangeLog][QtCore] Added the Q_GADGET_EXPORT macro, which is like
Q_GADGET, but allows passing an export macro (like Q_NAMESPACE_EXPORT
for Q_NAMESPACE).

Fixes: QTBUG-55458
Change-Id: I546297de1e8aa45d83381991bcd3fbca61e1eef0
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2021-11-27 01:25:10 +01:00
..
Test.framework/Headers Updated license headers 2016-01-21 18:55:18 +00:00
subdir moc: get the system #defines from the compiler itself 2016-07-20 02:54:03 +00:00
task71021
testproject Updated license headers 2016-01-21 18:55:18 +00:00
.gitattributes
.gitignore Add support for machine-readable JSON output to the MOC 2019-10-04 18:35:29 +02:00
CMakeLists.txt CMake: remove support for building Qt with the old Intel compiler 2021-10-13 12:49:49 -07:00
Header
allmocs_baseline_in.json moc: Add relative property index to JSON output of PropertyDef 2021-06-02 19:03:45 +02:00
assign-namespace.h Updated license headers 2016-01-21 18:55:18 +00:00
backslash-newlines.h Fix warnings in tst_moc 2020-08-23 01:18:13 +02:00
c-comments.h Updated license headers 2016-01-21 18:55:18 +00:00
cstyle-enums.h Updated license headers 2016-01-21 18:55:18 +00:00
cxx-attributes.h Silence a bunch of gcc warnings for the moc test 2021-03-29 15:59:48 +02:00
cxx11-enums.h Remove handling of missing Q_COMPILER_CLASS_ENUM 2019-04-06 16:19:14 +00:00
cxx11-explicit-override-control.h Silence a bunch of gcc warnings for the moc test 2021-03-29 15:59:48 +02:00
cxx11-final-classes.h Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
cxx11-trailing-return.h tst_moc: fix returning-reference-to-local warning 2021-05-04 16:21:50 +02:00
cxx17-namespaces.h tst_moc: fix include guards 2017-03-25 12:53:09 +00:00
dir-in-include-path.h Updated license headers 2016-01-21 18:55:18 +00:00
dollars.h Updated license headers 2016-01-21 18:55:18 +00:00
enum_inc.h moc: Handle include in enum, take 2 2020-11-03 19:36:34 +00:00
enum_with_include.h Handle even more include in enum cases 2021-08-06 11:54:11 +00:00
error-on-wrong-notify.h moc: Allow NOTIFY signals defined in parent classes 2017-05-23 11:11:52 +00:00
escapes-in-string-literals.h Updated license headers 2016-01-21 18:55:18 +00:00
extraqualification.h Updated license headers 2016-01-21 18:55:18 +00:00
forgotten-qinterface.h Updated license headers 2016-01-21 18:55:18 +00:00
forward-declared-param.h Extend QSequentialIterable and add QAssociativeIterable 2020-09-19 11:14:30 +02:00
forwarddeclaredparam.h MetaObject: Store the QMetaType of the methods 2020-06-02 22:42:15 +02:00
function-with-attributes.h Updated license headers 2016-01-21 18:55:18 +00:00
fwdclass1.h Introduce Q_MOC_INCLUDE 2020-01-17 02:22:22 +01:00
fwdclass2.h Introduce Q_MOC_INCLUDE 2020-01-17 02:22:22 +01:00
fwdclass3.h Introduce Q_MOC_INCLUDE 2020-01-17 02:22:22 +01:00
gadgetwithnoenums.h Updated license headers 2016-01-21 18:55:18 +00:00
grand-parent-gadget-class.h Support Q_GADGET QMetaObject super class hierarchies across templates 2019-12-12 13:02:52 +01:00
interface-from-framework.h Updated license headers 2016-01-21 18:55:18 +00:00
interface-from-include.h Updated license headers 2016-01-21 18:55:18 +00:00
macro-on-cmdline.h Updated license headers 2016-01-21 18:55:18 +00:00
moc_include.h Introduce Q_MOC_INCLUDE 2020-01-17 02:22:22 +01:00
namespace.h moc: Don't error our when parsing "using namespace __identifier(...)" 2018-03-05 06:54:06 +00:00
namespace_no_merge.h moc: support nested q_namespaces 2016-09-28 16:44:19 +00:00
namespaced-flags.h Updated license headers 2016-01-21 18:55:18 +00:00
no-keywords.h Fix warnings in tst_moc 2020-08-23 01:18:13 +02:00
non-gadget-parent-class.h Updated license headers 2016-01-21 18:55:18 +00:00
oldstyle-casts.h Updated license headers 2016-01-21 18:55:18 +00:00
os9-newlines.h Updated license headers 2016-01-21 18:55:18 +00:00
parse-boost.h Updated license headers 2016-01-21 18:55:18 +00:00
parse-defines.h MetaObject: Store the QMetaType of the methods 2020-06-02 22:42:15 +02:00
plugin_metadata.h Updated license headers 2016-01-21 18:55:18 +00:00
pointery_to_incomplete.h Remove unnecessary ; after function implementations 2020-07-06 11:46:39 +02:00
pp-dollar-signs.h Updated license headers 2016-01-21 18:55:18 +00:00
pure-virtual-signals.h Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
qinvokable.h Updated license headers 2016-01-21 18:55:18 +00:00
qprivateslots.h Remove unnecessary ; after function implementations 2020-07-06 11:46:39 +02:00
qtbug-35657-gadget.h Updated license headers 2016-01-21 18:55:18 +00:00
related-metaobjects-in-gadget.h Updated license headers 2016-01-21 18:55:18 +00:00
related-metaobjects-in-namespaces.h Updated license headers 2016-01-21 18:55:18 +00:00
related-metaobjects-name-conflict.h Updated license headers 2016-01-21 18:55:18 +00:00
single-quote-digit-separator-n3781.h Updated license headers 2016-01-21 18:55:18 +00:00
single_function_keyword.h Fix warnings in tst_moc 2020-08-23 01:18:13 +02:00
slots-with-void-template.h Updated license headers 2016-01-21 18:55:18 +00:00
task87883.h Updated license headers 2016-01-21 18:55:18 +00:00
task192552.h Updated license headers 2016-01-21 18:55:18 +00:00
task234909.h Updated license headers 2016-01-21 18:55:18 +00:00
task240368.h Updated license headers 2016-01-21 18:55:18 +00:00
template-gtgt.h Use QList instead of QVector in other qtbase tests 2020-07-07 11:48:45 +02:00
trigraphs.h Updated license headers 2016-01-21 18:55:18 +00:00
tst_moc.cpp Long live Q_GADGET_EXPORT! 2021-11-27 01:25:10 +01:00
unterminated-function-macro.h Updated license headers 2016-01-21 18:55:18 +00:00
using-namespaces.h Updated license headers 2016-01-21 18:55:18 +00:00
warn-on-multiple-qobject-subclasses.h Updated license headers 2016-01-21 18:55:18 +00:00
warn-on-property-without-read.h Updated license headers 2016-01-21 18:55:18 +00:00
win-newlines.h Updated license headers 2016-01-21 18:55:18 +00:00