summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Debugger: Fix dumper test buildDavid Schulz2017-02-031-2/+1
| | | | | | | | | | | | | | QTC_LIB_DEPENDS has to be set before including qttest.pri Change-Id: Ie455b7341a2d79d74e3bf6f9f9d39ce8a7539e6d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Test for array of function pointers in LLDB dumperAlexandru Croitor2017-02-021-0/+33
| | | | | | | | | | | | | | | | | | Test checks that the dumper doesn't go through the slow "iterate through every type defined in target" dumper path. Done-by: Alexandru Croitor Change-Id: I4e1aea22ea2912467635f2e62fe1f6b2aa58e897 Reviewed-by: hjk <hjk@qt.io>
* | Debugger: Remove Qml dependency from dumper test on Linux/Machjk2017-02-021-1/+14
| | | | | | | | | | | | | | | | Helps building tests in restricted environments. Change-Id: Ic12b8e011555735a6539a8aba1e9e55b321dfbc2 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Clang: Use PathString in more casesMarco Bubke2017-02-024-6/+6
| | | | | | | | | | Change-Id: I7bee469256a79b384bf7b8c1d5355f1df11c7b24 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Utils: Move forward declaration of SmallString in an extra headerMarco Bubke2017-02-022-2/+2
| | | | | | | | | | Change-Id: I6da1cc60d425f654a31570373eb3b4f660d5f975 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Clang: Use " instead of <> for includesMarco Bubke2017-02-021-4/+4
| | | | | | | | | | Change-Id: Ife6ab8b89221dc336b93c1dba3804ba240c3e52e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Clang: Use the whole path in the IncludeCollectorMarco Bubke2017-02-022-24/+24
| | | | | | | | | | Change-Id: I406f0050b0c244b6c0d1352b5889d4e65a43fa33 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Utils: Add replace for charactersMarco Bubke2017-02-021-0/+9
| | | | | | | | | | | | | | | | It is much more performant to have a overload of char instead of providing a string all the time. Change-Id: I1a4ed82bf056f6af0c1f91c236b3fc30afa7f5d8 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Clang: Filter exception flags and move some moreTim Jenssen2017-02-011-3/+0
| | | | | | | | | | Change-Id: I3ef6a6bb2297d6965c5c1d457cfe2b354ee3dcdb Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | Clang: Remove white spaceMarco Bubke2017-02-011-1/+0
| | | | | | | | | | Change-Id: If95b63923e838ba831975e4870629126dacc54e3 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Clang: Handle generated filesMarco Bubke2017-02-017-24/+71
| | | | | | | | | | | | | | We don't handled generated files so we got internal parse errors. Change-Id: If75e202f93fe3f71f43e3b1d15c0fb77e20c2248 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Merge remote-tracking branch 'origin/4.2'Eike Ziller2017-02-014-17/+10
|\ \ | |/ | | | | Change-Id: I8896af66cf8af7436cf3946ddb013742260d50a9
| * Squish: Update moved license file in tst_git_cloneRobert Loehning2017-02-011-1/+1
| | | | | | | | | | Change-Id: I8a34a878e91a64762b28b03d08334148a3dbe8d3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Squish: Update BuildDirectoryLineEditRobert Loehning2017-02-011-1/+1
| | | | | | | | | | Change-Id: I9d789d501a43ff634ea01a3f5b8afe74c026d0e0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Squish: Parse qtcreator.pro with Qt 5.6 to avoid changing resultsRobert Loehning2017-01-302-15/+8
| | | | | | | | | | | | | | Change-Id: I47cecb8ac8aaf1d5a845b801ff4038b3f023a220 Task-number: QTCREATORBUG-17577 Task-number: QTCREATORBUG-17609 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Debugger: Adapt QHostAddress dumper after Qt Core change a6cdfacfhjk2017-02-011-7/+7
| | | | | | | | | | Change-Id: I750d37f7ab23a638c2e0c5f0fd808ba22a0b49d0 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Debugger: Add dumper for unordered_multi(set/map)David Schulz2017-02-012-4/+30
| | | | | | | | | | Change-Id: Ie1badb0cab0331c35e3094ab121a1a1170cc2bcf Reviewed-by: hjk <hjk@qt.io>
* | Utils: Add test that a longer path string is a short stringMarco Bubke2017-02-011-0/+9
| | | | | | | | | | Change-Id: Ie4cf6ae5e2ac9fac878b3f85e88b1e64960a156d Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Utils: Fix long small stringMarco Bubke2017-01-311-0/+10
| | | | | | | | | | | | | | | | | | We used only 6 bit to save the short size but for SmallString with a size over 64 it is not enough. So we have now to use a uint16 instead of a uint8 if the size if over 64. Change-Id: I53558e492b6cb40b739b23a8af83d192a2e11bd2 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Utils: Add intializer_list constructor in SmallStringMarco Bubke2017-01-311-0/+42
| | | | | | | | | | | | | | | | | | | | | | You can now write SmallString text = {"Oh ", women[4], " how much I miss you"}; if it can be casted to SmallStringView. Change-Id: I86b69ee8d735017cac4391e7c4e68355eb5f227b Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Utils: Improve and fix operators in SmallStringMarco Bubke2017-01-311-0/+57
| | | | | | | | | | Change-Id: I51f4e647cbd3ada0c3a86d16f40fd8044acead33 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | UnitTests: Use clang flags to build unit testsMarco Bubke2017-01-311-0/+6
| | | | | | | | | | | | | | | | We want to avoid build error so we use their flags and remove flags we don't want. Change-Id: I471e5195f98658d73d2b04b6e4bf597573ca87ae Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Clang: Add Process GeneratorMarco Bubke2017-01-319-39/+468
| | | | | | | | | | | | | | | | | | So far we only compiled the precompiled headers only sequentially. The process generator is creating, managing a queue of processes to compile the PCHs parallel. Change-Id: I8075def4ef9e6b0191bbd51b3631d1c51ec7b361 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Clang: Add timer based path notification compressionMarco Bubke2017-01-316-3/+240
| | | | | | | | | | | | | | | | | | | | QFileWatcher is only reporting one path per signal which is suboptimal if you change many files at once. This patch is introducing a timer which is waiting some time time to see if more path changes are reported and is collecting them in a vector. Change-Id: I50f7c21186353b199634e7b3cd5a41f8d581a31d Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | qmljs editor: test for reformatterMarco Benelli2017-01-312-0/+24
| | | | | | | | | | | | | | Add test cases for multiline comments. Change-Id: I3e02560791b331c7e1892e9c0bb50cd64241a2bb Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* | Clang: Add ClangPchManagerMarco Bubke2017-01-3031-9/+2084
| | | | | | | | | | | | | | | | | | | | | | | | Compiling every header file again and again is quite time comsuming. There are technics to improve this like preambles(a kind of automated precompiled header) but they don't share their data between translation units. This approach provides an automatically generated precompiled header for every project and subproject to improve the loading time. Change-Id: I34f5bd4db21951175920e2a9bbf6b97b1d705969 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | UnitTests: fix that feature "shared" was setTim Jenssen2017-01-301-4/+4
| | | | | | | | | | | | | | | | Resulted in wrong import/export defines of Utils symbols. Also it needs to be set before the project includes are be done. Change-Id: I950155a92c9a8ea21d5d91a57bd42058980d3971 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | Merge remote-tracking branch 'origin/4.2'Eike Ziller2017-01-304-25/+10
|\ \ | |/ | | | | | | | | | | Conflicts: src/shared/qbs Change-Id: Ic39fd1c411632f56312fae31c0c88ebc1098b5a4
| * Squish: Remove mapping data for outdated versionsRobert Loehning2017-01-271-11/+0
| | | | | | | | | | Change-Id: I5fc21e9cc4dec44a36b7dc2857423cb8b654bbc6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Squish: Use different function name in tst_CSUP01 on WindowsRobert Loehning2017-01-271-3/+6
| | | | | | | | | | | | | | This reverts 7746c31774ba58c3a99f84669ec7bc8aedfdbb61 on Windows Change-Id: I6161320ee97ecfcd2510f73d955346e1bb9ebfc1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Squish: Clean up tst_qml_editorRobert Loehning2017-01-271-10/+3
| | | | | | | | | | | | | | | | Should have been done in 4b4e5f69901f80ace0c0dba683771c2139d5c2b8 Change-Id: I0a747ea4bbf0ef02caaf31a14161dced9b4dd806 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Squish: Stabilize tst_HELP06Robert Loehning2017-01-271-1/+1
| | | | | | | | | | Change-Id: Id8d642c581b825adc1d958f82280e8bf4f011c41 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Clang: do not check the order in testsTim Jenssen2017-01-301-10/+18
| | | | | | | | | | Change-Id: I6fe93beab931506018f261a8a34fe4c4f51b87e5 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* | qmake build: Do not require 3rd party plugins to set c++14Eike Ziller2017-01-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Do it in qtcreator.pri instead again, since that is supposed to be included by projects depending on Qt Creator. Since we will use C++14 in utils/algorithm.h and other prominent places, it would be very annoying to require setting C++14 on all external plugins. Change-Id: Ie11a30b33c791f3bf6db39fcee454f1e887352c2 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | UnitTests: Silence a warning about empty QTC_REL_TOOLS_PATHNikolai Kosjar2017-01-301-0/+5
| | | | | | | | | | | | | | | | Project WARNING: using utils-lib.pri without IDE_LIBEXEC_PATH or IDE_BIN_PATH results in empty QTC_REL_TOOLS_PATH Change-Id: Ibde3b3810c70dc3ea4f38afa4e9e193e0893c858 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Debugger: Unify std::once dumper outputDavid Schulz2017-01-271-2/+1
| | | | | | | | | | Change-Id: I4bbb14036ce89d8e06b184f33fd2ecfd098f2443 Reviewed-by: hjk <hjk@qt.io>
* | CppTools: Fix choosing project part after project openNikolai Kosjar2017-01-261-16/+18
| | | | | | | | | | | | | | | | | | As long as there are project parts for a source file, always determine the best project part, instead of trying to stick to the previous one. This ensures the best project part at all times and simplifies the code. Change-Id: I25ea3eb43a5a3e6d93688d4b8965f596dc9ae22b Reviewed-by: David Schulz <david.schulz@qt.io>
* | CppTools: Fix using updated project partNikolai Kosjar2017-01-261-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Open a project consisting of two subprojects referencing the same source file. 2. Open the source file. 3. Click '#' in the editor toolbar and select the second project (part). 4. Update the project file, e.g. add a define ==> Editor does not reflect the added define This is due to comparing project part pointers. Fix by using the project part id that remains stable across project manager updates. Change-Id: Ifd1a113e55ebe2ecf036cd7caafdbfd6e4cdf415 Reviewed-by: David Schulz <david.schulz@qt.io>
* | CppTools: Use fallback project part if project is closedNikolai Kosjar2017-01-261-24/+30
| | | | | | | | | | | | | | | | | | ...instead of sticking to the old one. If a project is closed, the editor should reflect that. It also simplifies the code. Change-Id: I9b8a94513d3b06a238cfc4ee60c11c0d0da3d93f Reviewed-by: David Schulz <david.schulz@qt.io>
* | CppTools: Provide hints about chosen project part for editor documentNikolai Kosjar2017-01-241-16/+37
| | | | | | | | | | | | | | | | | | | | | | | | Parse issues can have multiple reasons (invalid kit, not a project file, actual parse issue) and we should be able to tell them apart. With this change, we can distinguish between the fallback project part and a ambiguous project part. Follow up changes will use this to display more accurate diagnostics. Change-Id: Icc8767607cc17dc14d6227b07f34e81ba5525a96 Reviewed-by: David Schulz <david.schulz@qt.io>
* | FakeVim: Remove a few uses of QObject::sender()hjk2017-01-241-44/+37
| | | | | | | | | | | | | | | | Considered bad style... Change-Id: Idc1d39bd55fa30dfa854bbc99094f5f6ec9afc4d Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/4.2'Eike Ziller2017-01-234-3/+80
|\ \ | |/ | | | | Change-Id: Ib3073a0a3d80c99cf97b9839480dbf9583fa10de
| * Squish: Configure C-toolchains for macOSChristian Stenger2017-01-182-1/+56
| | | | | | | | | | Change-Id: I3d4fcc25ecca8a02e8dbbace4fc063a72cd85a40 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
| * Squish: Configure C-toolchains for LinuxRobert Loehning2017-01-182-2/+24
| | | | | | | | | | Change-Id: Id2bd1768e2520bbcfdc918939722f7f5935b8fce Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | ProjectExplorer: Added support for registering custom languagesFilippo Cucchetto2017-01-231-1/+1
| | | | | | | | | | Change-Id: I728a2ed1ef7d9f44d7c2b59d27d6e23444cd3bb5 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | QmlDesigner: Do not escape "\" for unicode charsThomas Hartmann2017-01-202-0/+32
| | | | | | | | | | | | Task-number: QTCREATORBUG-12616 Change-Id: If8cac8d35cb97f59e12d1609f808dd639f93f315 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Revert "Revert "Utils: Remove old compiler support code""Robert Loehning2017-01-192-8/+0
| | | | | | | | | | | | | | | | Thomas provided a smaller fix. This reverts commit 78fb7f44bf393d8b9e3e22fcccc4ae7951d4bb6e. Change-Id: I1edff6477526fe4ce29df38852f47fe49117561e Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Revert "Utils: Remove old compiler support code"Alessandro Portale2017-01-192-0/+8
| | | | | | | | | | | | | | | | | | This reverts commit 8a32bcc5e78032777137298f361d94a3d332fc2b. Broke build with MSVC 2015, update 3 Change-Id: Icb59b70fb00ea2a2ecc8d26c8177d21d82aaccf2 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Utils: Remove old compiler support codeMarco Bubke2017-01-192-8/+0
| | | | | | | | | | | | | | | | We now support constexpr, noexcept and alignas on all compilers. Next will be C++ 14 constexpr support. Change-Id: I254049c60dcd82fc373ec907cbb5702a4b344978 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Debugger: Adjust std map test to msvc iterator dumperDavid Schulz2017-01-191-4/+6
| | | | | | | | | | Change-Id: I3c9e4138d2e0a3ec4083f01d243eb707905e9f18 Reviewed-by: hjk <hjk@qt.io>