summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Squish: Stabilize tst_simple_analyzeRobert Loehning2019-02-041-1/+1
| | | | | | | | The total time may be more than 1s when the CPU is busy. Ignoring this column. Change-Id: I9c80fecb618bcad1bc3e7922c5a573964cd019a4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Tests: Allow removal of objects on the flyChristian Stenger2019-01-301-4/+45
| | | | | | | | | | | | | | | Add another option to allow deletion of unused objects on the fly. This option should be used with care. It is recommended to run without -d (or --delete) beforehand and check the results. Anyhow, when deletion is wanted it processes as usual, renames the original objects.map to objects.map~ and recreates the objects.map without the objects that could be deleted. Change-Id: I3898e8b9998e33461140bf4c75887a32d106f22c Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Tests: Fix handling of optional testsChristian Stenger2019-01-281-0/+2
| | | | | Change-Id: I7ee1cb1a05e1f494a440874f88cb44df6110f802 Reviewed-by: hjk <hjk@qt.io>
* CPlusPlus: Block function-like macro name for arguments expansionIvan Donchevskii2019-01-171-0/+57
| | | | | | | | | | | | | | Arguments of funstion-like macro may contain the name of this macro. The attempt to expand it results into infinite recursion. Patch solves that by saving the macro name until the arguments are collected to determine that it should not be expanded. Fixes: QTCREATORBUG-21642 Change-Id: Iafb404ecd3959a2f1011c12c1c3f1c0c54ed3547 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* Tests: Swap order of findUnusedObjects' output to ease sortingRobert Loehning2019-01-161-4/+3
| | | | | Change-Id: I477ae2f6d5c57de158d1408330a76cf4e4ebdae9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Tests: Allow shared folders in findUnusedObjectsChristian Stenger2019-01-141-12/+34
| | | | | | | | | | | | | | Depending on the directory layout chosen for arranging the squish tests the findUnusedObjects script might not work as expected. This patch enhances the script by adding another option that lets you specify locations of shared folders beside the default assumed (beside/below the location of the objects.map) Change-Id: I52d6bef0fecbbb2959a82ee662a7c7beaf01e00d Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Clang: Fix highlighting lambda capturesNikolai Kosjar2019-01-031-0/+7
| | | | | | | | | | | This fixes the basic case, but e.g. captures with initializers, e.g. [foo=bar] are not properly reported by libclang and thus "bar" is still not highlighted for this case. Task-number: QTCREATORBUG-15271 Change-Id: I1a2d465f71b0ae1a0406ef9e77d88898e8637958 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Debugger: Add fallback when gdb.Value.cast() fails for typedefshjk2018-12-171-0/+17
| | | | | | Fixes: QTCREATORBUG-18450 Change-Id: I9239beb7e1879a284e28a30579129fe487eb2dd2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Fix display of multidimensional C arrayshjk2018-12-171-6/+6
| | | | | | | | Fixes: QTCREATORBUG-19356 Fixes: QTCREATORBUG-20639 Fixes: QTCREATORBUG-21677 Change-Id: Ie28b51c6caf526e125234959cbf11503d0683dc7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix default settings testChristian Stenger2018-12-131-1/+43
| | | | | | | | QC ships a valid usable clang that gets detected as compiler. Change-Id: Iddf94ed6c563367289a1f5418ab222e14c05f81c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Un-skip searching for missing outputRobert Loehning2018-12-131-5/+4
| | | | | | | | | Cannot reproduce the issue anymore. This reverts commit df2b2f1a17afbcd8366e9bc933fabc17f99a7230. Change-Id: I10487eb0036195835d2bd0abe75c5b458a13cf36 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Expect some more compilersRobert Loehning2018-12-131-1/+2
| | | | | Change-Id: I00dcd2334ff8d545450e923c28fcc6cf4efd570a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Add note about required clang versionRobert Loehning2018-12-131-2/+3
| | | | | | | With clang 6.0 from Ubuntu's repositories, tst_memberoperator will fail. Change-Id: I4cbd4f13e849816e70934312d67c079a88ba89a8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Adapt test to changed behaviorChristian Stenger2018-12-111-2/+3
| | | | | | | | 41d68f469a1e9 restored (partially) the old behavior which changes the '.' operator to '->' if all completions need it. Change-Id: I92c2183e7e7f1c0d839f2340c2abe7a9f7d73af2 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Adapt tst_git_localChristian Stenger2018-12-111-2/+3
| | | | | | | | | | Committing has been made a 'bit less synchronous'. So, wait a short amount of time to have the expected output present, but fail if it does not appear within that time frame. Change-Id: I5f6c02dcec42800e876a4bae36e08596bedf0049 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Clang: Always force the built-in includes orderIvan Donchevskii2018-12-111-48/+60
| | | | | | | | | C++ includes must always come first, then clang resource directory and then everything else. This prevents both c++ standard headers and intrinsics issues. Change-Id: Ia21bfa2fe99884c9adf58f7ef6beba1bede1724b Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Tests: Correct expectationChristian Stenger2018-12-101-1/+1
| | | | | | | | Broke with 84576d30986f. Change-Id: Ib03a44f9864c1e2072ecd4b98eb3c2ffef5741d3 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: hjk <hjk@qt.io>
* Clang: Avoid multi-line display name for completion itemsNikolai Kosjar2018-12-071-1/+17
| | | | | | | | | | These come directly from clang. If converting for display in the completion list widget, skip new line chunks. Fixes: QTCREATORBUG-21600 Change-Id: I83749ed73fa68658ec073d97177768f59a87cebf Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Fix tooltip for pointer to classNikolai Kosjar2018-12-062-0/+17
| | | | | | | | Detect and dereference pointer to get to the correct class. Fixes: QTCREATORBUG-21523 Change-Id: I679778b2cfbbce4466294dabdee096686f53f095 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Squish: Fix tst_CSUP02Christian Stenger2018-12-041-7/+9
| | | | | | | | | | | | | | | Squish (and therefore the test) "is typing" too fast which breaks some assumption and the (nowadays?) normal behavior of the CppEditor. Fix this by introducing a delayedType() function to be more realistic when doing this test. Also removes a workaround for QTCREATORBUG-18769 as this seems no more valid at all. Task-number: QTCREATORBUG-18679 Change-Id: Ie43554c5b198bf3dc4a26ad12c8368f43bfd21af Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Clang: Fix failing unit testNikolai Kosjar2018-12-031-1/+3
| | | | | | | ...amends 12dce3ef7ddf5a53d90a794a4645dea13a67f2bb. Change-Id: I93ef9b4dfaf0bbe9f4be1d0f2688eb5726938c81 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Squish: Mark test as expected failChristian Stenger2018-11-301-2/+6
| | | | | | | Task-number: QTCREATORBUG-21335 Change-Id: I54148ecf746362a22bf739ef80930a40bb6da2fe Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Fix WELP testsChristian Stenger2018-11-292-2/+4
| | | | | | | | Adapt to new titles of some tutorials. Change-Id: I18d62d88877b59a51ebfdb19f5fe16ac8d828800 Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Clang: Properly set up warnings for clang-based librariesIvan Donchevskii2018-11-291-0/+1
| | | | | | | | | Add warning flags to QMAKE_CXXFLAGS_WARN_ON to have them after default warnings. Change-Id: Ic94fe36175d3198191251d5b475f8f8ed000bef7 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* ClangFormat: Enable BreakStringLiterals in .clang-formatIvan Donchevskii2018-11-271-1/+5
| | | | | | Change-Id: Icbd601c236cb5ad620d1bc7217a8629fe50a0046 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Clang: Fix output arguments highlighting for constructor parametersMarco Bubke2018-11-272-0/+30
| | | | | | | | | The are not any more shown but they are still not shown for constructor arguments because libClang is providing the wrong argument count. Task-number: QTCREATORBUG-21543 Change-Id: If9b6140ed4b2dedf71bd94aae0a97669cdd04e67 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Tests: Fix QmlJs auto testsChristian Stenger2018-11-272-2/+11
| | | | | Change-Id: Iba5e5e786e8241db120359f95850207021d61c49 Reviewed-by: Marco Benelli <marco.benelli@qt.io>
* Clang: Fix TokenProcessor.Qt* testsNikolai Kosjar2018-11-271-3/+3
| | | | | | | | | | | | | With the upgrade to clang 7 these started to fail on Linux. Something changed in clang regarding the processing of our wrappedQtHeaders/QtCore/qobjectdefs.h. Since we can't rely on the include paths of Qt in the tests anyway, inline the relevant preprocessor directives into the test file to make the tests independent of that. Change-Id: Iba5cdc5483c3007346346d294374598a75fcb5a1 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Fix providing snippets for another caseNikolai Kosjar2018-11-271-0/+8
| | | | | | | | | | | | | We have to indicate snippet addition for the PassThroughToLibClang case. This completes commit d946ff540312210f1da8cc509c474a39da45117c Clang: Fix adding completion snippets after { Change-Id: Ib543c415d4fdcc99d8bbf4815930f3d8481bc810 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* QmlDesigner: Skip failing testThomas Hartmann2018-11-231-0/+2
| | | | | Change-Id: Ie23bef2faa45cd6ac2b96b49bfc02ce6d55d6639 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* UnitTests: Fix buildMarco Bubke2018-11-221-3/+3
| | | | | Change-Id: I9527c97ef2a7360df7b347dc779989c6f6a9710b Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* ClangPchManager: Store collected build dependenciesMarco Bubke2018-11-213-27/+74
| | | | | | | Task-number: QTCREATORBUG-21289 Task-number: QTCREATORBUG-21377 Change-Id: Idba57ac09bc5a1f1ccef87f5e33f1ceeaccea372 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Fix C++ paths search in compiler options builderIvan Donchevskii2018-11-211-0/+78
| | | | | | | | Take into account paths from MinGW and NDK Clang. Fixes: QTCREATORBUG-21540 Change-Id: I00906c75dc4ddeb92fe5942a0222285d8ce2eb9d Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* ClangPchManager: Filter missing includes recursivelyMarco Bubke2018-11-208-5/+48
| | | | | | | | | | Missing includes prevent the creation of PCHs. So removing includes which directly or indirectly point to missing includes is a requirement for working PCHs. Task-number: QTCREATORBUG-21529 Change-Id: Id55be164df590149fe1ab55c2a3a90b8b5e3bfa7 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Add BuildDependencyCollectorMarco Bubke2018-11-2036-494/+777
| | | | | | | | | | IncludeCollector is renamed to BuildDependencyCollector. It is now returning a BuildDependency instead of individual getter. The test coverage is improved too. Task-number: QTCREATORBUG-21379 Change-Id: Ifc2d1c40c85772cf498c21968de526f4408b6023 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Dumper: Fix displaying enums with LLDBChristian Stenger2018-11-191-2/+2
| | | | | | | | | | | Prioritize displaying as enum if a type is known to be an enum. Otherwise this would just end up get displayed as string representation of its value. Enable respective dumper tests. Change-Id: I3e5406e14a68f02741b6144bb54528b72cc8192d Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: hjk <hjk@qt.io>
* Clang: Remove duplicate CXX flagsOrgad Shaneh2018-11-151-1/+1
| | | | | | | | Most of the flags appear twice on llvm-config-7 --cxxflags (at least on Debian). Change-Id: I9c5630d61472fa37bce998ec541a0ab561b83722 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Tests: Allow dumper tests with Qt5.11 and Xcode 10Christian Stenger2018-11-141-0/+1
| | | | | | | | | qmake brings up a warning regarding using Qt5.11 in combination with Xcode 10. This seems to get handled as error inside the tests - so, disable the warning. Change-Id: I6d2918789580fd332048c85e0c4fc75a9635deb6 Reviewed-by: hjk <hjk@qt.io>
* Clang: Fix completion icon for members in member init listNikolai Kosjar2018-11-142-0/+19
| | | | | Change-Id: Ib02320dcf4de7cbb8ac6fbf29d1929edae77591a Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Squish: Fix using locatorChristian Stenger2018-11-131-1/+1
| | | | | Change-Id: Ifbc693439cbcd4146f1b18e67f1f1d6bc49162e5 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Test initialized refs to smart pointers in tst_memberoperatorRobert Loehning2018-11-081-0/+2
| | | | | Change-Id: I7c48ca5c4d05f4ea36dd82bde3a19a386580452a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* [Debugger] Fix bitfield values to show up correctly using lldbengineAlexandru Croitor2018-11-081-1/+4
| | | | | | | | | | | | | | The bitpos value returned by lldb is the bit offset relative to the beginning of the type, there is no need to do an extra modulus operation. Adjust dumper test to add the previously failing case. The failing case happens when the class containing the bitfield has more members in front of the bitfield. Change-Id: I93678f78e6799843558ec53342a0ed49cac74f48 Reviewed-by: hjk <hjk@qt.io>
* Clang: Add BuildDependenciesStorageMarco Bubke2018-11-0810-114/+162
| | | | | | Task-number: QTCREATORBUG-21378 Change-Id: Ibcb90239d240653b21f12a7b96a7775e5b0b4319 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Squish: Adapt tst_memberoperator to CCM changesChristian Stenger2018-11-082-34/+77
| | | | | | | | | | | | When using the clang code model the operator '.' does no more automatically change to '->' before applying a proposal. Instead it points out whether a proposal requires to change the operator when applying. So, adapt the test and losen some condition to be able to keep this test generic and maintainable. Change-Id: I215fba9bfa98d5d056cd9493d7aa7192fb7a963f Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Clang: Refactor FilePathIdMarco Bubke2018-11-0826-370/+383
| | | | | | | | We don't need the directory id any more. It's not used widely any way. Task-number: QTCREATORBUG-21443 Change-Id: Ia95ea4c72fe9530ac56262f61f17faca04d313ba Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* CompilationDatabase: Speed up parsing project fileIvan Donchevskii2018-11-071-5/+11
| | | | | | | | Avoid expensive indexOf and check for the exactly same flags before applying the full filter. Change-Id: I6936b2022a2b439aad7bf0a65280c3db16d00c34 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* ClangPchManager: Add BuildDependenciesProviderMarco Bubke2018-11-069-8/+312
| | | | | | | | It is still unfinished but I want to add other changes first. Change-Id: Ife7ac56576f85d800633ea1e8f1c3f4f16486d5f Task-number: QTCREATORBUG-21377 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Debugger: Fix display of null referencesChristian Stenger2018-11-061-2/+8
| | | | | | | Fixes: QTCREATORBUG-21210 Change-Id: I529f38aad9b93707e09ffdd28885e46c2cfd158c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Tests: Fix disassembler auto testChristian Stenger2018-11-051-5/+5
| | | | | | | Output has changed with 06a78b6264ee. Change-Id: I32d401bf1111fe037b04873ff223cb916b4f886e Reviewed-by: hjk <hjk@qt.io>
* LSP: Fix auto tests for Linux and macOSChristian Stenger2018-11-051-3/+7
| | | | | | | | | Some URI/URL functionality (especially file protocol) is based on the underlying file system and operating system respectively. Change-Id: I6a0956bbef292ff964aec581c2555c54d6d0dbe3 Reviewed-by: David Schulz <david.schulz@qt.io>