Commit Graph

57165 Commits

Author SHA1 Message Date
Robert Loehning
7cc5376f0d Squish: Fix handling of server issues in tst_codepasting
Change-Id: I35d8dbeb11be104a1af2956125a29c4606c7e050
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-30 13:04:31 +00:00
Christian Kandeler
11ffd3d702 QbsProjectManager: Add run config checkbox for using debug frameworks
As it already exists in the qmake project manager.

Task-number: QTCREATORBUG-20411
Change-Id: I8673e091b3f5772fdc1ddcac0e567f690960f1dd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2018-07-30 10:02:49 +00:00
Alessandro Portale
ec02dac36f ProjectExplorer: Silence unused parameter warning
In ClangClToolChainFactory::autoDetect

Change-Id: I26c3afeba1a3e4b5693954aabbff57e17e9177fa
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-07-30 08:10:13 +00:00
Alessandro Portale
3fa22f19a6 Aggregation: Modernize
modernize-use-nullptr

Change-Id: I8775e7f4bdfed143a59c791d86f4b1acf11bcc73
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-07-29 21:09:47 +00:00
Alessandro Portale
11632bbedd QbsProjectManager: Modernize
modernize-use-auto
modernize-use-nullptr
modernize-use-override

Change-Id: I8a67b87e614f54554f9ca50c9f5e3f3297458ec1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-07-27 12:35:12 +00:00
Christian Stenger
3f97874ca1 Squish: Fix tests after revert
The patch that removed Qt4 completely from the widget app wizard
has been reverted.
Adjusting the tests now.

Change-Id: I0af1eb2102caa22022658d1189794c7757c7628f
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2018-07-27 08:40:08 +00:00
Ivan Donchevskii
da4be3fdb7 Clang: Use new libclang code completion fix-its feature
Each completion coming from libclang now has it's own
list of fix-its which are required to be applied before
completion itself.

This saves one extra reparse cycle and gives an ability
to provide both kinds of completion (initial and corrected
one) for cases like shared_ptr, unique_ptr or any other
class with overloaded arrow operator.

Each of these extra fix-its is applied together with
corresponding completion dircetly before completion itself.

Change-Id: Ide37e45bb15fa2f1375cd6b86ecd43ced3593046
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-07-27 07:34:44 +00:00
Alessandro Portale
ee0f386aad IconLister: Adapt to the timeline -> tracing renaming
Change-Id: Ia75d5cfab37dec68c3be68ea55f7cec5def0264f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-07-26 16:30:56 +00:00
Alessandro Portale
cc03bad229 IconLister: Adapt to the "new" Kit Options icon location
Change-Id: If543359adb51d84bb1333128383208bef3d2287d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-07-26 16:30:47 +00:00
Robert Loehning
210a873efb Squish: Forward qbs' warnings about deprecated features
Change-Id: Ib99713b95d010acf4b49065ad7e20862e59476d1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-26 13:05:06 +00:00
hjk
5787ecb025 Revert "Wizards: Drop support for Qt4 for widgets application"
This reverts commit 1a6522b47c
which leaves people wondering about their kit setups.

Creating a project that possibly does not compile due to the
use of C++11's nullptr in the generated code is lesser evil.

Apart from that this potential mis-compilation does not
happen in practice on e.g. Ubuntu 18.04 with system Qt 4
and system compiler.

Change-Id: Iaa90f225d5317dc48428aa2d3fcf3ec051ef2018
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-26 11:18:06 +00:00
Andre Hartmann
8e8598f2a3 Coding Style: Update null pointer description to C++11
Task-number: QTCREATORBUG-20852
Change-Id: I150b8e815e137fee333b71d3b05c3a4d2a0038ba
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-26 10:11:03 +00:00
Vikas Pachdha
4ec806f225 Android: Remove unused variable
Change-Id: I0c69b62a51ad98373c485dbfcac835b8d4b05e18
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-07-26 09:37:52 +00:00
Orgad Shaneh
594ee54e42 Utils: Add namespace qualification to signals arguments
Fixes the following warning, and connections to these signals:

 QObject::connect: Cannot queue arguments of type 'FileName'

This amends commit 7cee991c70.

Change-Id: I95e81fd9c328759daec29bf35c4b953983387d30
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-26 09:35:42 +00:00
Tobias Hunger
cc25aa4caf Environment: Do not leave stray ':' in LD_LIBRARY_PATH
A empty path segment in LD_LIBRARY_PATH is *not* ignored and treated
as '.' IIRC.

So make sure to not leave a ':' in first place of LD_LIBRARY_PATH or set
an empty LD_LIBRARY_PATH on Linux.

Change-Id: I99ec2e333c6c0205334daf14ac6a2373c6e465ad
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-26 09:30:51 +00:00
hjk
e88e47ff68 Android: Use less direct access to the qmake build step
Instead of qobject_cast use the reacently introduced virtual function
BuildConfiguration::regenerateBuildFiles() to trigger the necessary
work in the qmake case.

