summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/4.2'Eike Ziller2017-02-275-11/+60
|\ | | | | | | Change-Id: I9006dd493707ae626ae3502541599c8789e1aab0
| * Squish: Wait a second in checkNavigator()Robert Loehning2017-02-271-0/+1
| | | | | | | | | | Change-Id: I45bad30e28f7374ae10d5b0155e08d8297f44448 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Tests: Avoid race condition when building with multiple jobsChristian Stenger2017-02-271-9/+8
| | | | | | | | | | | | Change-Id: Ia5a110812694d03e6f6e02cf66b4aaf209224910 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * C++: Avoid inline namespaces in generated codeNikolai Kosjar2017-02-231-0/+46
| | | | | | | | | | | | | | Task-number: QTCREATORBUG-16086 Change-Id: Ic2f3fd38ae6cc93725bc214c24320f40a0a519a8 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * Debugger: Pass Qt type info version to the debugger protocolDavid Schulz2017-02-231-2/+2
| | | | | | | | | | | | | | | | Fixes Qt 5.8 QDateTime python dumper. Change-Id: If6fab7bf3ea63372ef01942bcaa2121eb9c2b6db Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * Squish: Add some debug logging to openDocument()Robert Loehning2017-02-211-0/+3
| | | | | | | | | | Change-Id: If34eaad1bd04a7d2409f0e00c217c7bd12add106 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Move mimetype definitions to plugin specsEike Ziller2017-02-272-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | - Avoids the hassle of QRC files and manually registering mime types - Avoids performance regressions because of mime types that are registered after mime database has been used - Makes it technically possible to detect that a disabled plugin could handle a mime type if it was enabled Change-Id: I373008b1b56e9c6b4853055f20b3eeb112a6eff9 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* | Squish: Remove unused objectChristian Stenger2017-02-242-2/+0
| | | | | | | | | | | | | | Forgotten to remove this in e03132f51796f1b882c3dfeda1bb869a99d6bf2a. Change-Id: I7699c657d0ff8300ac38d96a9430d8c1e372628f Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | Squish: Fix tst_session_handlingChristian Stenger2017-02-241-17/+25
| | | | | | | | | | | | | | Adapt to changed UI and Welcome page. Change-Id: I413835926411687d6161026da42be97b2b6a41c3 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | Remove spaces in initializer listsTim Jenssen2017-02-2213-471/+471
| | | | | | | | | | | | | | Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by: hjk <hjk@qt.io>
* | Clang: Work around missing fileMarco Bubke2017-02-213-2/+21
| | | | | | | | | | | | | | We now generate an empty fake file. Change-Id: I92fef2b24dce788c1d1b675b034d4b31346b80d9 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Clang: Ignore CHeaderMarco Bubke2017-02-201-2/+4
| | | | | | | | | | | | | | | | | | | | Because we don't now if a *.h file is a C or C++ header we provide both as project file if a C and C++ file is present. But C++ is not readable by C compiler. So we skip that files and hope there is no non referenced C header, which is very very unlikely. Change-Id: I5505713e759749c8a0738e11b70bb6b309412966 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Clang: Silence warningsMarco Bubke2017-02-202-12/+8
| | | | | | | | | | Change-Id: I63f8a85f0a352fc8f41835bd3ab1574255d4436b Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Squish: Adapt to changes of project wizardsChristian Stenger2017-02-201-21/+42
| | | | | | | | | | | | | | Some project wizards have nowadays build system support. Change-Id: I2d7e9ffd5be2ec74a012fa977281e032596229b5 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | CppTools/ProjectManagers: Reduce ui blocking when loading projectsNikolai Kosjar2017-02-205-244/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ${AnyProject}::updateCppCodeModel() did two potentially not that cheap operations in the ui thread: (1) Querying the MimeDatabase for the mime type for the source files of the project. In 99.9% of the cases no files need to be read for this as the file extension will resolve the type. The expensiveness comes from the sheer number of files that can occur. (2) Calling compilers with the "(sub)project's compiler command line" to determine the macros. While the caches avoid redundant calls, the number of the unique compiler calls makes this still a ui-freezing experience. These two operations are moved into a worker thread. For this, the expensive compiler calls are encapsulated in thread safe lambdas ("runners") in order to keep the "mutexed" data minimal. The original API calls of the toolchains are implemented in terms of the runners. While adapting the project managers, remove also the calls to setProjectLanguage(). These are redundant because all of the project managers already set a proper value in the constructor. Also, currently there is no need (client) to report back detection of C sources in project parts. This also keeps CppProjectUpdater simple. There is still room for improvement: * Run the compiler calls in parallel instead of sequence. * Ensure that the mime type for a file is determined exactly once. Change-Id: I2efc4e132ee88e3c8f264012ec8fafe3d86c404f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Tests: Fix compilation of tst_dumpers.cppNikolai Kosjar2017-02-171-1/+1
| | | | | | | | | | Change-Id: Icdd65a6fc510e4bdb6071ebd4314a0eff7559f4f Reviewed-by: David Schulz <david.schulz@qt.io>
* | Debugger: Restrict tests with initializer lists to MSVC 14+David Schulz2017-02-171-5/+55
| | | | | | | | | | Change-Id: I685909652bd7567473a2e6d09254d67e8bb51b33 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Clang: Add test for include collectorMarco Bubke2017-02-164-0/+21
| | | | | | | | | | | | | | To be secure that include is only called it the definition is true. Change-Id: I04bae9860e64206a1c6886d7cf1682a87e9f9a07 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Clang: Improve speed by content generationMarco Bubke2017-02-166-39/+79
| | | | | | | | | | | | | | | | The argument parsing has some considerable overhead. We try to avoid that with merging all content together in one file. Change-Id: Icf426bb5d6a5569d59c180f94c7eab66a22a251c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Squish: Adapt tst_WELP04 to latest Welcome page changesChristian Stenger2017-02-163-44/+44
| | | | | | | | | | Change-Id: I835bbcf3676816d92160b2eca967af4adcd3876a Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | Debugger: Fix compiling dumper tests without profile on windowsDavid Schulz2017-02-151-0/+2
| | | | | | | | | | Change-Id: I2260678a77fde5eb0599cdec2e52f12f63cf0fcd Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Merge "Merge remote-tracking branch 'origin/4.2'"Eike Ziller2017-02-144-10/+28
|\ \
| * \ Merge remote-tracking branch 'origin/4.2'Eike Ziller2017-02-144-10/+28
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/src/qtquick/creator-tutorial-create-qq-project.qdocinc doc/src/qtquick/qtquick-creating.qdoc doc/src/qtquick/qtquick-uiforms-tutorial.qdoc share/qtcreator/welcomescreen/qtcreator_tutorials.xml src/plugins/git/gitgrep.cpp src/shared/qbs Change-Id: I6f4d168d888d9547c3af0819f79cc9ebb4186ca0
| | * Squish: Use cdb from Windows 10 kitRobert Loehning2017-02-142-9/+11
| | | | | | | | | | | | | | | Change-Id: I7e30848f583fd767bf6ad8a4accac7df41ce9167 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| | * GDB: Fix printing of flag enumsOrgad Shaneh2017-02-131-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | It worked with plain GDB (parse_and_eval), and was broken by 696b2d426163450a2a554624b2121e07281a76d7. Change-Id: Ibc143efdbd90681a2f9f4d84b75063eb98078f2b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| | * Squish: Fix iterating over debuggersChristian Stenger2017-02-101-1/+3
| | | | | | | | | | | | | | | Change-Id: I6648e74f8f8e0c581a4bd4ba4b3606e3f18a5af5 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | | Tests: Define SRCDIR for clang static analyzer tests only where necessaryNikolai Kosjar2017-02-143-3/+1
|/ / | | | | | | | | | | | | Only the test clangstaticanalyzerlogfilereader makes use of that. Change-Id: I5761ed023eab1b03dbb276d1798163fd2fb81e3d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | UnitTest: Replace "included File" with "header"Nikolai Kosjar2017-02-141-16/+16
| | | | | | | | | | Change-Id: I30799e116a794e041c833d76c6cd969ba1a428bf Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Tests: Fix crashing clangstaticanalyzerrunner testNikolai Kosjar2017-02-141-5/+12
| | | | | | | | | | | | | | ...due to a not set master temporary directory. Change-Id: I6668209e9b724f6560331f683b63e1c41616f060 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | UnitTests: Remove unused functionNikolai Kosjar2017-02-141-5/+0
| | | | | | | | | | Change-Id: I580a016ec8567505374e6fc2b0ebbba454ebc192 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Clang: Use Utils::TemporaryDirectoryNikolai Kosjar2017-02-133-9/+29
| | | | | | | | | | | | Task-number: QTCREATORBUG-17401 Change-Id: Ibf6007455ec92b1d9fcac17e1f3b5e2af21b7438 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | Squish: Adapt tst_WELP03 to latest Welcome page changesChristian Stenger2017-02-131-62/+75
| | | | | | | | | | Change-Id: Ia62813cf94b31a82fedb191eaf11f752d1d30bf0 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | Squish: Adapt tst_WELP02 to latest Welcome page changesChristian Stenger2017-02-135-51/+114
| | | | | | | | | | | | | | | | Additionally move common used code for interacting with the Welcome page into separate file. Change-Id: If863ae529c7c81d095f310f0a34926b324c77fa8 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | Debugger: Fix dumper testsOrgad Shaneh2017-02-131-2/+14
| | | | | | | | | | | | | | | | | | | | 1f29242276b83489b6671e0190cedc295e1360b9 used the correct form for CONFIG -= qt. This revealed several cases that are missing CoreProfile configuration. Change-Id: I8bb6d5156eb6beba91a8df7b948832f1e043d64f Reviewed-by: hjk <hjk@qt.io>
* | Tests: Fix build on macOS without command line tools installedEike Ziller2017-02-103-5/+1
| | | | | | | | | | | | | | | | | | | | Overwriting QMAKE_CXXFLAGS will remove the needed isysroot flag for finding the standard headers. Explicitly settings the standard lib on macOS is also no longer necessary. Change-Id: I8a5ae5df485785b473a435c7feb9f8fb3295952b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | UnitTest: Improve linking time under linuxMarco Bubke2017-02-091-0/+6
| | | | | | | | | | Change-Id: Ia1f90d0ec208535a75d187875f0969bfca65b318 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* | Debugger: Add a dumper for QSqlFieldhjk2017-02-081-0/+34
| | | | | | | | | | | | Task-number: QTCREATORBUG-3905 Change-Id: I9290a9e46d7fa77417d58a3f81d4e4d680c751b6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Replace some more occurrences of QStringList() << patternChristian Stenger2017-02-082-70/+50
| | | | | | | | | | Change-Id: Ic7193ac3a741763479a9ef129ed05cb7ca64f1e9 Reviewed-by: hjk <hjk@qt.io>
* | Squish: Adapt tst_WELP01 to latest Welcome page changesChristian Stenger2017-02-081-73/+128
| | | | | | | | | | Change-Id: I582c536666657d56850bb344cc6ca471eb75b01e Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | Debugger: Fix a few bogus CONFIG {+,-}= QT statementshjk2017-02-081-7/+3
| | | | | | | | | | | | | | Should be lower case, and += is not really needed. Change-Id: If51cfcfd8e1971576fe67d3c53c8f18f416e3afe Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Debugger: Adjust python dumper for 32bit MSVC binariesDavid Schulz2017-02-071-1/+1
| | | | | | | | | | Change-Id: Ia20321da89b387d016eb7fed076002a709aae748 Reviewed-by: hjk <hjk@qt.io>
* | CppTools: Report also C language back to projectNikolai Kosjar2017-02-061-0/+20
| | | | | | | | | | | | | | ...for Project::setProjectLanguage(). Change-Id: I77347c4597061fb48782c629d5ad6898028fee13 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Merge remote-tracking branch 'origin/4.2'Eike Ziller2017-02-0618-525/+63
|\ \ | |/ | | | | Change-Id: Idd63494e3878dbf8811c35beb957562255d83813
| * Squish: Add those from Windows 10 kit to expected debuggersRobert Loehning2017-02-061-1/+3
| | | | | | | | | | Change-Id: I5281fa5dc126a7cf1ea84592f735cb11d908b82d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Squish: Enable tst_qml_js_console againRobert Loehning2017-02-021-5/+2
| | | | | | | | | | | | Task-number: QTCREATORBUG-15831 Change-Id: I31dc06c39c2c038205d2512804757c4d7b3429b7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Squish: Save autodetected MSVC-toolchainsRobert Loehning2017-02-022-6/+30
| | | | | | | | | | Change-Id: Ib82eecbb7f4ff8e2daee95a8ed93b5327e7dff99 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Squish: Remove ancient mobile kitsRobert Loehning2017-02-0216-522/+37
| | | | | | | | | | | | Change-Id: I0bb6e2b0f61e7618a166004b418b70efa752a75f Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | UnitTest: Fix compilation for different configurationsMarco Bubke2017-02-062-29/+31
| | | | | | | | | | | | Change-Id: I20d4217d1c33002f7e1ac084af4b0982b2f04971 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* | Debugger: Make cdb python dumper tests greenDavid Schulz2017-02-061-28/+35
| | | | | | | | | | | | Change-Id: I3b6c57660badf14eea2a97f4ccfb3ef9aa168901 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* | CppEditor: Rework showing/switching parse configurationsNikolai Kosjar2017-02-031-8/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move the combox box for switching the parse configurations out of the "Additional Preprocessor Directives" dialog ('#'-button) to make it better visible/accessible. Also, decouple the extra preprocessor directives from the concrete parse context since this is not anymore in same dialog. * The combo box appears only if multiple parse configurations are available for a file. * The first time multiple parse configurations are detected, an info bar is shown that points the user to the combox box. A "Do Not Show Again" button is provided. * Upon selecting an entry, the preferred parse configuration is saved as part of the session. The setting can be cleared with the context menu entry on the combo box. Follow-up changes need to ensure that the display name and/or tooltip is unambiguous, e.g. for qbs and cmake projects. Change-Id: I9e9773704187291524ad7b605bfdddd83ef5b19d Reviewed-by: David Schulz <david.schulz@qt.io>