Commit Graph

57466 Commits

Author SHA1 Message Date
Christian Stenger
aa99f98356 Valgrind: Fix compile with older Qt
Further amendment of 2c212d48a5.

Change-Id: I73eb8479d94512e0b824e2ca2284fe4da59d07ae
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-12-03 14:40:47 +00:00
Christian Stenger
0ee1c97ab7 CppTools: Fix compile with older Qt / gcc
Change-Id: I00656b409135ee1a84a0a372f726fdbc7c20d1e6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-12-03 14:30:29 +00:00
Christian Kandeler
1fc2b12ffc SSH: Fix autotest
The SshX11InfoRetriever object must not be allocated on the stack, and
the failure signal was potentially emitted too early for the test to
catch it.

Change-Id: Iac53546deee183c8f02bafdcc11a7910f3e392c0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-12-03 13:47:26 +00:00
Orgad Shaneh
2e0771f1d6 Valgrind: Fix compilation with older Qt versions
Amends commit 2c212d48a5.

Change-Id: I256c5e8ac38624c333ef344a9274a2b30266e06a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-12-03 13:29:57 +00:00
Nikolai Kosjar
0c38e3aea7 Clang: Clean up CompilerOptionsBuilder
No behavior change.

* Remove virtual from methods that are not overridden
* Move constant member functions that do no access any members into
  source file as static functions
* Remove QLatin1String where possible
* Make variable names a bit more consistent
* Other minor stuff

Change-Id: I34a582d5a468489e11365507b283e9aee157664f
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-12-03 12:58:31 +00:00
Marco Bubke
ce9f503691 ClangPchManager: Add UsedMacroFilter
The compiler macros are filtered in system and project macros. Not used
ones are removed. The original order of the macros is retained.

Task-number: QTCREATORBUG-21548
Change-Id: Ic9265866bde033e6a9600f9e6439b1697ab73422
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-12-03 12:51:25 +00:00
David Schulz
696dedefa1 LSP: add support for hierarchical document symbols
The result of the document symbol request was a flat list of symbols
until version 3.10.0 of the Protocol. The new result type also added
whether a symbol is deprecated and what text should get selected
when a symbol is activated in the IDE UI.

Change-Id: Id30366c44198434c240f3a21b8b237bf6819a425
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-12-03 11:50:13 +00:00
David Schulz
d7e249a5e1 LSP: add convenient log function for a response error
Change-Id: I50c6667af572e7e8133da587c75d3e55a0f2cac4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-12-03 11:15:04 +00:00
Orgad Shaneh
7c56b2c310 Callgrind: Support opening last results in KCachegrind
Change-Id: Idb3b08ca6a1837f2456b73bcaf19aced5b83179f
Reviewed-by: hjk <hjk@qt.io>
2018-12-03 09:46:14 +00:00
Orgad Shaneh
2c212d48a5 Valgrind: Strip QLatin1*
Change-Id: If93ca890ab6d023ab786a5153f50a1dfa03764de
Reviewed-by: hjk <hjk@qt.io>
2018-12-03 09:45:47 +00:00
Orgad Shaneh
7096649fc2 Merge remote-tracking branch 'origin/4.8'
Change-Id: I5b18233936e3b2cd674df92a694ba73b5a3ed752
2018-12-03 09:56:07 +02:00
Christian Stenger
c9a48ad5b1 SilverSearcher: Fix building with namespaced Qt
Change-Id: I7e6b98577fdff183b8d550a568d147f0f9653190
Reviewed-by: hjk <hjk@qt.io>
2018-12-03 07:41:14 +00:00
Orgad Shaneh
5e8ec97d69 Do not build QmlDesigner tests when the plugin is disabled
Change-Id: Iaf7e06be6b81040c36726aa76923b285e2402aef
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-12-03 07:40:08 +00:00
Przemyslaw Gorszkowski
0d43ce1373 SilverSearcherPlugin: add possibility to set additional search options
Change-Id: Ia6dd11e4c7b68dba16e42fd80d1ac9878fafc220
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-12-02 18:56:34 +00:00
Alessandro Portale
d0756657f4 ScxmlEditor: Use ICore::dialogParent() as dialog parent
Change-Id: I0f8f0cb29b4fca1ecaf400ddc0b79e0616b27c79
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-12-02 14:27:46 +00:00
Alessandro Portale
d1df55d128 QmlProfiler: Modernize
modernize-*

Change-Id: Ibdf9c0ae91bf8a622facc7f323112b550f532f15
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-12-02 14:27:29 +00:00
Tobias Hunger
f0226d9644 Qmake: Use target-specific extension for deployment
Add file extensions to execatables about to be deployed based on the
OS found in the toolchain's targetAbi instead of using the hostOs().

This should fix deployment from windows to non-windows machines.

Task-number: QTCREATORBUG-21608
Change-Id: I83678bda1d56ff24848b7b498b95081d00b5a5f0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
(cherry picked from commit 383f0b9fcc)
2018-12-02 09:37:54 +00:00
Tobias Hunger
383f0b9fcc Qmake: Use target-specific extension for deployment
Add file extensions to execatables about to be deployed based on the
OS found in the toolchain's targetAbi instead of using the hostOs().

