Commit Graph

61529 Commits

Author SHA1 Message Date
Orgad Shaneh
caf426fddb Clang: Delete ipcserverinterface.cpp
It's empty.

Change-Id: I5c6d6ec45fee028be4d6e2fa5424e954fdacdb9d
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2019-06-17 12:54:23 +00:00
Orgad Shaneh
9a85cc2fac Sqlite: Delete empty sources
Change-Id: Iae592bc22e4781148ec1be7a3ca5746719817f1e
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2019-06-17 12:53:48 +00:00
hjk
ce40c84a38 Fix projectupdater unit test
Amends 35fa8aa802.

Change-Id: Ic791959c4bce66bf9b8b1b43e60c86268c33a029
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2019-06-17 12:44:42 +00:00
Marco Bubke
300feced20 ClangRefactoring: Activate updating for indexing
Change-Id: I6fb818edfab8ef7d9cfab0520276acedf0597fd3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-17 10:50:00 +00:00
Marco Bubke
ee27ae2ef7 ClangRefactoring: Improve indexing
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>
2019-06-17 10:49:49 +00:00
Marco Bubke
b36e9d0e95 ClangPchManager: Improve handling of no include in project PCH
We were doing simply nothing but we should call
PchCreator::doInMainThreadAfterFinished().

Change-Id: Ia21d2cf4af53121d9e401f6e9a5b432a4daed00f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-17 10:46:31 +00:00
Marco Bubke
b213dee013 Clang: Improve updating
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>
2019-06-17 10:46:21 +00:00
Marco Bubke
912cb9278f ClangRefactoring: Ensure that database is written to log after indexing
Change-Id: Ic2473d9fe8dc9b41a7da728c9e1b5202524c1a79
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-17 10:46:12 +00:00
Leena Miettinen
60ea77f3eb Doc: Describe preserving issues from previous builds
Task-number: QTCREATORBUG-22478
Change-Id: I84ba5379c5524c879298d0ccca4ab6912304697b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-17 10:34:23 +00:00
Leena Miettinen
c4e4583fad Doc: Describe filtering in output panes
Task-number: QTCREATORBUG-16356
Change-Id: I995ddbe8ae06c38935f699ed0f1cb73418b6f401
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-17 10:34:00 +00:00
Christian Kandeler
22736921de QmakeProjectManager: Abort project parsing early if no Qt is present
Parsing would not succeed anyway, and the pro parser can run into
assertions, e.g. in IoUtils::fileType().

Change-Id: I7fff466d858a2d3c9fd975246a20c92134963705
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-17 10:15:28 +00:00
hjk
e3aa5a0658 Valgrind: Use more Utils::CommandLine
Change-Id: I044869c1b3cc061b2ad61de82832fb42cdcf4fd8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-17 08:44:02 +00:00
Leena Miettinen
c23e319628 Doc: Describe new language client settings and features
Change-Id: I9d3e9e094b6256f202e6b7fea559d06f94c9d5be
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-17 08:04:14 +00:00
Leena Miettinen
47d40aa4ad Doc: Move "Changing Languages" and "Viewing Images" to "User Interface"
...from "Viewing Output" where the landed when the topic was chopped up.

Change-Id: Ic5a0900f3cb6243a32ebc415c4956fcdb71bc3f6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-17 08:03:48 +00:00
Leena Miettinen
4ffa0e9ef9 Doc: Update info about using Help
Change-Id: I23085fbaa9af3ecc20e45a2bbaafd6ce602abc4a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-17 08:02:03 +00:00
hjk
12b6242f43 Todo: Spread use of Utils::FilePath a bit
Change-Id: I0c6caacad76740dfc23e7a0be40ead776e1d5253
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-17 07:59:17 +00:00
hjk
b508eac2a5 ProjectExplorer: Make MsvcToolChain::m_headerPathsMutex a member
Ensures construction in all constructor lines.

Change-Id: I2c0ec3eadfb4b4da67c5915f9d50be277c0a32c6
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-17 07:58:06 +00:00
Tim Henning
7f970cebb3 Tracing: Add tooltip to category labels in analyzer timelines
This is especially useful for longer names that often get elided in the
Perf Profiler and the new Chrome Trace Format Visualizer.

It uses a dummy button to show the same tooltip style as the buttons
while not having to import QtQuick.Controls.Private.

Change-Id: I5580a9ecc1acb69b0faec00a2f35952df0e1ce92
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-06-17 07:51:20 +00:00
Eike Ziller
e8705deb1c Fix display of keyboard shortcuts
Was using wrong foreground color for the "no collision" case.
Fix-up of 963dc84cc5

Fixes: QTCREATORBUG-22333
Change-Id: I5b4934b69bd9ff2002846ffda700673b6e1cab24
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2019-06-17 07:45:12 +00:00
Eike Ziller
622117a6ce More changelog 4.10
Change-Id: Iba32d4802366ba40f26adcc32ee8264d00014ec1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-06-17 07:43:38 +00:00
BogDan Vatra
8728057f15 Cleanup QBS plugin
Remove comments & debug messages.

