Commit Graph

52375 Commits

Author SHA1 Message Date
Marco Bubke
af73f6e572 UnitTests: Add a header to import matcher in the global scope
Change-Id: If4fad39753dc5341a82f118fcd4b8d63ea5879b7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-08-21 09:57:04 +00:00
Nikita Baryshnikov
8de69d7b5f Replace QLatin1String, QStringLiteral ("") with QString()
Change-Id: I21e6165e7e8858df8436c04c9afcc1be5242bda4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-08-21 09:27:21 +00:00
Eike Ziller
240aff88ab Fix that plugins were wrongly indirectly enabled when testing
Since the disabling of all plugins except tested onces was implemented
as an afterthought, it did not update the indirectly enabled plugins.
Instead, update the list of enabled/disabled plugins in the
optionsparser like for the -(no)load options, and trigger the update of
indirectly enabled plugins afterwards. Also take test dependencies into
account when indirectly enabling plugins directly.

Change-Id: I59d6c05de69a3073576155f7bd6201f1cd44697c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-08-21 09:17:27 +00:00
Leena Miettinen
03dce9a65f Doc: Use the umbrella term "device" for both mobile and embedded
Add a glossary entry for "device" to make changing the definition
easy and link the first occurrence of "device" in a topic to it,
where applicable.

Change-Id: Ia1b8b669b0000eea47d6a7b9860d3329d93a4395
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Tarja Sundqvist <tarja.sundqvist@qt.io>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-08-18 14:53:27 +00:00
Orgad Shaneh
e1cca00905 Bump version to 4.4.0
Change-Id: I1f282d5d30f76d9e0a3c2a32bab7de7933d349fa
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-08-18 13:40:44 +00:00
Robert Loehning
b9167a192f ProjectExplorer: Don't hide empty resource files like empty directories
Task-number: QTCREATORBUG-18748
Change-Id: I4de59743c42b99ce0b402f814b4cd0ba5d299338
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-08-18 12:28:45 +00:00
Christian Kandeler
8353d76df4 Update qbs submodule
To HEAD of 1.9 branch.

Change-Id: I3eaa6ab3f2b82c8235280752864c00d58c95507d
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-08-18 12:28:22 +00:00
Ivan Donchevskii
9c9baaac04 Clang: add unit-tests for follow symbol
Change-Id: I336fe29052237ede6f5c578daf01557400d9027c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-08-18 12:10:02 +00:00
Ivan Donchevskii
32d38789f9 Clang: implement followSymbol in TranslationUnit
Follow symbol in current TU or dependent files
Current algorithm tries to do the same as built-in
follow symbol but better.
Currently clang-based follow symbol has some limitations:
- following function usage may return the declaration
instead of definition because we don't have header
dependencies in backend
- overrides are not searched because of the same reason
and the amount of dependent files (parsing 250 files
takes a while)
- some includes are not handled correctly, in that case
we return failure and ask built-in code model to follow
(example: <QtGui> or other qt includes)

Change-Id: If35028ee0b5e818fdba29363c9520c5cca996348
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-08-18 12:09:51 +00:00
hjk
db005bf5eb ProjectExplorer: Workaround for displaying startup failures
Failures during RunControl construction currently get not to
the user as the Application output pane is not yet available.

In theory it should not happen, rather the condition should
be checked to disable running entirely, but in practice it
can happen e.g. in the BareMetal setup right now.

To avoid pre-release code restructuring, force a message box
in such cases.

Change-Id: I703c47b270d153afff34e08dad7833540a5983a2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-18 10:11:14 +00:00
hjk
98c48a4779 BareMetal: Don't crash if no GdbServerProvider is found
Change-Id: I78bca87f9e24d23f8faf26340e3dd585300efe86
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-18 10:10:31 +00:00
hjk
c6ff65fd65 Debugger: Don't wait for app output for Qml debugger port retrieval
We know the port in advance nowadays.

Change-Id: Iacd6f2c8ef04665606a77625be77744a358bb560
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-08-18 09:38:58 +00:00
Eike Ziller
94a9b4b0ea Merge "Merge remote-tracking branch 'origin/4.4'" 2017-08-18 09:23:27 +00:00
hjk
5b6c4f63b0 RemoteLinux: Remove RemoteLinuxQmlProfilerSupport::m_outputParser
It's not necessary and not used anymore.

Change-Id: Ibf5f8b691a0228b90c045154dd98ee83d4300861
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2017-08-18 09:11:42 +00:00
Nikolai Kosjar
8d847daa4b Clang: Do not add parentheses when completing "using N::function"
Task-number: QTCREATORBUG-17444
Change-Id: I7a99d35af9e6471b0d4ebe19385727247b31efb7
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-08-17 16:20:07 +00:00
Eike Ziller
a0a42ff7bd Merge remote-tracking branch 'origin/4.4'
Conflicts:
	src/plugins/debugger/gdb/gdbengine.cpp