This should fix deployment from windows to non-windows machines.

Task-number: QTCREATORBUG-21608
Change-Id: I83678bda1d56ff24848b7b498b95081d00b5a5f0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2018-12-02 09:34:58 +00:00
Aaron Barany
bba377f675 Fix build on Linux (GCC 8.2)
#include <cmath> in syntaxhighlighter.cpp to have access to math functions.
Use std:: namespace for math functions due to including the C++ header
wrapper.

Change-Id: I978cb4c54e29be38d4973f5a9cd1cede1bb49483
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-12-01 17:49:23 +00:00
Alessandro Portale
2e2059e8b5 TextEditor: Modernize
modernize-*

Change-Id: Ic497fea1942a77cf017be3b0033f92e3807066f1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
2018-11-30 17:35:18 +00:00
Alessandro Portale
a9fa1fe5b1 QtSupport: Modernize
modernize-*

Change-Id: Id52c06ff440a35d9a4169306c5636f54bfc2125a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-11-30 16:51:39 +00:00
Alessandro Portale
0bff017616 QmlProjectManager: Modernize
modernize-*

Change-Id: Ic47c32c3fbf96d36f0d64e331eccc8c8e8aef6d2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-11-30 16:51:15 +00:00
Alessandro Portale
45db65e09c PythonEditor: Modernize
modernize-*

Change-Id: I3d8a79b59822f9d13f90730b770121dbf582da84
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-11-30 16:50:50 +00:00
hjk
185f8985c6 Debugger: Fix unexpected state transitions with GDB
... for temporary stops.

The transition is not unexpected, we just failed to communicate the
expectation.

Change-Id: I30cdcffdcc3672e759023cd0c07de4bea11c2e32
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-30 13:51:47 +00:00
Tim Jenssen
35f5bcd432 be able to build without qbs
Change-Id: Ieaa836a5ec813d1d5b5439f2bfdce2ee4b15dcf7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-30 13:50:05 +00:00
Ivan Donchevskii
850ac7d805 Clang: Properly generate macros with clang-cl
Clang-cl can work with different command line styles but
it seems that it's a bad idea to mix them. So let's use gcc
toolchain methods only when --driver-mode=g++ is specified
and ones from msvc toolchain in other cases.

Change-Id: I071a124a07b31bce2a0a5594ff8ca79d9ed84716
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-30 12:53:35 +00:00
Ivan Donchevskii
bb00d3fb0e Clang: Fix clang-cl environment
The environment depends on vcvars script and with
current way of clang-cl initialization we need to
call it again when vcvars are updated.

Change-Id: I5ccf34861b711c2514203408db62e2a134592721
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-30 12:53:15 +00:00
Christian Stenger
445b7a6242 Squish: Mark test as expected fail
Task-number: QTCREATORBUG-21335
Change-Id: I54148ecf746362a22bf739ef80930a40bb6da2fe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2018-11-30 11:19:02 +00:00
Ulf Hermann
137d02678e QML Debugger: Guard against some invalid data
If the debug service announced unreasonably large numbers of objects and
contexts, we would fill an unreasonable amount of memory with junk here.

Change-Id: I461d378f35c7b87ee0be1b5a09aed3d27a133343
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-30 09:09:55 +00:00
hjk
3d92a79a09 Debugger: Work around scrambled dock widget layouts
In some so far unknown situation the saveLayout/restoreLayout process leads
to a situation where some docks does not end up below the perspective toolbar
even though they were there initially, leading to an awkward dock layout.

Try to detect the situation (no other dock directly below the toolbar)
and correct that by restoring the default layout.

Task-number: QTCREATORBUG-21455
Change-Id: Ie5eaf2717a750823d96b103f9fd7ac194ba3914c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-11-30 08:26:26 +00:00
Orgad Shaneh
d1a4e10fba Core: Use correct parent for fileDeletedPrompt
Fixes: QTCREATORBUG-21607
Change-Id: Ibf1ba7440cd1cbcd746b1be60a6058b86692ca2b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-29 15:38:51 +00:00
Nikolai Kosjar
ce8b2edc8e CrashHandler: Add syntax highlighting for stack traces
For example, highlight the function name of the stack trace item. This
helps to find one's way through all the output.

Change-Id: Ie2b989fa466b438fb16e07e8c11661bd3dc83280
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-11-29 15:18:43 +00:00
Leena Miettinen
9225d5079f Doc: Add a workaround for changing the default editor
You can move a filename pattern from one MIME type to
another to open the file in another editor by default.
This might be useful when working on file types that are
not registered MIME types and that clash with the
registered ones.

Change-Id: Ic68f7db7bd58fab48a2aa6edbffc123f13c63899
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2018-11-29 15:13:13 +00:00
Orgad Shaneh
f5203796e4 Git: Use ICore::dialogParent as dialog parent
Change-Id: Idc3f2f4d27d3279f76b688fac635e8d38b2705f5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-29 14:56:43 +00:00
Christian Stenger
d3c1086910 Squish: Fix WELP tests
Adapt to new titles of some tutorials.

