qtdeclarative/tests/auto/qml/qmlcppcodegen/data
Ulf Hermann 8d9dfd3347 QmlCompiler: Fix conversion from/to void
We can convert everything to void, but we can only convert from void if
the result is either void or the invalid type.

Pick-to: 6.6
Fixes: QTBUG-116088
Change-Id: I532055405865c5b1581f79cc5d76c253bce6138d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-23 15:30:11 +02:00
..
Cycle
ProgressBar Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
ambiguous1 QmlCompiler: Improve ambiguous type detection 2022-04-01 20:58:49 +02:00
ambiguous2 QmlCompiler: Improve ambiguous type detection 2022-04-01 20:58:49 +02:00
hidden QML: Turn singleton/type mismatch into a run time type error 2023-01-27 10:42:06 +01:00
imports QmlCompiler: Improve ambiguous type detection 2022-04-01 20:58:49 +02:00
shared Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
AccessModelMethodsFromOutside.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
ArraySequenceLengthInterop.qml QQmlJSCodeGenerator: fix nullptr dereference 2022-12-12 15:33:18 +01:00
BadType.qml QmlCompiler: Add test case for descriptive name of invalid type 2022-04-28 22:50:25 +00:00
BaseMember.qml
BindingExpression.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
CMakeLists.txt QmlCompiler: Fix conversion from/to void 2023-08-23 15:30:11 +02:00
CxxTypeFromDir.qml QML: Unify postprocessing of imports 2022-12-07 16:48:35 +01:00
CxxTypeFromImplicit.qml QML: Unify postprocessing of imports 2022-12-07 16:48:35 +01:00
Cycle1.qml
Cycle2.qml
Cycle3.qml
Dummy.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
Dummy2.qml QmlCompiler: Stabilize test 2023-08-22 20:11:34 +02:00
Enums.qml
Foozle.qml
Loopy.qml
OkType.qml QmlCompiler: Add test case for descriptive name of invalid type 2022-04-28 22:50:25 +00:00
Panel.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
RootWithoutId.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
SelectionRectangle.qml
Test.qml QmlCompiler: Check builtin type aliases after list resolution 2022-06-15 09:43:01 +02:00
TestCase.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
WindowDerived.qml QmlCompiler: Fix a number of warts regarding type lookup 2022-03-23 12:29:26 +01:00
aliasLookup.qml
ambiguous.h Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
ambiguousAs.qml QmlCompiler: Do not generate invalid code on generate_As 2023-03-17 20:57:14 +01:00
ambiguousSignals.qml QmlCompiler: Ignore cloned signals when analyzing signal handlers 2022-12-07 13:50:01 +01:00
anchorsFill.qml
argumentConversion.qml QmlCompiler: Don't push type conversions back into the engine 2022-07-05 19:50:24 +02:00
array.qml
arrayCtor.qml QmlCompiler: Allow construction of Array objects 2023-08-22 17:16:53 +02:00
asCast.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
attachedBaseEnum.qml
badSequence.qml QML: Allow more conversions between different lists 2023-01-26 11:42:33 +01:00
basicBlocksWithBackJump.qml Compiler: Separate function prolog block and add validation of blocks 2023-08-04 09:34:09 +02:00
basicBlocksWithBackJump_infinite.qml Compiler: Separate function prolog block and add validation of blocks 2023-08-04 09:34:09 +02:00
basicDTZ.qml QmlCompiler: Add further tests for DTZ 2023-06-23 18:49:37 +00:00
bindToValueType.qml
birthdayparty.cpp QmlCompiler: Recognize QStringList and QVariantList as special lists 2023-04-24 22:22:14 +02:00
birthdayparty.h QmlCompiler: Recognize QStringList and QVariantList as special lists 2023-04-24 22:22:14 +02:00
blockComments.qml
boolCoercions.qml QmlCompiler: Allow coercing anything to bool 2023-03-10 23:42:49 +01:00
boolPointerMerge.qml QmlCompiler: Merge bool and any pointer type into the pointer type 2023-04-15 20:14:42 +02:00
boundComponents.qml qmlcompiler: Evaluate pragma ComponentBehavior 2022-05-24 15:44:16 +02:00
callContextPropertyLookupResult.qml
callWithSpread.qml QmlCompiler: Don't crash on CallWithSpread 2022-11-22 12:32:23 +01:00
childobject.qml QmlCompiler: Improve method overload selection 2023-03-02 13:17:47 +01:00
colorAsVariant.qml
colorString.qml
componentReturnType.qml
compositeTypeMethod.qml
compositesingleton.qml
consoleObject.qml QmlCompiler: Implement console logging methods 2022-11-23 10:27:55 +01:00
construct.qml
contextParam.qml
conversionDecrement.qml QmlCompiler: Add missing parentheses to in-place arithmetic operations 2022-06-28 01:52:43 +02:00
conversions.qml
conversions2.qml Replace signal name manipulations with QQmlSignalNames 2023-08-15 12:13:31 +00:00
cppbaseclass.h QmlCompiler: Do not crash on version-mismatched property access 2022-10-06 20:37:53 +02:00
curlygrouped.qml
cycleHead.qml
dateConstruction.qml QmlCompiler: Allow construction of Date objects 2023-08-18 14:26:04 +02:00
dateConversions.qml QmlCompiler: Handle various date and time conversions correctly 2023-01-17 21:58:32 +01:00
deadShoeSize.qml
deadStoreLoop.qml
dialog.qml
dialogButtonBox.qml Controls: Use PlatformDialogHelper for enums in DialogButtonBox 2023-02-15 14:04:44 +01:00
druggeljug.h QmlCompiler: Handle various date and time conversions correctly 2023-01-17 21:58:32 +01:00
dummy_imports.qml tst_qmlcppcodegen: Add QML dependency for Android 2023-01-25 17:08:36 +00:00
dummyobjekt.h QtQml: Always throw when requesting an enum from an invalid singleton 2023-03-01 11:56:19 +01:00
dynamicmeta.h Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
dynamicscene.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
enumConversion.qml Fix comparison AOT-lookup and intended type in value types 2022-12-05 17:39:24 +01:00
enumFromBadSingleton.qml QtQml: Always throw when requesting an enum from an invalid singleton 2023-03-01 11:56:19 +01:00
enumInvalid.qml
enumLookup.qml QmlCompiler: Allow wrapping enums into int 2022-07-07 19:33:27 +02:00
enumMarkedAsFlag.qml qml compiler: Detect if user confuses flags and enums 2023-06-29 09:28:52 +02:00
enumProblems.qml QmlCompiler: Use actual type of enums, rather than int 2023-04-26 10:57:27 +02:00
enumProperty.h QmlCompiler: Use int for flag-type enums 2023-06-23 21:22:34 +02:00
enumScope.qml
enumproblems.h qml compiler: Detect if user confuses flags and enums 2023-06-29 09:28:52 +02:00
enumsInOtherObject.qml
enumsUser.qml
equalityQObjects.qml qmlcachegen: Improve QObject comparison code generation test 2023-01-31 19:12:21 +01:00
equalityQUrl.qml qmlsc: Support equality operations for QUrl 2023-02-16 11:17:28 +01:00
equalityTestsWithNullOrUndefined.qml QmlCompiler: Add missing conversion for equality with null or undefined 2023-06-12 13:32:15 +02:00
equalityVarAndNonStorable.qml qmlcachegen: fix nonstrict equality code generation 2023-01-31 19:12:30 +01:00
equalsUndefined.qml
exceptionFromInner.qml QML: Encode "missing" line number as negated address of stack frame 2023-05-09 21:28:06 +02:00
excessiveParameters.qml
extendedTypes.qml
failures.qml QmlCompiler: Allow creation of structured value types 2023-07-06 21:29:39 +02:00
fallbacklookups.qml QML: Handle dynamic meta objects in AOT lookups 2022-03-03 18:44:38 +01:00
fileDialog.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
flagEnum.qml QmlCompiler: Use int for flag-type enums 2023-06-23 21:22:34 +02:00
fromBoolValue.qml QmlCompiler: Analyze type conversions before reads in basic blocks 2022-04-06 17:12:50 +02:00
funcWithParams.qml
functionLookup.qml
functionReturningVoid.qml
functionTakingVar.qml
gadgetwithenum.h qmltyperegistrar: Generate accessSemantics="none" for foreign namespaces 2022-11-29 12:32:27 +01:00
globals.qml
idAccess.qml
immediateQuit.qml
importsFromImportPath.qml
infinities.qml
infinitiesToInt.qml QmlCompiler: Test that infinities cleanly cast to int 2022-12-23 09:02:24 +01:00
intEnumCompare.qml
intOverflow.qml
intToEnum.qml QmlCompiler: Do not crash when converting number literals to enums 2023-05-04 11:48:09 +02:00
interactive.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
interceptor.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
invisible.h QmlCompiler: Force QObject* for LoadElement on list properties 2023-07-26 16:54:52 +00:00
invisibleBase.qml
invisibleListElementType.qml QmlCompiler: Don't crash when trying to resolve null list types 2022-06-02 10:07:40 +02:00
invisibleTypes.qml QmlCompile: Double-check types before generating lookups 2022-04-25 08:44:43 +02:00
isnan.qml
javaScriptArgument.qml QmlCompiler: Really fix writing into argument values 2022-07-05 19:50:19 +02:00
jsArrayMethods.qml QmlCompiler: Inline some array methods 2023-04-28 21:24:17 +02:00
jsArrayMethodsUntyped.qml QmlCompiler: Inline some array methods 2023-04-28 21:24:17 +02:00
jsArrayMethodsWithParams.qml QmlCompiler: Inline some array methods 2023-04-28 21:24:17 +02:00
jsArrayMethodsWithParamsUntyped.qml QmlCompiler: Inline some array methods 2023-04-28 21:24:17 +02:00
jsMathObject.qml QmlCompiler: Implement Math.pow() 2022-07-21 13:19:04 +02:00
jsimport.qml
jsmoduleimport.qml
layouts.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
letAndConst.qml QmlCompiler: Ignore InitializeDeadTemporalZone instruction 2022-11-11 12:07:42 +01:00
library.js
listAsArgument.qml QmlCompiler: Allow lists as arguments to methods 2022-11-10 15:00:11 +01:00
listConversion.qml QmlCompiler: Recognize QStringList and QVariantList as special lists 2023-04-24 22:22:14 +02:00
listIndices.qml QmlCompiler: Detect non-integral values when accessing QQmlListProperty 2022-05-19 22:30:23 +02:00
listOfInvisible.qml QmlCompiler: Force QObject* for LoadElement on list properties 2023-07-26 16:54:52 +00:00
listPropertyAsModel.qml QQmlListAccessor: Accept QQmlListProperty 2022-07-26 21:17:28 +02:00
listlength.qml
math.qml QML: Allow as-casting to value types 2023-03-03 12:02:00 +01:00
mathMinMax.qml QmlCompiler: Implement multi-argument Math.{min,max}() 2023-02-23 09:51:22 +01:00
mathOperations.qml QmlCompiler: Implement remaining operators 2022-08-29 13:21:06 +02:00
mergedObjectRead.qml Fix content pointer check for QObject* 2023-04-19 09:30:58 +02:00
mergedObjectWrite.qml Fix content pointer check for QObject* 2023-04-19 09:30:58 +02:00
methodOnListLookup.qml QmlCompiler: Allow calling methods on potentially undefined QObjects 2023-07-28 16:42:45 +02:00
methods.qml Replace signal name manipulations with QQmlSignalNames 2023-08-15 12:13:31 +00:00
modulePrefix.qml
moveRegVoid.qml
multiforeign.h QmlCompiler: Store imported types in a QList 2022-11-25 00:04:02 +01:00
multiforeign.qml QmlCompiler: Store imported types in a QList 2022-11-25 00:04:02 +01:00
multipleCtors.qml QmlCompiler: Use value type ctors 2023-03-09 21:36:30 +01:00
namespaceWithEnum.qml qmltyperegistrar: Generate accessSemantics="none" for foreign namespaces 2022-11-29 12:32:27 +01:00
noBindingLoop.qml
noQQmlData.qml
nonNotifyable.qml
noscope.qml
notEqualsInt.qml
notNotString.qml QmlCompiler: Allow any conversion possible via QJSPrimitiveValue 2022-08-03 08:32:50 +02:00
nullAccess.qml
nullComparison.qml QmlCompiler: Fix comparison of null and undefined 2022-11-23 10:27:48 +01:00
numbersInJsPrimitive.qml QmlCompiler: Support more integer types 2023-03-30 15:46:55 +02:00
objectInVar.qml
objectLookupOnListElement.qml QML: Allow as-casting to value types 2023-03-03 12:02:00 +01:00
objectWithStringListMethod.qml QmlCompiler: Correctly handle lookups in results of method calls 2023-07-25 16:33:29 +02:00
objectwithmethod.h QmlCompiler: Correctly handle lookups in results of method calls 2023-07-25 16:33:29 +02:00
outOfBounds.qml QmlCompiler: Implement console logging methods 2022-11-23 10:27:55 +01:00
overriddenMember.qml
ownProperty.qml
page.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
parentProp.qml
person.cpp QmlCompiler: Do check specificType on SetLookup 2023-05-15 10:46:27 +02:00
person.h QmlCompiler: Allow calling methods on potentially undefined QObjects 2023-07-28 16:42:45 +02:00
popContextAfterRet.qml
prefixedMetaType.qml QmlCompiler: Respect qualified property types 2022-04-06 05:02:34 +02:00
pressAndHoldButton.qml
propertyChanges.qml
registerPropagation.qml QmlCompiler: Initialize registers with undefined where necessary 2022-07-05 19:50:28 +02:00
registerelimination.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
revisions.qml
scopeVsObject.qml
script.js
script.mjs
sequenceToIterable.h QML: Allow conversion from QV4::Sequence to different iterable 2023-05-09 21:28:06 +02:00
sequenceToIterable.qml QmlCompiler: Re-allow conversion from QObject to QString 2023-05-09 21:28:07 +02:00
sequencetypeexample.cpp QQmlJSCodeGenerator: fix nullptr dereference 2022-12-12 15:33:18 +01:00
sequencetypeexample.h QQmlJSCodeGenerator: fix nullptr dereference 2022-12-12 15:33:18 +01:00
setLookupConversion.qml QmlCompiler: Fix SetLookup on shadowable properties 2023-08-08 15:12:46 +02:00
shadowedMethod.qml QmlCompiler: Relax shadowing check 2023-05-02 19:29:25 +02:00
shifts.qml
signal.qml
signalHandler.qml QmlCompiler: Handle trivial signal handler constructions 2022-07-07 19:33:39 +02:00
signalIndexMismatch.qml Remove signal index mismatch in aot-compiled code 2022-11-15 11:52:45 +01:00
signalsWithLists.qml Properly support lists as method arguments 2023-05-09 21:28:06 +02:00
signatureIgnored.qml Add option to enforce function signatures 2022-10-14 16:36:36 +02:00
specificParent.qml
state.h Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
storeElementSideEffects.qml QmlCompiler: Mark StoreElement on JS values has having side effects 2022-12-15 14:03:55 +01:00
stringArg.qml QmlCompiler: Inline String.arg() into generated code 2022-06-24 22:17:17 +02:00
stringLength.qml
stringToByteArray.qml QmlCompiler: Support conversions between QString and QByteArray 2022-07-22 21:30:12 +02:00
structuredValueType.qml QmlCompiler: Allow creation of structured value types 2023-07-06 21:29:39 +02:00
testlogger.js Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
text.qml
theme.cpp Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
theme.h Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
themerbad.qml
themergood.qml
thisObject.qml QmlCompiler: Implement ConvertThisToObject and basic DTZ 2023-04-25 16:53:00 +02:00
throwObjectName.qml QmlCompiler: Properly annotate ThrowException instruction 2022-06-23 09:35:56 +02:00
timelinetheme.cpp Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
timelinetheme.h Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
toString.qml QmlCompiler: Reject conversions via QJSValue 2022-06-15 09:43:01 +02:00
topLevelComponent.qml QmlCompiler: Do not stop parsing on top-level Component elements 2023-05-03 14:38:52 +02:00
translation.qml QmlCompiler: Inline translation methods 2022-06-24 14:47:58 +02:00
trivialSignalHandler.qml QmlCompiler: Handle trivial signal handler constructions 2022-07-07 19:33:39 +02:00
tst_qmlcppcodegen_verify.cpp QmlCompiler: Optimize storage for register variables 2023-07-24 21:26:57 +02:00
typePropagationLoop.qml QmlCompiler: Properly check contained type for enums 2022-10-12 20:43:34 +02:00
typePropertyClash.qml QmlCompiler: Don't retrieve metaobjects for value and sequence types 2022-06-10 14:41:49 +02:00
typedArray.qml QmlCompiler: Add support for LoadElement on strings 2022-05-24 15:44:16 +02:00
undefinedResets.qml QmlCompiler: Allow storeNameSloppy to reset a property 2022-07-11 13:37:26 +02:00
undefinedToDouble.qml QmlCompiler: Fix coercion of undefined to float and double 2023-02-21 12:13:59 +01:00
unknownAttached.qml
unknownParameter.qml
unstoredUndefined.qml QmlCompiler: Don't generate invalid code for storing undefined 2022-06-29 13:26:07 +02:00
unusedAttached.qml
urlString.qml
usingCxxTypesFromFileImports.qml QML: Unify postprocessing of imports 2022-12-07 16:48:35 +01:00
valueTypeCast.qml QML: Allow as-casting to value types 2023-03-03 12:02:00 +01:00
valueTypeCopy.qml QML: Add an "Addressable" value to ValueTypeBehavior 2023-03-02 17:54:30 +01:00
valueTypeDefault.qml QmlCompiler: Disallow reading from values affected by side effects 2023-05-04 16:44:44 +02:00
valueTypeLists.qml QmlCompiler: Add support for LoadElement on strings 2022-05-24 15:44:16 +02:00
valueTypeProperty.qml
valueTypeReference.qml QML: Add an "Addressable" value to ValueTypeBehavior 2023-03-02 17:54:30 +01:00
variantMapLookup.h QmlCompiler: Implement get lookup of variantMap properties 2023-02-22 16:21:09 +01:00
variantMapLookup.qml QmlCompiler: Implement get lookup of variantMap properties 2023-02-22 16:21:09 +01:00
variantReturn.qml QML: Fix call frame conversion for QVariant return types 2023-05-04 11:48:09 +02:00
variantlist.qml
variantreturn.h QML: Fix call frame conversion for QVariant return types 2023-05-04 11:48:09 +02:00
versionmismatch.qml QmlCompiler: Do not crash on version-mismatched property access 2022-10-06 20:37:53 +02:00
voidConversion.qml QmlCompiler: Fix conversion from/to void 2023-08-23 15:30:11 +02:00
voidfunction.qml
weathermoduleurl.h QmlCompiler: Allow creation of structured value types 2023-07-06 21:29:39 +02:00
withlength.h QmlCompiler: Allow creation of structured value types 2023-07-06 21:29:39 +02:00
wrapwithvariant.h Allow extraction of V4 values from QJSPrimitiveValue 2023-01-16 23:03:57 +00:00