Change-Id: Idcc03867e188de6fe258758b3d2cce22f1a1b732
Reviewed-by: hjk <hjk@qt.io>
2019-06-17 06:56:33 +00:00
BogDan Vatra
30e863b676 Fix crash when project node is not found
Change-Id: I235fecb579023530692742f14474ae5229237c28
Fixes: QTCREATORBUG-22564
Reviewed-by: hjk <hjk@qt.io>
2019-06-17 06:56:23 +00:00
Tobias Hunger
61e087fe8a ProjectExplorer: Enable location in subproject context menus
Enable location support in subproject context menu and update
the display of the location menu.

Change-Id: Iac09fb3d7ed3474b14f827ea6e8226b2c2ce9325
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-14 14:49:06 +00:00
hjk
62d41f1d93 ProjectExplorer: Simplify MsvcToolChain::setTargetAbi
Change-Id: Id2b7467505b8744fb0d798dc1d52aaed98585c2b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-14 14:22:42 +00:00
Christian Kandeler
e00536eeea ProjectExplorer: Fix "Open Terminal With Run Env" for remote targets
Amends 6fa474ead8.
Note that the semantics of this operation are a bit dubious, because it
is supposed to open the terminal at the location of the file
corresponding to the project node, which does not make sense for remote
targets. So for those, we use the run configuration's working directory
instead.

Change-Id: Ie60b54e441daab51e8d51fdfba1d4a71e6a33604
Reviewed-by: hjk <hjk@qt.io>
2019-06-14 14:07:47 +00:00
Tobias Hunger
e3690ad7ac ProjectTree: Fix crash when project has no rootProjectNode
Fix a crash that is triggered by a project returning to a state
where it has no rootProjectNode. This can happen when parsing fails
and Creator should fall back to displaying the project name and
its main project file as it does before any parsing had been done.

Unfortunately the hasNode function returned false in this case, so
the project model was never updated and the removed project nodes
stuck around, triggering a crash.

Change-Id: I7616e576773dc52fb6fdff39b9f0a7c7729eac71
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-06-14 14:01:31 +00:00
hjk
bf83926372 ProjectExplorer: Add a central ToolChainFactory::createToolChain(type)
This is meant to be the only function directly creating tool chain
objects in the long run (and also the only one setting ids, removing
the need to spell them out in the individual constructors).

Change-Id: Idef242612a5a3f7012628b4080a03d6ee70e5ba0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-14 13:44:05 +00:00
hjk
67b33a0662 ProjectExplorer: Introduce a new BaseSelectionAspect
To handle an (exclusive) choice within a set of possible options,
visualized by a set of QRadioButtons.

Use in QdbMakeDefaultAppStep.

Change-Id: Icc62a45e8c5986cd9400f90449f92154ed854a22
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-14 13:34:38 +00:00
hjk
77e8e1707c RemoteLinux: Move deployservice ownership to AbstractRemoteLinuxDeployStep
Change-Id: I12cfa0d2cdb171d381e6fde6b0e71fc0c098d746
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-14 13:00:25 +00:00
Thomas Hartmann
55eb0587ef QmlDesigner: reset state editor model when error occurs
Task-number: QDS-695
Change-Id: I1e2e454c31eb92e865ccec9f7d68c5142488ddf9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-14 12:31:02 +00:00
Thomas Hartmann
31c9171a65 QmlDesigner: Add new node hints
Change-Id: I327b9bd714072077bc12085573e63ee2f4b994a8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-14 12:30:43 +00:00
Christian Kandeler
acfe45c434 SSH: Fix running remote process in terminal
ConsoleProcess stumbles over the special characters in the remote
command and as a result silently runs the command locally instead.
Prevent that. We can (and should) simply leave these characters alone,
as they have no special meaning on the local machine.

Change-Id: I31b3afe1cf170e51d431372b15f4df3656006959
Reviewed-by: hjk <hjk@qt.io>
2019-06-14 12:18:48 +00:00
Christian Kandeler
cd8ebb21e3 QmakeProjectManager: Make sure OBJECTIVE_HEADERS appear in project tree
We do not introduce another category, but list them under "Headers", as
we do with PRECOMPILED_HEADER entries.

Fixes: QTCREATORBUG-17569
Change-Id: Ie0e6efdd09715daf2802b126a4ecbdc20b25d008
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-14 11:18:31 +00:00
hjk
7ceb26defc Project: Remove two MsvcToolChain constructors
Change-Id: I9ac3ef25e549bbfff9cb894524622a9401ad09e8
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-14 10:59:06 +00:00
Cristian Adam
84659016e7 CMake build: Build fix for "Enable macro editing for the Clang indexer"
Change-Id: I69396e306d1b8646fa4388681a8705937bf9423f
Reviewed-by: hjk <hjk@qt.io>
2019-06-14 10:46:23 +00:00
hjk
b412bd09a2 Android: Remove the CToolChainList type alias
The pattern to alias const types is not used elsewhere in creator
and apparently to difficult for me. It's the second time I wondered
why a const value can be bound to a "non const" CToolChainList &.

