| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Pick-to: 6.10
Change-Id: Ie3007e3d0e5baf0440788ee9a89133ea4a003f70
Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
On this occasion, add a test for a free operator<=>()
behind guards.
Task-number: PYSIDE-3245
Change-Id: Ife8f17add0a8f1c3bd1194a5dfabce4f97c78006
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-3245
Change-Id: I84bac9ef5afdbb4356884a7933ed8209d886d836
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Traverse the typedefs of a scope and check whether they point to some
enumeration and whether a type entry for the source exists. Add these
like normal enums. In the converter type check, add a clause for the
alias source/target type, allowing for using the values
interchangeably.
[ChangeLog][shiboken6] shiboken6 can now also generate typedef'ed
enumerations for purposes of renaming/deprecating enumerations.
Pick-to: 6.10
Change-Id: Iec10c53b1167b958647242cedb04f8ff01ad1085
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Complements 5608c60f47f6c39a6c1dee5fb165c6d70bd1ee3f.
Task-number: PYSIDE-3171
Pick-to: 6.9 6.8
Change-Id: I57f0d8bbd8d0f82367f03d0f55297e74361c44da
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add search for the instantation name when resolving types along with a
test.
[ChangeLog][shiboken6] Template specializations
like "std::optional<int>" can now be specified as primitive types
with converter code.
Change-Id: I20845b21ede1101cb3015de90555b74368f686e9
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-2221
Change-Id: I45db5a10308338d446bb2ac888219477fed6e405
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Generalize the concept which so far has been only used for
std::unique_ptr.
[ChangeLog][shiboken6] The handling of move only value types are has
been improved
Task-number: PYSIDE-3004
Change-Id: Ic509ceec7d78f4a576d1963724c898ed99110078
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change 2107b9c16d7be1292c5439a47ed31871906e0b1f implemented making
base class functions visible via "using" directive. However, since it
was implemented in getInheritedFunctions() based on names, it did not
work for constructors since they have a different name.
As a consequence, no tp_init function was generated for the test case
and the tp_init function was called instead, creating a base class
instance.
Add a function that adds the base constructors for the simple
case of the class having no constructor in case "using" was
specified.
Add a data member to the test to test this.
[ChangeLog][Shiboken6] Making base class constructors
visible via "using" directive has been fixed for simple cases.
Pick-to: 6.8
Task-number: PYSIDE-2966
Change-Id: I8e11cdaf0d1af0f7fad7834039a23322e146c9e0
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.8
Change-Id: I1a5964463f703ade0657816cb974206355a5ae5b
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
Make the comparison operators const.
Pick-to: 6.7 6.5
Change-Id: Ie5169da64e8cc5e0ec4c01ae14f464c85efed3ce
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Introduce "Python override" as a special type of user-added function
which will cause a function calling a Python override into the native
wrapper. This can then be called from a virtual that has a signature
which cannot be handled in Python.
Fixes: PYSIDE-2602
Pick-to: 6.7
Change-Id: I5fc44ebe3f585078e87d3230d5e6f4faa67a4ee1
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
A 2nd scan unveiled more cases.
Complements 92a4a2a0ed7a8a391406030d1db813de7dd31429.
Pick-to: 6.6
Task-number: PYSIDE-2479
Change-Id: I4406a5431f5d852927dd57ed524cedb0fedd464f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Make it a proper object type with a unique pointer.
Use the new std::filesystem API to retrieve size and
check for existence instead of opening and winding.
Pick-to: 6.6
Fixes: PYSIDE-2479
Change-Id: I07e64a2b002195c7b6bce3526ef3ec6ea30a555e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Use a shared pointer for the Private class, so that the default
copy/move can be used.
Pick-to: 6.6
Task-number: PYSIDE-2479
Change-Id: Iebc75b230c7b87d47be10e10f6565eaaccb17f66
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Remove the unused CT default parameter value
ObjectType::defaultInstance() which would have led to deletion of a
stack object. Turn it into a <object-type> and disable copy/move.
Pick-to: 6.6
Task-number: PYSIDE-2479
Change-Id: I010f8d27664a37999742c47e6e446e702853344c
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Refactor it to use shared_ptr, so that the default copy/move
can be used. Note that the previously generated move functions
could have caused double deletion.
Pick-to: 6.6
Task-number: PYSIDE-2479
Change-Id: I06e3787e64a726406f6bc5d0d7a2d67b6ab5d870
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Introduce convenience macros similar to the Qt macros
and specify the special functions where missing.
Pick-to: 6.6
Task-number: PYSIDE-2479
Change-Id: I761a08e3e3c9393e1f2bb0514e2ad4de52cd99a0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
Pick-to: 6.6 6.5
Change-Id: Id72835771375fc2d6b5f1d81c36881cdca76cd15
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- else after return
- Do not repeat return types
- Use range-based for for std::map
- Use constructor member initialization
- Initialize variables
- Use override instead of repeating virtual
- Use noexcept for move special functions
- Upper case integer literals
- Various other small fixes
Pick-to: 6.6 6.5
Change-Id: I06924c60fcd0d8bfcad9cc2cd6e79e72621cb766
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
The comment states that this is a left-over from the days
when boost was used.
Pick-to: 6.6 6.5 6.2
Change-Id: Idbd6ed9dce6578def2bddf2ae56fc958b22a0ae8
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.6 6.5
Change-Id: I23d8ea03ec578a897352c2627417a706ca71ef82
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
[ChangeLog][shiboken6] operator int() and/or operator double()
on classes are now used to provide the __int__ and/or __float__
special functions enabling the use of int() and float() for numerical
types.
Fixes: PYSIDE-2446
Change-Id: Iabb6392b5754d6e31d44209cfdd27d38c5055b2c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add mapping for non-operator functions that serve as special nb slots.
[ChangeLog][shiboken6] It is now possible to add the special functions
__abs__ and __pow__, enabling the use of abs() and pow() for numerical
types.
Task-number: PYSIDE-2446
Change-Id: Iff4b88ad927273df5688c7350c0f45bb7618f05b
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Add a basic complex number based on std::complex
with some number protocols (note the name Complex
is already taken by a primitive type in libsample).
Pick-to: 6.5
Task-number: PYSIDE-2446
Change-Id: Ie1427761c0048f57a02bc8d59c3181567ce3a199
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable functions taking rvalue references if they are user-defined in
some way. Enabling by default is not done since there are cases in
which several overloads exist (QSqlQueryModel::setQuery(QSqlQuery)).
In these cases, they should not be part of the candidate list.
[ChangeLog][shiboken6] Experimental support for rvalue references
has been added.
Task-number: PYSIDE-2394
Task-number: PYSIDE-1790
Change-Id: Ie2eb60ef19ddac321126b64cd0c35913bd805b48
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
bucket.cpp pulls in windows.h, causing clashes
between class Polygon and wingdi.h's Polygon() function in some
constellations.
Pick-to: 6.5
Change-Id: I1101b6f7e4538d064ecf8ffa94eef7b2941c1263
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit c51c97d2ae6016ef86665b593b8c3e6568161eef.
It causes warnings with g++:
oddbool.h:101:26: warning: maybe_unused attribute ignored [-Wattributes]
Pick-to: 6.5
Change-Id: I23c5aee9b228de304a86c51252d70e23c3eb29e9
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.5
Change-Id: Iea85d6304e83cf35244ce0be466eaf1d1db2141d
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This manifests in QtDataVisualization's
const QBarDataArray *QBarDataProxy::array() const
where QBarDataArray is handled as a primitive type.
This required adapting a code snippet which was relying
on the argument QString* being treated as QString.
Task-number: PYSIDE-2206
Change-Id: Ib05f01d7b54e103cf5bb71be86ffa9b5067ca3fb
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
| |
Hoping this will help the Qt Creator code completion.
Change-Id: I0777f5c38e37d560cfc1942b8acd5c76c8d64d25
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
CMakeLists.txt and .cmake files of significant size
(more than 2 lines according to our check in tst_license.pl)
now have the copyright and license header.
Task-number: QTBUG-105718
Task-number: QTBUG-88621
Change-Id: I98bd2e80f182d8bf7aef6b633f37a428e2dac69b
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Add missing include.
Pick-to: 6.4 6.2 5.15
Change-Id: I478205da1d07615f886db02368ee890970cf6938
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Place star/reference correctly
- Fix include order
- Streamline code, wrap long lines
- Use member initialization and default special methods
Change-Id: I7b7e7d8e8c9562cd932bee8144bc44d6b2dda0a5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
- Remove some unused include statements
- Replace C-headers (string.h) by the C++ versions (cstring)
- Use WIN32_LEAN_AND_MEAN for windows.h
Task-number: PYSIDE-2155
Change-Id: I8085e36f336d227218abb6c06cdd52d24c0761f4
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
| |
It causes clashes wrt std::byte/byte in CMake UNITY_BUILD (jumbo) builds.
Task-number: PYSIDE-2155
Change-Id: I62184c363f85ca7aa227453f2a4d776e61ae0c70
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
It clashes with the Windows HANDLE typedef in CMake UNITY_BUILD
(jumbo) builds.
Task-number: PYSIDE-2155
Change-Id: Ic5d6654651ead85aa08e2375510fe644cbf6dc3e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
The function sprintf is deprecated and easily replaced by
the secure snprintf version.
Change-Id: I6b97d71ae179f9a6627fd5e39451e7a2f2322497
Pick-to: 6.3 6.4
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-990
Change-Id: I4b8d75de9ed4cb15f4784828d64713246964ed21
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Do not set flag AbstractMetaClass::HasRejectedConstructor for those
classes since it has a slightly different meaning (rejected due to
unknown type).
AbstractMetaClass::determineValueTypeWithCopyConstructorOnly() will
then correctly detect them.
Manifests in QCanBusDeviceInfo.
Change-Id: I57637d57ebdaba0a022b6012c08f75c858d9ed36
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The information about how arguments are converted (pointer
indirections, etc.) was in
CppGenerator::writePythonToCppTypeConversion() and partially
duplicated in AbstractMetaType::shouldDereferenceArgument(), leading
to discrepancies in the indirections generated for the function calls.
To fix this, introduce a struct GeneratorArgument with type,
conversion mode, indirections and a few flags storing this information
and use that everywhere, replacing
AbstractMetaType::shouldDereferenceArgument().
Pass the argument indirections obtained from
writePythonToCppTypeConversion() via writeArgumentConversion() as a
list into writeMethodCall().
Add a test for passing enums by pointer.
Fixes: PYSIDE-2065
Change-Id: I495c2bc04ebc0162648d74b75e321609ecd00963
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
De-inline most offending functions so that the parameter name is
preserved in the declaration.
Pick-to: 6.3 6.2
Change-Id: I4eaf9b8691502beda5addcfd7099e3a846d5c1a2
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fix warnings like:
warning: implicitly-declared constexpr Pen& Pen::operator=(const Pen&) is deprecated [-Wdeprecated-copy]
by removing definitions of copy constructors/assignment operators which
are equivalent to the default generated ones or spell out the special
methods were needed.
Pick-to: 6.3 6.2
Change-Id: Ie7cb335707f8bdd297b0ceea969909bc809016d7
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
The code for modifying return value ownership clears errors set by
PyErr_SetString(). To work around this, store the error type and
the message in variables and set the error at the end of the code block.
Fixes: PYSIDE-1995
Change-Id: I45816197117a3b409fd549e89d57f7b9f0eac458
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Synthesize all comparison operators if one is found in the code model.
Task-number: QTBUG-103757
Change-Id: I78fbcd93bc4cd172266f9dd0dbb2ebcf3a8bb7f2
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
sources/shiboken6/tests/libsample/functions.cpp:244:33: error: use of overloaded operator '<<' is ambiguous
(with operand types 'basic_ostream<char, std::__1::char_traits<char> >' and 'std::nullptr_t' (aka 'nullptr_t'))
cout << __FUNCTION__ << ' ' << t << '\n';
Amends 8ecb8a909ecde13f179b8fce170582e47373f50c.
Pick-to: 6.3
Task-number: PYSIDE-854
Change-Id: Ifd2bb6ac4bf27ebcb240359020a6f8e18dbfef79
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Replace the current license disclaimer in files by a
SPDX-License-Identifier. Files that have to be modified by hand are
modified. License files are organized under LICENSES directory.
Task-number: QTBUG-67283
Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Testing the support introduced by
3c2ef04c9eade4226f139064c6c45cb4819834e0.
Task-number: PYSIDE-854
Change-Id: I2d7276baf2c81e24f3f7389448352541a78e18bd
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make operator==() of test class Size an inline friend like operator!=().
It seems that in C++ 20 mode, the compiler tries to include operator==() in
overload checks of operator!=() (rewriting expressions) and hits on an
amiguity when operator==() is implemented as member (arguable a compiler
bug):
size_wrapper.cpp(921): error C2666: "Size::operator ==": 3 overloads have similar conversions
Pick-to: 6.2
Change-Id: Ia57d531adca272be29dd4c4f7ef322450986033e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new header/source with conversion functions for
std::string/wstring. This avoids calling std::string::c_str()
which might do an allocation.
[ChangeLog][shiboken6] Support for std::wstring has been added.
Task-number: PYSIDE-1660
Task-number: PYSIDE-1666
Change-Id: If2b0fd1bd14b71d0c576921a889ac7e28ead00eb
Reviewed-by: Christian Tismer <tismer@stackless.com>
|