aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/4.13' into 4.14Eike Ziller2020-10-211-1/+1
|\ | | | | | | Change-Id: I6aa2cb51dcbb4d76238a2ed8603bf57a35ee4fd6
| * Squish: Update tst_codepastingRobert Loehning2020-10-201-1/+1
| | | | | | | | | | Change-Id: Ie908f0af267f420e107c06ae039bb085462f945d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CMake Build: Allow building unittests when targets are missingCristian Adam2020-10-201-14/+13
| | | | | | | | | | | | | | | | when configuring a minimal build make sure that when querying for target properties like SOURCE_DIR the target actually exists. Change-Id: Ib754b79be6461e3ddd4cdeb1abac123cf4535068 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | CMake Build: Make sure testplugin target exists before setting propertyCristian Adam2020-10-201-1/+3
| | | | | | | | | | | | | | When doing a minimal build, the testplugin might not be created. Change-Id: Ia4f1cbd14cbdad6e81cb7090a7f52aad692175fa Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Tests: Fix compile and codeChristian Stenger2020-10-202-7/+8
| | | | | | | | | | Change-Id: I2f2a8a4ff9e7bcd3138b93b177e07f2aa3850fcb Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | Unittest: Fix qbs buildChristian Kandeler2020-10-191-13/+0
| | | | | | | | | | | | | | | | The image test uses unexported classes from QmlDesigner. Let's just remove it. Change-Id: I42cae90d7333bf1ad7f75839c93eef773cb5fab8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | QmlDesigner: Add image cacheMarco Bubke2020-10-1626-39/+1725
| | | | | | | | | | | | | | | | | | | | | | | | The image cache is saving images and icon of this images in a sqlite database. If there are no images they are generated in the backgound. The icons are fetched by item library. Task-number: QDS-2782 Task-number: QDS-2783 Task-number: QDS-2858 Change-Id: I5a32cccfef7f8fd8eb78902605a09f5da18ce88e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | clangbackend: Fix crashChristian Kandeler2020-10-092-0/+68
| | | | | | | | | | | | | | | | | | We cannot assume that a Q_PROPERTY name is on the same line as the keyword. Fixes: QTCREATORBUG-24746 Change-Id: Ic2e02291e24c1abbaf72881b540a26c82899cb2c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Debugger: fix various dumper tests for mingwDavid Schulz2020-10-081-16/+38
| | | | | | | | | | | | | | | | since the gdb uses to hang on windows when calling functions we disabled that functionality reflect that in the QDateTime and QLocale tests. Change-Id: Ie212ab8c7634804e1054bfddfb753de055403c4f Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/4.14' into masterEike Ziller2020-10-083-17/+13
|\ \ | | | | | | | | | Change-Id: Ie53b4c2516d80a653d51bc6b666040c586ce44ab
| * | Unit test: Fix qbs buildChristian Kandeler2020-10-071-3/+5
| | | | | | | | | | | | | | | | | | | | | The CLANG_UNIT_TEST macro was set unconditionally. Change-Id: I1a8f16e2e295bda46fc60aab342a74f9675100cc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * | Squish: Update __getSupportedPlatforms__()Robert Loehning2020-10-071-1/+1
| | | | | | | | | | | | | | | Change-Id: Ia9840c74528c8fb435099ccdffb2f6f1b06b7e77 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * | Tests: Ensure valid project fileChristian Stenger2020-10-071-1/+1
| | | | | | | | | | | | | | | Change-Id: Iad22782fee5b330d145ab456c38ff0b9363f0fd2 Reviewed-by: David Schulz <david.schulz@qt.io>
| * | Debugger: set utf8_source qmake config value for cdbDavid Schulz2020-10-071-6/+5
| | | | | | | | | | | | | | | | | | | | | fixes cbor test and simplifies char array test Change-Id: I035e393e0e09dc8a16e27dd400a7557d3cf3a006 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * | Debugger: Simplify QString dumper testhjk2020-10-071-6/+1
| | | | | | | | | | | | | | | Change-Id: I53267960155055219c7396eeaee0312602f7011d Reviewed-by: David Schulz <david.schulz@qt.io>
* | | Autotools: Also read _HEADERS variablehjk2020-10-081-1/+1
|/ / | | | | | | | | | | Change-Id: If081d9ec00a87d8e7989720a351531e94d02e28c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Merge remote-tracking branch 'origin/4.14' into masterEike Ziller2020-10-066-0/+166
|\ \ | | | | | | | | | Change-Id: I4ea98cc1c14808afe44030a057f9ff289a57ccfe
| * | Debugger: Fix parsing of octal-encoded gdb escapeshjk2020-10-066-0/+166
| | | | | | | | | | | | | | | | | | Fixes: QTCREATORBUG-24462 Change-Id: I89153a04eeef6a2e20fefef45e0efa3712ec0997 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Tests: Fix QJson dumper testChristian Stenger2020-10-051-2/+2
| | | | | | | | | | | | | | | Change-Id: Ic9f5b7da358164bb9b66f2c75965377cdbf09c4e Reviewed-by: hjk <hjk@qt.io>
* | | Tests: Fix boost pro file additionsChristian Stenger2020-10-051-0/+1
|/ / | | | | | | | | | | | | | | Otherwise we might end up with a messed up project file. Change-Id: I432d45063092d0a5dead3ef975ba3ce5294c1af0 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-10-053-3/+145
|\| | | | | | | Change-Id: I565a0bd783dc80b53d4715fdc153dba1f1d3f7c7
| * Squish: Add test for clean whitespacesChristian Stenger2020-10-022-1/+145
| | | | | | | | | | | | Task-number: QTCREATORBUG-24565 Change-Id: Idd763004f6ce9f1d34b902ea2fcf5c166ce8d4cf Reviewed-by: Robert Loehning <robert.loehning@qt.io>
| * Squish: Don't wait for the same object item twice in a rowRobert Loehning2020-10-021-2/+0
| | | | | | | | | | Change-Id: Ib6ebc6f0c4fff5e29c7613dc6098da663539dc3e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Debugger: Fix char pointer dumper test for cdbDavid Schulz2020-10-011-2/+2
| | | | | | | | | | Change-Id: I3a1bf50a32076199791283d4bb661feb72c85f6d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Debugger: Make QList test pass with Qt6hjk2020-09-251-2/+16
| | | | | | | | | | | | | | | | QStringList is a typedef now Task-number: QTCREATORBUG-24098 Change-Id: I0f12655a9b86e4813245fbb08cc0a1c3e21d2dcf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Debugger: Fix QString dumper test for Qt 6hjk2020-09-251-6/+13
| | | | | | | | | | | | | | | | QStringRef gone etc. Task-number: QTCREATORBUG-24098 Change-Id: I416f274bccc19c73e226dbf809729c3b72b565a8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Squish: Fix handling of shared foldersChristian Stenger2020-09-251-1/+5
| | | | | | | | | | | | | | | | | | If the respective option is omitted we should not use all python files of the current working directory as this may lead to bad side effects. Change-Id: I23d3c97971e40ecbc4c585b7fd12b58953b0f623 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | Debugger: Show actual type for 'gchar *' elements etcMichael Weghorn2020-09-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When 'char *' typedefs (and the like) are used, this makes the actual (i.e. the typedef's) type name shown instead of the one that the type is a typedef for. For example, 'gchar' is shown as type for all elements of a 'gchar*' when expanding that one in the debugger's locals or expressions view. Original display of text representation for 'char *' typedefs etc. had been added with commit 70c4889ac9a0d75c93809dd5bb321fcb2272a202 ("Debugger: Show text representation for 'char *' typedefs etc", 2020-06-26). Move the typedef resolution one level down so the original type name is still available for display. This also extends the existing 'gchar *' test case accordingly. Change-Id: I9558360b3bf96906d6dc39a63706bb8ce28c2f1c Reviewed-by: hjk <hjk@qt.io>
* | C++ unit test: Fix another line endings issueChristian Kandeler2020-09-241-1/+3
| | | | | | | | | | Change-Id: Ib25055ac73c25fa27253c424efe60bfdaaafe219 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Debugger: Extend Bitfields test for GDB caseMichael Weghorn2020-09-241-2/+22
| | | | | | | | | | | | | | | | | | * add bitfield case for char as well * add tests for expressions view Task-number: QTCREATORBUG-24693 Change-Id: I716dcd0eae3002401c891b733440ea2c6acb32ff Reviewed-by: hjk <hjk@qt.io>
* | C++ unit test: Another clang 11 adaptationChristian Kandeler2020-09-231-1/+1
| | | | | | | | | | | | | | | | This was probably a bug in clang 10: The amount of whitespace after the operator should not matter. Change-Id: If161a7b2f60ee932bef19edb9fe71aac31be3c8b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | C++ unit test: Adapt to clang 11Christian Kandeler2020-09-231-3/+2
| | | | | | | | | | Change-Id: I3ea6278147577899ea97032e17f0cd257423586c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Add qmlImportPaths property to .pyproject fileAlexander Mishin2020-09-225-0/+146
| | | | | | | | | | | | | | | | | | | | | | Users should be able to add custom QML import paths for Python/PySide2/PyQt5 projects in Qt Creator in order to get syntax highlighting and code completion for custom QML modules. Fixes: QTCREATORBUG-23679 Change-Id: Iec7c691c4b8709c48a790cd27ac7c6e755967796 Reviewed-by: hjk <hjk@qt.io>
* | Unit test: Fix use-after-freeChristian Kandeler2020-09-221-1/+1
| | | | | | | | | | | | | | | | The bind() function takes a view, so we can't pass in a temporary. Amends 3b0de99cf5. Change-Id: Ic11b47688ff37699a1a56e978780a610c969d3b7 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | Remove Core::IdEike Ziller2020-09-221-1/+0
| | | | | | | | | | | | | | | | | | Moved to Utils in 4.13, and the compatibility typedef is ugly. Remove it now. Change-Id: I0d80165b427448eaf7ee6cc1c0a6a34a85b7083b Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Remove usages of Core::IdEike Ziller2020-09-211-2/+2
| | | | | | | | | | | | | | It moved to Utils. Change-Id: Ia4d12bb07db2d59b1cb084b2ebdea20e6e3b40ad Reviewed-by: hjk <hjk@qt.io>
* | Unittests: Fix testChristian Stenger2020-09-211-1/+1
| | | | | | | | | | Change-Id: I45669bd31497655b6c8a9f8c03fd20cae703042f Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | Unit test: Support qbs build with googletest submoduleChristian Kandeler2020-09-213-790/+839
| | | | | | | | | | | | | | | | This is necessary to be able to build on Windows. Also add an include to fix building with clang 12. Change-Id: I9278a2c942a5e50c89c3aac19492f3a1ef3177b1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | C++ Unit test: Fix diagnostics export test on WindowsChristian Kandeler2020-09-215-4/+80
| | | | | | | | | | | | | | The file offsets are different because of CRLF line endings. Change-Id: Ice859f3b279651b61d147bdd963f62897b090e47 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CPlusPlus: Consider member initializationsChristian Kandeler2020-09-181-13/+27
| | | | | | | | | | | | | | ... when checking usage types. Change-Id: Ic875f3bcae9cf045dbb062670e8cf941de533404 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-09-177-15/+72
|\| | | | | | | | | | | | | Conflicts: src/plugins/qmakeprojectmanager/qmakeproject.cpp Change-Id: Ieb1c3e946f11d3c4fa1ee6b5afdf83cc532d8aed
| * QmlDesigner: Go into componentsMarco Bubke2020-09-162-7/+52
| | | | | | | | | | | | | | | | Task-nubmer: QDS-2696 Change-Id: I2f0ee71deea593da08fa4a754d783b53867473ed Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
| * Debugger: Change LLDB value creation hackhjk2020-09-151-0/+1
| | | | | | | | | | | | | | | | | | ... to something that works with LLDB 12. Task-number: QTCREATORBUG-24596 Change-Id: Ib2f8255d45a02fa3d2c737864994397f587e9b15 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * ClangBackEnd: Support highlighting of alias templatesChristian Kandeler2020-09-144-8/+19
| | | | | | | | | | | | Fixes: QTCREATORBUG-24552 Change-Id: I80d2b16114234cf896173cd4104e6a5f12009f69 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | QmlDesigner: Add new function to NodeInstanceView mockupMiikka Heikkinen2020-09-161-0/+2
| | | | | | | | | | | | | | Model now uses requestModelNodePreviewImage so it's needed in mockup. Change-Id: I9f9e43b288401de52ac010c333591c9184e10366 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | CPlusPlus: Look at all overloadsChristian Kandeler2020-09-151-2/+7
| | | | | | | | | | | | | | | | | | ... when trying to find out the usage type of a function argument. Otherwise, we potentially ignore functions which have additional overloads with a shorter parameter list than is required for the call. Change-Id: I02bf2cb359ea9d506e2644388234dc28fa072445 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | ProParser: Fix compile of manual testChristian Stenger2020-09-151-1/+3
| | | | | | | | | | | | | | Amends 58d288b52. Change-Id: I5c142b0ce30f7145db6a8d332c8f0617e2c99fe5 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | QmlDesigner: Add a missing returnOrgad Shaneh2020-09-111-1/+1
| | | | | | | | | | Change-Id: If29854d7f4706bbea6a5f51fc7bef427600d79b5 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | Unittests: Remove external dependenciesCristian Adam2020-09-111-16/+94
| | | | | | | | | | | | | | | | | | | | External dependencies are targets built for Qt Creator e.g. Utils unittest is building everything for itself. It also fixes the MSVC building with PCH. Change-Id: I7bca1e150f6890ea85f30efda5642f9242a7c9b5 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | CPlusPlus: Categorize "Find Usages" resultsChristian Kandeler2020-09-031-2/+312
| | | | | | | | | | | | | | | | | | | | | | That is, find out whether a certain access was a read, a write, a declaration or something else, and report the result to upper layers. Follow-up patches can make this information visible to users. Task-number: QTCREATORBUG-12734 Task-number: QTCREATORBUG-19373 Change-Id: Iee79e39dd1eb5a986a7e27846991e0e01b2c3a2f Reviewed-by: Christian Stenger <christian.stenger@qt.io>