aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools
Commit message (Collapse)AuthorAgeFilesLines
* iOS: Fix failure to run an app on iOS version 13 onwardsVikas Pachdha2019-10-141-51/+26
| | | | | | | | | | Use secure API to start the gdbserver service Task-number: QTCREATORBUG-22950 Change-Id: I685162b7ec90d738c5f42e094f5046367936530f Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Andy Shaw <andy.shaw@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake build: Fix macOS buildCristian Adam2019-08-151-1/+1
| | | | | | | Current brew cmake version is 3.12, which fails to compile. Change-Id: I2d89f5716a97a4a4d8a8e8744902e75cc19c39c7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CMake build: Add qtc-askpassEike Ziller2019-08-122-0/+6
| | | | | | Fixes: QTCREATORBUG-22804 Change-Id: I749d0da495e77e45198ee67675c297ec68da1634 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* QmlDesigner: reduce enumeration to header onlyTim Jenssen2019-08-072-2/+1
| | | | | | | | | | | | | It is used in some other external qmldesigner plugin and these are built against current dev packages, which are not contain this cpp file. Different solution would be to add: r"^share/qtcreator/qml/qmlpuppet/types/enumeration.cpp$", to scripts/createDevPackage.py which feels not that clean. Change-Id: Ia1fb5c02f457d98474218689ebf6483706265dde Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* CMake build: Add "Devel" packageCristian Adam2019-07-251-2/+2
| | | | | | | | | The "Devel" package will contain headers, libraries, documentation needed by the 3rd parties to build Qt Creator plugins. Fixes: QTCREATORBUG-22514 Change-Id: If54929f823982b921b98a63ff6085d53618a3a49 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* UnitTests: Fix compile without ClangMarco Bubke2019-07-161-4/+4
| | | | | | | | I moved the clang depend code under the condition that it is only compiled if LLVM is present. Change-Id: If1e37f677464ff38833c81dbebdfe8eaa563cdde Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ClangPchManager: Fix path for excluded include filesMarco Bubke2019-07-114-18/+8
| | | | | | | Still used the old approach but now it is using the new one. Change-Id: I4bf4da3a5d41d46afff261f3d77bd9190737038a Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangPchManager: Protect fetchPchSourcesMarco Bubke2019-07-111-1/+12
| | | | | | | It was not protected by a transaction so it was not thread save. Change-Id: Ib4529d0e94942d3cbafb46705a0256812908c8c6 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangRefactoring: Test for non existing clientMarco Bubke2019-07-111-1/+2
| | | | | | | This can be happen as we shutdown the process. Change-Id: I69f30ed65ef4456abe6d59b4ea188a67c482efe0 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangRefactoring: Make the indexer more robustMarco Bubke2019-07-111-23/+35
| | | | | | | | We check now if the database is busy. This should not be happen but better be careful. Change-Id: I8b667ff183368977991974ea1fe7fcde837e968a Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangRefactoring: Add WAL checkpoint at the end of the symbol storageMarco Bubke2019-07-111-0/+1
| | | | | Change-Id: I70fde54947a302ae0e45bff083cd5654c86b3891 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Fix use-after-freeNikolai Kosjar2019-07-095-8/+14
| | | | | | | | | | | | | | | | ...introduced with commit d52ac9a7084df220a5349468703c11cc1c0794c4 Clang: Fix unresolved #includes for ui_*.h headers ClangCodeModelServer::onJobFinished might take over ownership of the jobs object. This should be reflected in the JobFinishedCallback as otherwise we will continue in Jobs::onJobFinished() right into a use- after-free. Change-Id: I4b5cbdf781a8e66f45a743c451b4484bf922f720 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* CMake: Fix buildOrgad Shaneh2019-07-082-5/+1
| | | | | | | This amends commit 376aae271132b39664d381f00bdcd45856acbd73 Change-Id: I63e94c7e720f4f18fcf0f47b6e7af7e471c84df5 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ClangRefactor: Avoid warningshjk2019-07-051-14/+0
| | | | | | | ... about unused code by removing it. Change-Id: I827db7880d5fca8a736b34fa58608328645bf80f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* CrashHandler: Allow enabling per executableNikolai Kosjar2019-07-051-1/+8
| | | | | | | | | | | | | | | | | ...by specifying the executable names in QTC_USE_CRASH_HANDLER. Examples: # enable for all supported executables QTC_USE_CRASH_HANDLER=1 QTC_USE_CRASH_HANDLER=yes QTC_USE_CRASH_HANDLER=all # enable for specific executables QTC_USE_CRASH_HANDLER=qtcreator,clangbackend Change-Id: Ie6f1ad001cea077b8b90b89356f597a4c11378b9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix pri fileMarco Bubke2019-07-041-1/+0
| | | | | Change-Id: I277340dbec962e59f090d393967453d058a933a2 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Clang: Remove old codeMarco Bubke2019-07-0411-846/+0
| | | | | | | | We maybe bring back the clang query interface but the local rename is better served by other plugins. Change-Id: I97bedcb20870632b7dd50977794a65b2b09ededb Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangPchManager: Don't update system PCH if no system include file changedMarco Bubke2019-07-046-32/+119
| | | | | | | | If a project or user file is touched the system PCH should not be regenerated. Change-Id: Id5989735bab4441fc1eebfb5d31e01ba9714428b Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Differentiate between user and non user includes for updatingMarco Bubke2019-07-0415-166/+287
| | | | | | | | We don't want to recreate a PCH if the include or source is not contained by a PCH. Change-Id: If52fc1aed92054b4165cdc634656147fbe8baa47 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* CMake build: Fix building with CMakeCristian Adam2019-07-011-2/+0
| | | | | Change-Id: Ib1ba9d286a029d20106d105b3db7fb34596badbd Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Clang: Add reset to ModifiedTimeCheckerMarco Bubke2019-06-272-12/+2
| | | | | | | | We can reset some file once to flag a file dirty if the included file has changed. Change-Id: I8763bb80f65882fba4e70057f569234e77097927 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Watch only PCH sourcesMarco Bubke2019-06-275-13/+16
| | | | | | | | We watched all sources but we do not want to watch the sources of the project part because they are not used to build a PCH. Change-Id: I700cd6077fc54230c9be94d620043cf3f10cf9ea Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Update ModifiedTimeChecker in SymbolIndexerMarco Bubke2019-06-272-3/+5
| | | | | | | If a watched file changed we should update the ModifiedTimeChecker too. Change-Id: Ie43f5cf5b6dd4ddb1383168a1326add21f6e3e9d Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Watch directories instead of filesMarco Bubke2019-06-276-239/+8
| | | | | | | | Because there a limited resources to watch files we watch now directories. So we need much less resources. Change-Id: Iac558832e9521a7a1a67c5ea99b42ad1b0b5129c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangRefactoring: Clear input files after collecting symbolsMarco Bubke2019-06-262-1/+7
| | | | | Change-Id: Ic4fbaac7ad3b3f80223d6cbb84a34dffa741fc4f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ensure the 'Auto' key is set while registering post mortem debuggerDavid Schulz2019-06-241-0/+9
| | | | | | | | | | | | | The 'Auto' indicates that the the registered post mortem debugger is directly started after an unhandled user exception. If the value is unset or set to '0' in rescent windows versions the debugger selection dialog is not shown. Set this value to '1 ' to show the qtcdebugger dialog, which also has an option to show the system dialog, if the user does not want to debug the exception with Qt Creator. Change-Id: I3160315060dbfb37bec5eaa677c4208900f574a4 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CMake build: Adapt to changesEike Ziller2019-06-181-0/+1
| | | | | Change-Id: Ia9cccd8068248ceacb2e4b1d4e182dc009d65497 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Clang build: Fix compilation with MSVC2017v4.10.0-beta1Cristian Adam2019-06-173-3/+3
| | | | | Change-Id: I677614dc8f9de503131d8ac490a723c9fc5f7beb Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ClangRefactoring: Activate updating for indexingMarco Bubke2019-06-173-0/+11
| | | | | Change-Id: I6fb818edfab8ef7d9cfab0520276acedf0597fd3 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangRefactoring: Improve indexingMarco Bubke2019-06-1724-225/+368
| | | | | | | Fix some bugs in the indexing and use the new macro indexer from clang. Change-Id: I2ba1b28097a8751aea942071851a60d164c6f371 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangPchManager: Improve handling of no include in project PCHMarco Bubke2019-06-172-9/+6
| | | | | | | | We were doing simply nothing but we should call PchCreator::doInMainThreadAfterFinished(). Change-Id: Ia21d2cf4af53121d9e401f6e9a5b432a4daed00f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Improve updatingMarco Bubke2019-06-176-25/+49
| | | | | | | | If project parts are up to date we send them directly to the indexer, so the indexer can decide we something needs an update. Change-Id: I7d4f32794c6b3a861cdefb3653a6dfd4e711f619 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangRefactoring: Ensure that database is written to log after indexingMarco Bubke2019-06-172-9/+19
| | | | | Change-Id: Ic2473d9fe8dc9b41a7da728c9e1b5202524c1a79 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* CMake build: Make sdktool use parts of UtilsCristian Adam2019-06-121-2/+33
| | | | | | Change-Id: I88ab8ab89951bb8966fcc48b7d4ee416015ab8e5 Fixes: QTCREATORBUG-22550 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/4.10'Eike Ziller2019-06-061-3/+2
|\ | | | | | | Change-Id: Ie1861bb221a9974d78938e9a2078c1f6aa207210
| * CPlusPlus: Avoid a few deprecation warningshjk2019-06-051-3/+2
| | | | | | | | | | | | | | The alternatives have been around since 2012. Change-Id: I0aa15d59efe8a547e2ad622ffda689746960d48c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* | ClangPchManager: Improve settings for PCH creationMarco Bubke2019-06-051-0/+2
| | | | | | | | | | | | Change-Id: I398721f5b2659a958252812057e6b2510a351ab6 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | Clang: Remove DelayedTemplateParsing settingsMarco Bubke2019-06-052-2/+0
|/ | | | | | | | It will be use the default which should be provide less errors. Change-Id: I2f5feefe574cbda6cd85f10620dfb75c46a0f7b7 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* sdktool: Fix linking on WindowsChristian Stenger2019-06-042-1/+3
| | | | | | | Amends 959fec76dc25751. Change-Id: Ibc51b19b47ec4ba8b408dc2679581b301f1c9667 Reviewed-by: hjk <hjk@qt.io>
* Utils: Move CommandLine to fileutils.{cpp,h}hjk2019-06-032-0/+6
| | | | | | | | Causes less #include hassle when using downstream instead of command/argument pairs. Change-Id: I0fa0d016374df0b8e0a22f3786623652af684d36 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* CMake: Add missing dependencies to clangrefactoringbackend related codeTobias Hunger2019-06-032-4/+8
| | | | | | Change-Id: I4c7fa04309f24a5a5143a5e32f0b5200fdcde0b6 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CMake: Add Threads::Threads as public dependency to clangrefactoringbackend ↵Tobias Hunger2019-06-031-0/+1
| | | | | | | | library Change-Id: If7d3d4a7226f034d0e4c66726d3a7beed3480efe Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* sdktool: Adapt testsChristian Stenger2019-06-033-6/+6
| | | | | | | | | The names for registered Qt, cmake and toolchain must no more be unique. Amends e9e4c27e3a3f157291a231b8a746bb76dea525b7. Change-Id: Icea00636f3632148f209616de3473816e12e4655 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* CMake build: Add unittest CMake build filesCristian Adam2019-05-297-78/+181
| | | | | | | | | On MinGW 8.1 I get the following after running ctest -j 40 99% tests passed, 35 tests failed out of 2631 Change-Id: I2c3ce7940b036e52ef393feab5837886355e7b5a Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* CMake build: Add option for disabling build of executableEike Ziller2019-05-293-96/+111
| | | | | | | | | | So the package build can later easily separate sdktool and windows debugging helpers etc. Add a extend_qtc_executable similar to extend_qtc_plugin Change-Id: Ie790e86e12b0fed41c912e8205a273ac857f3854 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Utils: Rename FileName to FilePathhjk2019-05-286-13/+13
| | | | | | | | More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* More FileName::appendPath() -> .pathAppended() changeshjk2019-05-271-5/+5
| | | | | Change-Id: Ibc7eb4eb3ffb64658e441aafa240b1ddc0061930 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove excess blank lines after namespaceOrgad Shaneh2019-05-271-1/+0
| | | | | Change-Id: I4e4f83017f2bfc2cf842c4c971ed4b05e0447e6a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CMake build/macOS: Add iostoolEike Ziller2019-05-242-4/+19
| | | | | | | Task-number: QTCREATORBUG-22475 Change-Id: Ifd9a9dc1483d223c446fd25a45e3cd1778bc94d1 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Clangbackend: Remove useless default constructorTobias Hunger2019-05-231-1/+0
| | | | | | | Not all members can be default constructed, so neither can this class. Change-Id: I6e3593bdbb9905bc4fb39aaf7cc290e30dda8300 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>