| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
THIS COMMIT WAS GENERATED BY A SCRIPT
Task-number: PYSIDE-962
Task-number: PYSIDE-1587
Change-Id: I58b05c3d05606efb6303193f2d7f907a0ab5741b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Extract the architecture/platform information from compilersupport.cpp
into a separate Triplet class which can be tested independently and
is not tied to the shiboken logic (initialization to host defaults, etc).
As a result, compilersupport.cpp becomes much cleaner.
Task-number: PYSIDE-3105
Change-Id: I3ea709a02184c73814dc34686be75017fa1391fa
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the option -nostdinc, which causes it to complain about
"'type_traits' file not found".
The option was apparently added for historic reasons
and is apparently no longer needed.
Fixes: PYSIDE-3235
Pick-to: 6.10
Change-Id: I3ab4bd9bf1e523e2c6ab6e655ef8d2cc4e865599
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Remove the getters/setters and make them function-local as
they unnecessarily clutter the code.
Task-number: PYSIDE-3105
Change-Id: Ia56f65ae169e1e9e7b96ca2d98b6694ae9f3f208
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As of Clang 21, Qt code produces many warnings: "qchar.h:503:75:
warning: implicit conversion from 'const char16_t' to 'char32_t' may
change the meaning of the represented code unit"
Exclude them.
Upstream bug report: https://github.com/llvm/llvm-project/issues/163719
More discussion in: https://github.com/llvm/llvm-project/issues/138526
Task-number: QTBUG-141204
Pick-to: 6.10 6.8
Change-Id: I17df5aee49d71701ac55c34274cf7a62aab87d94
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Use the types suggested by clang-tidy.
Change-Id: I0bc80d00e75305423caa4254b1383979e89128ec
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
CXType_Kind
Use what clang considers to be the "canonical" type for a category
enumeration. This is useful for follow-up changes to simplify
type resolution.
Pick-to: 6.10
Change-Id: Ic9f23308cf6bf4b5b29f3c2fff119cba58f3ac1e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
| |
Change-Id: I45eaf7f67588fd7c25ff2eab959d2470e62c6e87
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>
|
| |
|
|
|
|
|
|
|
|
| |
As observed for iOS, libclang falls back to a too-old OS version. Make
it possible to override using a command line option.
Task-number: PYSIDE-3105
Task-number: PYSIDE-2352
Change-Id: I251dca3e45e9bbc1737e54e0e9799595ab680ff9
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Complements 244b5dd5e1869ea85c5b78d27259965f7ca2c7bb.
Task-number: PYSIDE-3105
Task-number: PYSIDE-2352
Change-Id: I0cb197a1683b8a4d5a7c7babbfc900180005a723
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Use the special casing from macOS.
Task-number: PYSIDE-3105
Task-number: PYSIDE-2352
Change-Id: I43bc2268bcd07c5e124c08875bf1a4da56476a53
Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
If --target is present in the clang options and the relevant
-platform/-arch options are not set, use the target to determine the
platform. Also determine the compiler type from the path passed in.
[ChangeLog][shiboken6] The support for cross compiling (using the
correct target for clang-based parsing) has been improved.
Task-number: PYSIDE-3105
Change-Id: If7c81b5317e0002edced1e8629318a8e66e7e1f5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
When cross compiling (detected by the platform/architecture values
passed via command line not matching the host) and no custom clang
command line option specifying a target is present, determine a target
triplet and pass that to clang.
Task-number: PYSIDE-3105
Change-Id: Ib34ecfc1880525d2e035a04079242b5ade205a7a
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-3105
Change-Id: I13faf4343705e6c1f636784da0cc3e105390b012
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
As opposed to Platform/Compiler, it has an "Other" option
since host builds should run on any architecture.
Task-number: PYSIDE-3105
Change-Id: I170bbba422ca862a980d0e5efee2d9978fdcdb0f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
For cross-building, arguments like --target might be required
when determining the include paths by running the compiler.
Task-number: PYSIDE-3105
Change-Id: Ida8bf08e1d5c566f915400d46c9cfb80bf706a72
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Extract parse* functions for later usage.
Add the missing macosx/androideabi.
Task-number: PYSIDE-3105
Change-Id: I3c1902afb2bb4308c290641ca8a964fd5cccea22
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Relax the checks and make it non-fatal.
Task-number: PYSIDE-3105
Change-Id: Iea3a8d26a2d3fa1de51bdf7a93a433a253ce8560
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Amends f4d844278b5a41f04bbce0669319279cf19a799e.
Task-number: PYSIDE-3105
Change-Id: I175d1733013852343b6a346f024d6990a09b5eb5
Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add a distinct value for Linux.
- Add iOS/Android.
- Relax the parsing of command line values so that
CMAKE_SYSTEM_NAME can be passed to the --platform option.
- Warn only if unknown names are encountered on the
command line.
- Define the type system keywords depending on it instead
of hardcoding to the host value.
Task-number: PYSIDE-3105
Change-Id: I32650181fb4bd43223e351610f4fc8a0a3e0100b
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Redirect all messages about homebrew/compiler paths to the new
mjb_shiboken.log file to unclutter the build.
Change the clang version output message to print the effective
target triple obtained from parsing and output to mjb_shiboken.log
as well as stderr.
Pick-to: 6.9
Task-number: PYSIDE-3105
Change-Id: Ieafcb8d65dc513516a0b11b3da5b650826a41703
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Store the target triple from the clang options of the command line to
be able to set up compiler options for clang parsing accordingly.
While parsing, update by the value obtained from clang and the pointer
size.
Pick-to: 6.9
Task-number: PYSIDE-3105
Change-Id: I33c60e14418b10c3f3cfa1603b29ed2a06b1589a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Replace clang functions clang_CXXMethod_isCopyAssignmentOperator() and
clang_CXXMethod_isMoveAssignmentOperator() by a manual check function
depending on clang version.
Amends 6410710ab9580f71ab58ac38e67d74bbde5dbce4.
Complements b887919ea244a057f15be9c1cdc652538e3fe9a0.
Fixes: PYSIDE-3091
Task-number: PYSIDE-3004
Pick-to: 6.9
Change-Id: I18b073e7fe572ffe8b4635a26cec45b0b6adbac3
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Exclude all expressions and statements.
Fixes: PYSIDE-3081
Pick-to: 6.9 6.8
Change-Id: I6178624ad7415b6320b7e86b9a10d4869fc1c687
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Replace the Qt forwarding headers by the .h files. This brings down
the dependency list by approx 6%.
Pick-to: 6.9
Change-Id: Iaa57400fd20600b940119a6016041b885a68d207
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add a new log file mjb_shiboken.log for informational messages to
reduce clutter and make warnings stand out.
[ChangeLog][shiboken6] An additional log file,
mjb_shiboken.log has been introduced which contains
informational messages about the types encountered.
Change-Id: I042fdfee7bae174d5b214d171a32e3e3cca7a3d7
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Obtain (copy) assignment operators from libclang and introduce
another function type for assignments from other types, which do not
impact copy-constructibility.
- Handle deleted assignment/move assignment.
- Add function query operators.
- Disable adding of implicit copy constructor when assignment/move
is present.
Testing follows in a subsequent patch.
Task-number: PYSIDE-3004
Change-Id: I11451bada3f970fb76e80b8ee76e1406441bb9db
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Fix invocation of static functions
- Use std::any, range-based for where applicable
- Use std::make_shared instead of new
- Replace QByteArrayLiteral() by literal
- Use const-ref to avoid copies
Pick-to: 6.8
Change-Id: Iec864bd6eee8fb06f5afd122084a9e0f551ff8f1
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
It should now be disabled in qtbase by
2f4680d14308e02bd52abbb81b6c9ae68febe818.
Task-number: QTBUG-128675
Task-number: PYSIDE-2620
Change-Id: I2a3052bd22a208e91a1eb2cc5f46f5131459b7cb
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-2620
Task-number: QTBUG-125719
Change-Id: I6efeb1770c9bd7cddc3dbd91ca6294b9fddc9cc9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Initialize variables
- Use auto *
- Use const references to prevent copies
- Remove const from function returns
- Remove repeated return types
- Fix else after return/throw
- Make functions const/static where appropriate
- Add missing override
- Fix some invocations of static methods
- Fix some int types (qsizetype) to avoid lossy conversions
- Minor cleanups
- Remove some macros
Change-Id: I414b8451703b136f135383289de49e743e84fb3a
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
manylinux_2_28_x86_64
llvm-config --libdir reports /usr/lib64 on manylinux_2_28_x86_64
whereas the includes are under /usr/lib/clang/../include.
Fixes: PYSIDE-2769
Pick-to: 6.7
Change-Id: I217d6bf62bbd2e63258b91d64fb9c0fe5f1ff052
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-2769
Pick-to: 6.7
Change-Id: I73fee8b893d8167ee3acd99ef39ae25f8d388de1
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
| |
Change-Id: If7dafe4e23727f822e26307bedbb46bfaf9c0655
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Extract attributes common to C++ functions from
AbstractMetaFunction's attributes to a flags type in
codemodel_enums.h for re-use in AbstractMetaFunction,
FunctionModelItem and AddedFunction.
A lot of boolean setters and getters can then be removed and
the flags easily transferred from code model to the meta
language code.
Task-number: PYSIDE-2602
Pick-to: 6.7
Change-Id: I9da1bb0d70051cd6bb3113290e8ccedfe4d13908
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Add /Zc:__cplusplus, fixing:
QtCore/qcompilerdetection.h(1257): fatal error C1189: #error:
"Qt requires a C++17 compiler, and a suitable value for __cplusplus.
On MSVC, you must pass the /Zc:__cplusplus option to the compiler."
Also update the emulated MSVC version for libclang 18.
Pick-to: 6.7 6.6 6.5 6.2
Change-Id: Iacbdf1da3bc1f73757ff5231391ebe847158cc2d
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
CMAKE_CXX_COMPILER on the build machine may point to a non-standard
location. Add a patch search to handle this.
Task-number: PYSIDE-2648
Pick-to: 6.7 6.6
Change-Id: I049aa1a9c5ac086d381912be1af5f166f1e54608
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
| |
Task-number: QTBUG-103757
Task-number: PYSIDE-2497
Change-Id: I1b0fd5b1cad908ee612ab33ca0aacffc55947d87
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
| |
It is needed by the shiboken wizard.
Task-number: PYSIDE-1338
Task-number: PYSIDE-1032
Pick-to: 6.6
Change-Id: I53e2bd7bc27940a0d00e0db6acdd0f8603e94d41
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: QTBUG-99313
Task-number: QTBUG-97601
Change-Id: I2422a995d73f19e385c73d54410004f7b8f9d77b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Store the source location in the clang parser so that it appears
in the message. Also add the access level.
Change-Id: I9a9ca414a41a3fa4584dd55d580aa01bb252f9c7
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Use qHashMulti, noexcept and make them inline friends.
As a drive-by, also make comparison for Clang structures noexcept.
Pick-to: 6.6
Change-Id: Ibdcbf3bde90af0fc419bd1640d3f45602f772f9a
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-2537
Change-Id: Ie71b17eec385b31842d6693b3492db565d479fd0
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Replace the formely used
static inline QString foo() { return QStringLiteral("foo"); }
by latin1 literals.
Task-number: PYSIDE-2537
Change-Id: Ia4e9827e2b2a2f65f06751d549e8d79002386878
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Change-Id: I551099f0d40b8abbfeba787c3378226e7958c0d8
Pick-to: 6.6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Otherwise system paths that are passed by yocto that don't end in a
slash are considered files rather than directories and we don't end up
processing files within those directories.
Amends 7cc5c139482d735c49002649d26bb524c92cc86b
Pick-to: 6.6
Task-number: PYSIDE-1958
Change-Id: I25d809c3cbf101c4780beb98ee1359c3df67b8d1
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When building Qt For Python using yocto, the Qt headers are in a
sysroot which libclang considers as system headers. Shiboken skips
processing system headers.
To ensure Qt headers are still processed, introduce a new
--force-process-system-include-paths option to shiboken and two new
CMake variables: PYSIDE_TREAT_QT_INCLUDE_DIRS_AS_NON_SYSTEM and
SHIBOKEN_FORCE_PROCESS_SYSTEM_INCLUDE_PATHS.
When PYSIDE_TREAT_QT_INCLUDE_DIRS_AS_NON_SYSTEM is set to true, the
build system will pass the Qt include dirs to
--force-process-system-include-paths to ensure the Qt headers are
processed and their types extracted.
Similarly SHIBOKEN_FORCE_PROCESS_SYSTEM_INCLUDE_PATHS can be passed a
list of extra dir paths when creating non-Qt related bindings.
Sysroots usually contain headers other than Qt headers, so there's a
chance that a non-Qt-related system header fails to be be parsed and
will fail the shiboken execution.
To avoid breaking setups that previously worked because of the issue
described above, the new options are opt-in rather than opt-out.
In case one such an issue is encountered, the solution would be to
copy / move the Qt headers into a separate location and specify the
new location as both an include path and a force process system include
path (in case the copied headers are still somewhere under the
sysroot).
Pick-to: 6.6
Task-number: PYSIDE-1958
Change-Id: I1733478e9c6057f84de7864940c6150b378749cf
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Add a log that dumps the compiler default include dirs output as
returned by gppInternalIncludePaths().
This is shown when --debug-level=medium is passed to shiboken.
Pick-to: 6.6
Change-Id: Ie5d53f490fb78bc6325b9c9e3b216c74a34de7fd
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Output whether system headers are parsed or skipped to the
'qt.shiboken' logging category.
Pick-to: 6.6
Task-number: PYSIDE-1958
Change-Id: If845f57091a39167ea9e36d6736328498290a51b
Reviewed-by: Christian Tismer <tismer@stackless.com>
|