Change-Id: I18d62d88877b59a51ebfdb19f5fe16ac8d828800
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-11-29 14:45:10 +00:00
Christian Stenger
c5d1ec5144 Android: Fix debugging using old devices
Uploading a binary file had been remade using base64
encoding, but base64 tool is not available on older
devices.
Fallback to the old approach of relying on the
symlinked lib folder that contains a gdbserver if
the upload failed.

Task-number: QTCREATORBUG-21317
Task-number: QTCREATORBUG-21547
Change-Id: I54539d8912b1722bb799068c33e7a9175699ff70
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-29 14:40:33 +00:00
Eike Ziller
8d19b306ed Android: Detect clang and gdb from older NDK
Get some minimal compatibility with the older NDK that is used for
Qt < 5.12 back.
This detects clang-3.6 and gdb from NDK 10e.
For building, the android-g++ mkspec continues to be used for Qt < 5.12
(it uses Qt's default mkspec, regardless of toolchain in the kit,
because the toolchain reports to support both).

Task-number: QTCREATORBUG-21595
Change-Id: I3487c38093f43ccae2418fb28807a50fbda101a8
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-11-29 14:28:59 +00:00
Nikolai Kosjar
12dce3ef7d Clang: Work around eating memory with gcc/clang/-fno-rtti/boost
Boost recognizes a misconfigured compiler in rtti emulation mode
(-fno-rtti) as our libclang command line is special. Even worse, it does
not seem to stop instantiating templates and allocating memory
afterwards.

For the former to fix, we need to rework our command line (in master).

The latter can be work arounded by defining
BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING with a value for gcc/clang.
See also
https://www.boost.org/doc/libs/1_64_0/doc/html/BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING.html

Task-number: QTCREATORBUG-19543
Change-Id: Iddb5be2d1f1966018e5ab535a8f7475fe7911284
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-11-29 12:51:29 +00:00
Eike Ziller
a47fdf33a2 Version for master is 4.9.0-beta1
Change-Id: I2c3ca4910147445c4493828df5c6252f30379dc9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-29 12:37:55 +00:00
Eike Ziller
a74d53424c Merge "Merge remote-tracking branch 'origin/4.8'" 2018-11-29 12:36:57 +00:00
Eike Ziller
29c9f8080d Merge remote-tracking branch 'origin/4.8'
Conflicts:
	src/plugins/android/androidrunnerworker.cpp

Change-Id: Ibd8b99435365fb7e7d488313fd1d2b3a75adad1b
2018-11-29 13:36:14 +01:00
Alessandro Portale
7bdc858d77 QmlDesigner: Improve resize handle size
The visual representation of the resize handlers was 1 pixel too small
compared to the bounding rects. They were also not centered on the 2px
thick line.

And they simply looked too tiny compared to resize handlers in other
applications.

Change-Id: Idc48d66178cd5f0158efe2f66d685afc4549022e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-11-29 11:54:10 +00:00
Allan Sandfeld Jensen
51bc18e6d5 Fix lvalue references and rvalue reference incorrectly matching
Adds the comparison of isRvalueReference to make sure they get
difference entries.

Change-Id: I294205786f3d1322e542d3b308d61ab44647ecc9
Fixes: QTCREATORBUG-13839
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-29 11:34:25 +00:00
Nikolai Kosjar
9fe8c46d15 C++: Use file size limit also for included files
We can't stop the clangbackend from processing huge files, but at least
our built-in parser.

Fixes: QTCREATORBUG-21590
Change-Id: I506024495ba0632692f2845c6c204360f4c61b33
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-11-29 11:03:53 +00:00
Robert Loehning
82a1dc2d66 Cppcheck: Use plural like in other strings
Change-Id: I41031253c1c30e867bd4506a1de82c3400eb0b8e
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-11-29 11:01:29 +00:00
Eike Ziller
dd9993a05d Add more changes for 4.8
Up to ab4f6ad9ce

Change-Id: I29916628792469746f5cc84f92a3b51df776e627
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2018-11-29 10:44:30 +00:00
Ivan Donchevskii
9eb66a806f Clang: Properly set up warnings for clang-based libraries
Add warning flags to QMAKE_CXXFLAGS_WARN_ON to have them
after default warnings.

Change-Id: Ic94fe36175d3198191251d5b475f8f8ed000bef7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-11-29 09:27:33 +00:00
Alessandro Portale
ba4c434211 Qnx: Modernize
modernize-*

Change-Id: I8aae8e3edac885f23b191333d8b0d803c846af43
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-11-28 17:48:53 +00:00
Alessandro Portale
f52f25e150 RemoteLinux: Modernize
modernize-*

Change-Id: Ifdf0e781c63941625ca032a8e1752082f4abc3ce
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-11-28 17:47:02 +00:00
Christian Kandeler
ab4f6ad9ce QbsProjectManager: Fix race condition on target switch
(cherry picked from commit 77c729bb8a)
Fixes: QTCREATORBUG-21544
Change-Id: I2a29e17ad1fd37049db16634f16e8c6916cb1093
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-28 13:25:23 +00:00