aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/expression.cpp
Commit message (Collapse)AuthorAgeFilesLines
* shiboken tests: Fix special functions for class ExpressionFriedemann Kleint2023-10-101-50/+19
| | | | | | | | | | | 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>
* Fix some static analysis warnings in the shiboken testsFriedemann Kleint2023-09-271-8/+6
| | | | | | | | | | | | | | | | - 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>
* Fix coding style of the shiboken testsFriedemann Kleint2022-12-221-11/+9
| | | | | | | | | | | | - 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>
* Use SPDX license identifiersLucie Gérard2022-05-271-27/+2
| | | | | | | | | | | 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>
* Clean up some warnings produced by Qt Creator's clang/clazy code checkersFriedemann Kleint2021-01-211-0/+2
| | | | | | | | | | - Remove unused variables - Remove assignments that do not have any effect - Fix mixing const/non-const iterators - Fix for loops, use const ref and/or qAsConst() Change-Id: I4b52f11030493c440026b194f18ec0151a3ea710 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Rename shiboken2 to shiboken6Friedemann Kleint2020-10-281-0/+137
Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I4cb5ee4c8df539546014b08202a7b1e98ed3ff07 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>