qt6-bb10/tests/auto/tools/moc
Fabian Kosmale fa987d4441 MetaObject: Store the QMetaType of the methods
This does the analog of 46f407126e for the
methods we care about (signals, slots, Q_INVOKABLEs). In addition to the
actual QMetaType, we store an array with offsets so that we later can do
a mapping from methodIndex to metatype.

The newly added QMetaMethod::{return,parameter}MetaType methods can then
be used to retrieve the metatypes.

This does however require that all involved types are complete. This is
unfortunately not a feasible requirement. Thus, we only populate the
metatype array on a best effort basis. For any incomplete type, we store
QMetaType::Unknown. Then, when accessing the metatype, we fall back to
the old string based code base if it's Unknown.

Squashes "moc: support incomplete types" and  "Fix compile failures
after QMetaMethod change"


Fixes: QTBUG-82932
Change-Id: I6b7a587cc364b7cad0c158d6de54e8a204289ad4
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2020-06-02 22:42:15 +02:00
..
Test.framework/Headers
subdir
task71021
testproject
.gitattributes
.gitignore Add support for machine-readable JSON output to the MOC 2019-10-04 18:35:29 +02:00
Header
allmocs_baseline_in.json moc: handle include directives in enums 2020-05-27 09:21:08 +02:00
assign-namespace.h
backslash-newlines.h
c-comments.h
cstyle-enums.h
cxx-attributes.h moc: Fix parsing of [[deprecated]] enum values 2019-03-11 14:11:33 +00: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
cxx11-final-classes.h
cxx17-namespaces.h
dir-in-include-path.h
dollars.h
enum_inc.h moc: handle include directives in enums 2020-05-27 09:21:08 +02:00
enum_with_include.h moc: handle include directives in enums 2020-05-27 09:21:08 +02:00
error-on-wrong-notify.h
escapes-in-string-literals.h
extraqualification.h
forgotten-qinterface.h
forward-declared-param.h MetaObject: Store the QMetaType of the methods 2020-06-02 22:42:15 +02:00
forwarddeclaredparam.h MetaObject: Store the QMetaType of the methods 2020-06-02 22:42:15 +02:00
function-with-attributes.h
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
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
interface-from-include.h
macro-on-cmdline.h
moc.pro moc: handle include directives in enums 2020-05-27 09:21:08 +02:00
moc_include.h Introduce Q_MOC_INCLUDE 2020-01-17 02:22:22 +01:00
namespace.h
namespace_no_merge.h
namespaced-flags.h
no-keywords.h
non-gadget-parent-class.h
oldstyle-casts.h
os9-newlines.h
parse-boost.h
parse-defines.h MetaObject: Store the QMetaType of the methods 2020-06-02 22:42:15 +02:00
plugin_metadata.h
pp-dollar-signs.h
pure-virtual-signals.h
qinvokable.h
qprivateslots.h
qtbug-35657-gadget.h
related-metaobjects-in-gadget.h
related-metaobjects-in-namespaces.h
related-metaobjects-name-conflict.h
single-quote-digit-separator-n3781.h
single_function_keyword.h
slots-with-void-template.h
task87883.h
task192552.h
task234909.h
task240368.h
template-gtgt.h
trigraphs.h
tst_moc.cpp MetaObject: Store the QMetaType of the methods 2020-06-02 22:42:15 +02:00
unterminated-function-macro.h
using-namespaces.h
warn-on-multiple-qobject-subclasses.h
warn-on-property-without-read.h
win-newlines.h