Change-Id: I8a7c8ca07d6d6005f5d39b8f1477ebbc7a299fbf
2017-08-17 17:29:25 +02:00
Leena Miettinen
a951448c4d Doc: Add step list for adding custom debugging helpers
Change-Id: I01aba948b9dfd55a58cae5fdd51e1588bb675e6a
Task-number: QTCREATORBUG-18740
Reviewed-by: hjk <hjk@qt.io>
2017-08-17 12:43:16 +00:00
hjk
cf1edc1fb5 Debugger: Restrict scope of stored signalOperation
It's only actively alive between the attempt to stop, and being
stopped. Having it stored in 'global' member variable was a
workaround in pre-lambda times.

Change-Id: I169745afd7985ed9038edff763026c32f82f6126
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-17 10:04:34 +00:00
Christian Kandeler
a4aa79a4f8 QmlJS: Rename variable called "interface"
Easily conflicts with a macro of the same name in windows.h.

Change-Id: Ia6dfb294092497c48816e71ff901e9c3b2c8359f
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2017-08-17 09:53:39 +00:00
hjk
ef1b0f999d Debugger: Fix assert handling for devices without signalOperation()
That's not a full solution, but fixes the reported crash.

The core of the problem is that BareMetal devices do not provide
signalOperation() (which is ok) and this code path should not have
been taken to start with.

Change-Id: Ib903b8d7f0728c5b3cb217b567247e66b751c5c3
Task-number: QTCREATORBUG-18694
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-17 09:01:20 +00:00
Christian Kandeler
2f762508b0 qbs build: Clean up template replacement code for app version header
This amends 0db3e0fb0b. The code accidentally worked correctly, but was
based on a wrong assumption and was confusing and misleading.

Change-Id: I0617708a758e8d6082ed46635311bb156b22692d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-08-17 08:54:34 +00:00
Christian Kandeler
0db3e0fb0b qbs build: Fix display of copyright year in "About" dialog
The template was not properly replaced.

Change-Id: I1aa0f01fcd13475293b88ddacb357f3783642e6b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-08-17 08:31:27 +00:00
BogDan Vatra
3a16aaa639 Android: Add android-clang to suggestedMkspecList
It is needed for android-clang qt builds

Task-number: QTBUG-60455
Change-Id: Ice1c552754214fe4ec47b970da86087d03e30530
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-08-17 08:18:16 +00:00
hjk
10d505b4e4 Welcome: Scroll view on filter update
Task-number: QTCREATORBUG-18261
Change-Id: Ib7060af4cc787e4da55a860d0ae528e535fdcda7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-08-17 08:10:55 +00:00
hjk
06569e5f3a ProjectExplorer: Order projects in session alphabetically again
Task-number: QTCREATORBUG-18337
Change-Id: I716369a1012f93c6c676e89c3b32cd1a406996a5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-08-17 07:57:50 +00:00
Leena Miettinen
b0bba662f8 Doc: Replace Windows Runtime with UWP in Supported Platforms
Change-Id: I6bb19ef8dbe3188c5fc497c2f1635a656bbef651
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2017-08-17 07:47:50 +00:00
Leena Miettinen
34fb189682 Doc: Describe Location column in Clang Static Analyzer view
Change-Id: Ie97e1d7a5a70da347c2d5f7c5f5bf4a926c8b5cd
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-08-17 07:22:18 +00:00
Robert Loehning
1acc482130 QmlProfiler: Initialize and reset QmlProfilerPlugin::m_profilerTool
Change-Id: I6efa81c1c89610f50f0057fccce438176bff3120
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2017-08-16 17:33:26 +00:00
Leena Miettinen
c438eda6cd Doc: Windows Runtime renamed as UWP
To reflect the change in Qt installers since 5.9.

Change-Id: I685c32c168e95e76ae3d81b87d4d10a5092e7a8a
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-08-16 14:17:17 +00:00
Vikas Pachdha
a4d8105497 Android: Support API level 25 and 26
Task-number: QTCREATORBUG-18690
Change-Id: Ifa25d95c75e854be1b88065925dd77296720f183
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2017-08-16 11:26:15 +00:00
hjk
66f75d6e60 Debugger: Mention personaltypes.py in the docs
As entry point for custom dumper implementation.

Change-Id: Id6b996821cbd679b8b6886fcf41625fbbde49ff4
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-08-16 11:24:07 +00:00
Nikita Baryshnikov
2a62a72c69 QmlProjectNode: fix coverity warning
Change-Id: I83d2684f4adb9f969824e202da2261b37a699a68
Reviewed-by: hjk <hjk@qt.io>
2017-08-16 11:13:39 +00:00
hjk
49ffe0fb40 QmlProfiler: Disconnect some signals on shutdown
It's a workaround, not a proper solution (as indicated by the
SOFT ASSERT: "d->m_profilerState" in file qmlprofilerruncontrol.cpp,
line 144 triggering) The state manager (and possibly more)
is referenced from potentially running run controls, that are ramped
down after the plugin.