Change-Id: Ie5fd36550b5bad8c5f3f8bb1e2a3a16843f8f5b7
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-07-26 08:57:47 +00:00
hjk
d41e690c84 Debugger: Add a way to add perspective windows one-by-one
More convenient in some circumstances.

Change-Id: I413be4bebe9f5a2bbdfa9617ada6242d867eb1a0
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-26 08:44:50 +00:00
Alessandro Portale
be5c228e5b Android: Modernize
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-equals-default
modernize-use-transparent-functors

Change-Id: I6c9e567edf16cf436c0e0c1239b40f74574a1096
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-07-26 08:26:21 +00:00
hjk
02a759d4f5 Debugger: Make Perspective persistence more robust
Always save on exit, but do not expect a valid perspective name
on restart. The settings could get corrupted in the mean time etc.

Change-Id: Ic0181607f46c3350a4193240d795d4c0d7c6815b
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-26 08:07:39 +00:00
hjk
7f6c48e017 Debugger: Do not start the mixed engine on Attach to QML Server
Task-number: QTCREATORBUG-20168
Change-Id: I6af3bf7f0f9ed2316d1382383a7889f55a16dea1
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-07-26 07:07:43 +00:00
David Schulz
99e3635ef3 Debugger: remove redundant info whether to use cpp debugging
Task-number: QTCREATORBUG-20168
Change-Id: I2a0bfba6aea39da443032fd9ab02869cdc508696
Reviewed-by: hjk <hjk@qt.io>
2018-07-26 06:40:33 +00:00
Ulf Hermann
59175ac423 Merge "Merge remote-tracking branch 'origin/4.7'" 2018-07-25 13:36:52 +00:00
Alessandro Portale
859d847769 QmlDesigner: Modernize
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-default-member-init
modernize-use-equals-default

Change-Id: Ic42b5c59fed5a4a01853138542d8156471e86f58
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-07-25 12:53:26 +00:00
Alessandro Portale
0558db7b54 Debugger: Modernize
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-default-member-init
modernize-use-equals-default

Change-Id: I91a6874f0d7b94e9079ab4ef07c23c60c80be9c0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-07-25 12:52:43 +00:00
Ulf Hermann
5b8989d017 Merge remote-tracking branch 'origin/4.7'
Conflicts:
	qbs/modules/qtc/qtc.qbs
	qtcreator.pri
	src/plugins/debugger/qml/qmlengine.cpp

Change-Id: I31edd50b2301f4d9b64e1c7980c4ed371e00c2dc
2018-07-25 14:19:14 +02:00
Tobias Hunger
babf038ce8 ResourceEditor: Remove stale qrceditor/test
The code there does not build anymore, so remove it.

Change-Id: Iff3f6c334e9a72e1764e3431b93cfd5b8a4ae98c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2018-07-25 10:31:01 +00:00
Tobias Hunger
f685e2bfb4 KitManager: Use unique_ptr to manage kits
Change-Id: I8c66290f0d23afe37673bd858f7db135c8232a78
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-25 10:30:27 +00:00
Robert Loehning
df2b2f1a17 Squish: Skip searching for missing output
Task-number: QTCREATORBUG-20813
Change-Id: I31446da4e850a3da1710a87f62ee6c5b59826c53
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-25 09:29:03 +00:00
Robert Loehning
6bf5e71c43 Update German translation
Change-Id: I681c854023a6ccb338751844afda8b37aff36318
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-25 08:55:48 +00:00
David Schulz
8fb73bb278 ProjectExplorer: fix msvc toolchain detection for Windows SDK 7.x
Cancel processing the environment diff only if the setenv scripts return
a non zero exit code. Just checking the presence of standard error
output seems to be a to aggressive error checking in this case.

Task-number: QTCREATORBUG-18328
Change-Id: I9243932cd5721cfbfec5a980a2fab6e69f4c31c7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-25 08:47:58 +00:00
Robert Loehning
0471ea1f94 ClangTools: Use proper argument for toolName
Change-Id: I9f258e97b5ef1bfd06909d2f12b644c145501a54
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-07-25 08:08:48 +00:00
Orgad Shaneh
993f893a9c UnitTest: Add missing highlighting enums display
Change-Id: Id35c328cf98896a39c9c6c0e641b1046720d78ad
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-07-25 07:57:30 +00:00
Orgad Shaneh
d1b77f2c79 Clang: Suppress "unreferenced formal parameter" warnings on MSVC
They are triggered a lot in Clang headers.

Change-Id: I31f31a4f52e269d773cf1b41ad52f279ee368c2e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-07-25 07:57:15 +00:00
hjk
33e5c3672d Debugger: Make perspective saving more flexible
This essentially replaces saveCurrentPerspective by some
savePerspectiveHelper(m_currentPerspectiveId)

This is in preparation of the change introducing multiple running
engines, and per-engine perspectives.