Change-Id: I0d179dcaed01a1eafde4390f3fc55bf77417adc8
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2019-06-14 10:44:39 +00:00
hjk
3c92742605 Android: Rename ANDROID_TOOLCHAIN_ID to ANDROID_TOOLCHAIN_TYPEID
That's what it is, and it's the only odd one out currently.

Change-Id: If098e2691b9f88fbd5f516cf869e390f43b9ddfa
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2019-06-14 09:42:09 +00:00
Tobias Hunger
6796a5edcd Extract heuristics to detect framework paths from CppRawProjectPart
Move the code into a separate function of CppRawProjectPart so that
it can be used by the project managers to do the framework detection
magic as well.

Change-Id: I80b9fdadb25005c7e089cb45429c91dd8549eecc
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-06-14 09:29:19 +00:00
Sergey Levin
30575d2c76 QMakeStep: Add extra parser arguments
It is useful when developing toolchain plugin to have separate agruments
for pro-file parser only.
Certain arguments may be added to qmake implicitly, without Qt Creator
control, and we would like to tell them to the parser in order to get
proper code assistance.
This function is used in 3rd party plugin Sailfish OS.

Change-Id: Ie1ce19d5773bb2c0c87b1d58cf00dca57f1108d5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-14 07:37:26 +00:00
Giuseppe D'Angelo
885cd63e8f Port from QLatin1Literal to QLatin1String
QLatin1Literal is an undocumented and deprecated typedef
for QLatin1String, just use the original.

Change-Id: I42347a2128e7b4280aaafeea5ebdee5a1b623c82
Reviewed-by: hjk <hjk@qt.io>
2019-06-13 23:07:35 +00:00
Thomas Hartmann
db7aa20d12 QmlDesigner: Use instance value for none translated text
Task-number: QDS-715
Change-Id: I176af10925eddeeb7419316538fa3ae0efcb61a6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-13 18:04:51 +00:00
Marco Bubke
72050643fb ClangPchManager: Add reindex button in settings
After you have changed some settings you maybe want to reindex.

Change-Id: I415f1597e6566fe45e5e25bccd359493921278c3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-13 16:51:57 +00:00
Marco Bubke
4bae5de36b Enable macro editing for the Clang indexer
Refactor much of the code from Environment* classes to NameValue* classes
to share it with the preprocessor macro settings.

Change-Id: Ica4ee817aa338230c422b30d91240d266248d226
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-13 16:51:48 +00:00
hjk
f636f06b45 Debugger: Remove GdbServerPortsGatherer::setDevice
Apparently not used anymore.

Change-Id: Ic9ee826edd383254dcb77ea435843904a53d10a8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-13 14:49:36 +00:00
Cristian Adam
f2ce80e0c6 CMake build: Copy fonts and syntax-highlighting files to builddir
Fixes: QTCREATORBUG-22472
Change-Id: Ib812690c70efdc0ad7b125f6ce9623ca500d698d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-06-13 14:25:50 +00:00
hjk
8ec882a6e6 Boot2Qt: Merge QdbDeviceWizard file triple into device files
Change-Id: I22abfb0355667000278f8a4e2cd6f8d0f0834a94
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-13 14:23:56 +00:00
Christian Kandeler
467154e54a ProjectExplorer: Let ArgumentsAspect use a multi-line edit
... for cases in which lots of arguments should be provided.

Fixes: QTCREATORBUG-17890
Change-Id: I4744cd58c957e36d9a91e9de994f24589b02c1cc
Reviewed-by: hjk <hjk@qt.io>
2019-06-13 14:09:39 +00:00
hjk
91ba57399c Boot2Qt: Simplify QdbUtils
Change-Id: Ief211d00812284828197f34bc2aaf4a72bdffda4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-13 14:05:50 +00:00
Tobias Hunger
65658f411b CMake: Unify error reporting for builddirmanager's information retrieval
Use a dedicated errrorMessage out parameter for error reporting in
the builddirmanager methods related to information retrieval. Those are
called after the parsing has finished.

This frees the errrorOccured signal of the builddirmanager to be used only
when the parsing itself has failed.

Change-Id: Ieefc32c0386769479177a6bd4bc4a0e77df5db7b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-06-13 12:36:44 +00:00
Tobias Hunger
68bcaeff64 CMake: Fix warnings in servermode reader
Change-Id: I22dd49911154fdb4f813a2ee69195d9183cb11b6
Reviewed-by: hjk <hjk@qt.io>
2019-06-13 12:34:59 +00:00