Task-number: QTCREATORBUG-18736
Change-Id: Ia20b168fe640c818276a777e1d23feab0cacd565
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2017-08-16 09:06:22 +00:00
hjk
a0c26a9279 Debugger: Adjust a comment on the used of dumpers for CDB
Change-Id: Iac11c9f9415de3c8128f271fdbefdf78877d2755
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-08-16 09:04:45 +00:00
Vikas Pachdha
cdffb378fd Android: Fix QML debugging
Specify the qml server address and use correct default loop back
address in qmlengine

Change-Id: I9b77cb3385041bbe79900e7f7a188ca26124bacc
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
v4.4.0-rc1
2017-08-15 14:40:25 +00:00
Eike Ziller
a194b107d6 More change log
Change-Id: If236df9562af18867f3dd4d2c0ec4a527751c6e1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-08-15 13:52:44 +00:00
Ulf Hermann
d571b5051e QmlProfiler: Tests for QmlProfilerDetailsRewriter
Change-Id: I26b7f71fad35d569e0fc70fe4f5eaf2796e607cf
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-15 13:46:05 +00:00
Ulf Hermann
dc912be7ea QmlProfiler: Properly prepare the file finder on every start
We want to examine the current list of projects, also if we don't have a
specific runConfiguration. Also, after repopulating the file finder, we
need to clear the cache of file mappings, as they might have changed.

Change-Id: I351789fe999009d443ca5ade9b365bfd490e0e23
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-15 13:38:31 +00:00
hjk
609b4170f3 Debugger: Show guts of QString::Data when requested
If people already decide to drill into QString they are likely
to want to be able to drill into QString::Data, too.

Change-Id: I90cf1bd9b7bed66805fc7493cf1595d27ef3b129
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-08-15 13:38:03 +00:00
Ulf Hermann
6a626595dc QmlProfiler: Rename QmlProfilerDetailsRewriter::clearRequests to clear
It also clears the lookup cache.

Change-Id: I9fdd9136084a17f427336d6ce2d37d724b9b20d2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-15 13:37:59 +00:00
Ulf Hermann
65c11e43df QmlProfiler: Add some sanity to details rewriter's PropertyVisitor
Take care of possible integer overflows and apply coding style.

Change-Id: Ib3922f30c102575ab773f7708864886fc0b53d15
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-15 13:37:51 +00:00
Nikolai Kosjar
ff21d3464d Clang: Blacklist override warnings from Q_OBJECT
Task-number: QTCREATORBUG-18621
Change-Id: I20d4fd7a93e0557334135bf7bcbd2f6517a6ede6
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-08-15 13:19:44 +00:00
Robert Loehning
e204e514d9 Tests: Fix instructions to testers
Change-Id: Ie22fca7cb68132876f867b57d7e1e5362289e0a4
Reviewed-by: hjk <hjk@qt.io>
2017-08-15 12:06:37 +00:00
hjk
90de4bae40 Debugger: Hex-encode LLDB disassembler source lines for transport
Unescaped quotes break the protocol.

Task-number: QTCREATORBUG-18721
Change-Id: I235c4dc33e599769bc854423ef4a7dc6f46bf58e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2017-08-15 08:44:27 +00:00
Eike Ziller
d8fd5292f1 Merge remote-tracking branch 'origin/4.4'
Conflicts:
	src/tools/clangbackend/ipcsource/clangiasyncjob.cpp
	src/tools/clangbackend/ipcsource/clangjobrequest.cpp
	src/tools/clangbackend/ipcsource/clangjobrequest.h

Change-Id: Ib8602530663813ade418f995dfd2a736908cfe75
2017-08-15 10:07:51 +02:00
Ivan Donchevskii
e6a50fd44a Clang: implement requestFollowSymbol plug-in side
Invoke follow symbol in clang backend
if env variable QTC_CLANG_FOLLOW_SYMBOL is 1.
Does not include backend implementation.

Change-Id: Ia20a677830ebdd7f24800af5c5d6e8b1bf579205
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-08-15 07:32:16 +00:00
Ivan Donchevskii
4ad0e5295c Clang: add follow symbol infrastructure
Add messages and jobs

Change-Id: I875280216da40ce08d972024789c060205746421
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-08-15 07:32:03 +00:00
hjk
885f8b5385 Debugger: Short-circuit part of the parameter fixup machinery
... which should not exist to start with, and interferes in some
cases where the user code knows better.

Change-Id: Ie0b0038af3a4056fad8655d06f677fc800c99f8d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-14 16:03:25 +00:00
Oliver Wolff
7ab6e345fe Support debug requests from Task Manager
If debugging was started from Task Manager Windows does
not follow the format given in the registry but always uses
"<debugger> -p <pid>".

By ignoring the -p parameter and using "debug" instead of
"wincrashevent" we can also support this use case from QtC's
debugger.

The message which is shown in this case will be adapted as
soon as this change hits master but with the current approach
the situation is greatly improved for 4.4.

Task-number: QTCREATORBUG-18194
Change-Id: I871a19f0cd68f61337d1e6c224ecc3c22a02c989
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-08-14 15:12:40 +00:00
Nikita Baryshnikov
fbbfb0cc6e SshAgent.Request: Initialize member
Change-Id: I4c40e95fedac64697ba22685e7638e78fa816db2
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-14 15:05:14 +00:00