Change-Id: Ibdbdac019bb5d47936ba4ab5de08711f2c16ea99
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-25 07:35:59 +00:00
hjk
27cd7162e1 Debugger: Make LLDB instruction-wise stepping work with 3.8.1
Judging from the code it either never worked, or LLDB changed
syntax at some time. In either case, having it in a usable
state with current version is an improvement.

Change-Id: I88b15969bf28b92735d860544dedcbd1d9689765
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-24 12:45:01 +00:00
Alessandro Portale
f6943a712a Utils: Modernize further
Many issues, mostly in headers, were not addressed in
e38410b76c

modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-default-member-init
modernize-use-equals-default

Change-Id: I320a51726db881e582b898948d53735ebb06887a
Reviewed-by: hjk <hjk@qt.io>
2018-07-24 12:21:42 +00:00
hjk
00c926b6b4 Debugger: Remove unused DebuggerEngine::isSynchronous
Change-Id: Ia1eb3a65fabbf966a1766d68456144fd9e093ae8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-24 12:10:20 +00:00
hjk
0a0e56fe3b Debugger: Compile fix
Change-Id: I1b7c4de471d79ec4ea712cbfdb61fe6f5c43a743
Reviewed-by: hjk <hjk@qt.io>
2018-07-24 11:31:16 +00:00
hjk
c1ea6f518c Debugger: Return created tool button from Perspective::addAction
It will be needed later to show/hide the buttons depending on
engine-specific abilities or other circumstances.

Change-Id: I029012e01929e5e96e2af87da2cf3580a8d82b3f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-24 11:20:45 +00:00
Orgad Shaneh
edc4ba10d5 GDB: Fix display of disassembly with optimizations
/m flag is deprecated since 7.11. Use /s instead.

See https://sourceware.org/gdb/onlinedocs/gdb/Machine-Code.html

Change-Id: Ie056bcf598da30976fca1622bc98eeb79a73f8e1
Reviewed-by: hjk <hjk@qt.io>
2018-07-24 10:39:06 +00:00
Ulf Hermann
522ba30897 V4 Debugger: Use changebreakpoint command if available
Newer versions of QML will support proper changing of break points, we
won't need to work around it anymore.

Task-number: QTCREATORBUG-20795
Change-Id: Idb5aaeb8ea59c7d2fd7c924e336ea259d3573d3d
Reviewed-by: hjk <hjk@qt.io>
2018-07-24 10:38:47 +00:00
hjk
c23980c72a BaseTreeView: Robustify
Check for selection and model before accessing them.

Change-Id: If8e8e43f00c5812bce7a21639c3d3bee459117f3
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-24 09:40:18 +00:00
Tobias Hunger
48450e6a4d Qmake: Run make qmake_all in the directory that qmake ran in
Call make qmake_all in the same directory that qmake was run in.

This fixes long build times when doing builds of individual targets.
Qmake is run in a child folder there, but make qmake_all used to be
run in the top-level source directory instead.

Task-number: QTCREATORBUG-20823
Change-Id: I42e77738b0a92469efb97720cabea26484fb4852
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-24 09:07:46 +00:00
Tobias Hunger
61e93455aa ProjectExplorer: Use unique_ptr in KitManager
Use unique_ptr to manage m_writer in KitManagerPrivate.

Change-Id: Icc58728feb57a88a229d6da8b2d29bac53c2f6cc
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-24 09:05:19 +00:00
Tobias Hunger
80c2ce118d ProjectExplorer: Modernize even more
Use unique_ptr for all *Private classes, except for those
in singletons.

Change-Id: Ib56c31ddedc6e9cf321f15de1f1e697a27ad4089
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-24 09:04:54 +00:00
David Schulz
48850dfa4d Debugger: add callback for interrupt inferior
This allows to run any command without knowing the current state of the
debugger engine. Replacing the old special stop mode for any command
that may be triggered while the engine is running, with a check in
runCommand. If the engine is running while a command is triggered a
callback is added to the interrupt that will execute the command as soon
as the engine is accessible again.

Change-Id: I8bb1914b92da2b03e76c2c2ec8293d13041c72fd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-23 13:17:47 +00:00
David Schulz
da739959ea Move PathChooserDelegate to Utils
Change-Id: I94b3c0b60477145f0f084719fc1cf5f3f4a98534
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-23 13:05:35 +00:00
Robert Loehning
f4f2ecc7c5 QmlProfiler: Fix placeholder
Change-Id: Ibb6d4abed9e7b7da1d3ccceaa04970d72769195a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-23 12:03:38 +00:00
Christian Stenger
9ecb0c75a1 Debugger: Fix warnings for MSVC
This patch amends ef952d6caa.

Change-Id: If8809cf2985a4528eeff31263be4240b7e63a8b7
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-07-23 11:46:05 +00:00
Christian Stenger
0532c2fb3a Utils: Fix compile for older Xcode
Amends e38410b76c.

Change-Id: I57dd8a3dfa584ec2f2f8836700bfd31af95c3a4f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-07-23 11:45:33 +00:00