Commit Graph

67787 Commits

Author SHA1 Message Date
Christian Kandeler
d2f478fc7b Environment: Consider Append and Prepend operations
... when converting to and from string lists. Otherwise, such changes
will be mis-stored/loaded as "Set" operations, resulting in unexpected
environment values.

Task-number: QTCREATORBUG-24105
Change-Id: I801f1e13028eef7575680a4da52e903adf07d3f8
Reviewed-by: hjk <hjk@qt.io>
2020-07-15 09:19:09 +00:00
Christian Kandeler
f8636b85a8 Environment: Fix editing variables with appended or prepended values
Only the value that was last appended or prepended was present in the
editor, instead of the full value.

Change-Id: If8ddc0943daa0dcec2ce44a4fab531921799b97a
Reviewed-by: hjk <hjk@qt.io>
2020-07-15 09:18:40 +00:00
Federico Guerinoni
cf025f550a McuSupport: Make string translatable
Change-Id: I522700d383cc79bad79ade73fe3cebcbe7b451b1
Reviewed-by: hjk <hjk@qt.io>
2020-07-15 08:43:05 +00:00
David Schulz
11ea89d936 LSP: Explicify API
Change-Id: Id208a420fd3e1e23d3279c4f1f19bdbed994a8d3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-15 08:31:30 +00:00
Christian Stenger
c4cb5d4039 PE: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I2d83026b7733d83a68c1ddcca6b409d3c3125fb5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-07-15 08:21:33 +00:00
Christian Stenger
9783761df3 QbsPM:QmakePM: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: If561553a6030f8eaedbafbc1b4531a6b63c4aa36
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-07-15 08:21:23 +00:00
Christian Kandeler
9fa1286faf CppEditor: Ensure "inline" specifier
... when creating functions in header files. Otherwise, we will likely
cause linker failures in non-trivial projects.

Fixes: QTCREATORBUG-15052
Change-Id: Ic0fff8779ba924f8b9943ab233a0cda409e73e9d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-15 08:04:43 +00:00
David Schulz
ac2c487e2e LSP: Use document contents to collect search result texts
Otherwise search results in modified files will get wrong line texts.

Change-Id: I7be4b27ebc5b250da3a3a0050de8646bcfcd010b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-15 06:56:38 +00:00
hjk
d47bd61e0c 3rdparty/syntax-highlighting: Adapt HtmlHighlighter to Qt6 codec use
Change-Id: Ifb784b02b01f4cfe89879eae7e2866b694f45581
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-15 06:20:57 +00:00
hjk
ec7e9e649b ProjectExplorer: Inline makestep.ui
A step towards aspectification.

Change-Id: I1eeb0ff3623b6cfd0b564825548309a1307846ac
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-07-14 15:23:41 +00:00
Christian Kandeler
bfd49fe5ce CppEditor: Ensure proper namespace for new getter/setter functions
If the class is in a namespace and the cpp file does not yet have any
implementations in that namespace, then we would erroneously put the
getters in the global namespace.

Fixes: QTCREATORBUG-14886
Change-Id: I836537abddfdd92ced783d60e1226b082bbc238e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-14 14:32:40 +00:00
David Schulz
8541650096 Debugger: disable load qml stack action for cdb
Since collecting the qml stack relies on calling functions it has a high
risk of getting stuck in that call at least with Qt 5.15. Never the less
I added the correct function in the cdbextension so when the action
get's re-enabled in the future we already start with an updated
extension.

Task-number: QTCREATORBUG-22209
Change-Id: I535f8db5a64ae48b4163d9b67e133cc3de338432
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-14 12:44:15 +00:00
David Schulz
cda204aa34 Cdbext: Fix fetching partial variable
Avoid calling PyValue::childCount as it expands the values in front of the
partial variable recursively. This outdates scopeEnd as it is fetched
before the items are expanded, which again results in a too early return
from that function.

Fixes: QTCREATORBUG-24108
Change-Id: I0848cde88c6ff8019a4ab22ac1153598c20e563d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-14 12:44:00 +00:00
David Schulz
2ad3a02150 QMake: highlight REPC qmake variables in pro files
Fixes: QTCREATORBUG-24346
Change-Id: I07b8533b58233f15224341d1e9544f21a4fc2047
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-14 12:43:44 +00:00
hjk
3ab1713680 More small Qt 6 porting changes
Task-number: QTCREATORBUG-24098
Change-Id: Ia7d972a35d2a99b74dc409091833b1a215a3eb64
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-14 12:12:15 +00:00
Christian Stenger
4ad5fc51ba Git: Fix compile on Linux
Amends 228f6d04af.

Change-Id: I7a839bf89798c4fa3249d0538c7ddbb36b69400c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-07-14 11:33:11 +00:00
Christian Stenger
ddc5afc4ec QmlProfiler: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I98bc7a6561c8e19da984d2efbf36d890b1f48ebf
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-07-14 11:30:54 +00:00
David Schulz
ca0f504c0e LSP: workaround msvc 2017 bug
Change-Id: I6a6fbfc1a582d83df3f3cf489236c7ca4c6626f7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-14 10:48:31 +00:00
Christian Stenger
c2f51b7797 VCS: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I7c3d8c72ab71b3aa12f0273c45dac9a843024218
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-07-14 09:09:59 +00:00
Christian Stenger
228f6d04af Git: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I77a2e9959981b2e173142253baf1668d57982a2e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-07-14 09:09:42 +00:00
hjk
b9d6a04121 3rdparty/syntax-highlighting
Include QVector headers instead of forward-declaration to make it
usable with Qt 6.

Change-Id: Ic81f4ebd75005452c9b0ec1aa87cfd8b02516d14
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-14 09:09:30 +00:00
Christian Stenger
f7d941d056 Nim: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: Ie86464f17f8e62dbeeb4c40403039f60a90cde87
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
2020-07-14 09:09:24 +00:00
Leander Schulten
d51a419458 CppTools: Use indenter from TextDocument or create one
So if you use the ClangFormat Plugin, the ClangFormatIndenter is used
and not the CppQtStyleIndenter.

Change-Id: I7e71867cd4b48525ddc2f9b2dce8f13a65c3ad88
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-14 09:03:17 +00:00
Orgad Shaneh
b4d5ab2fb5 README: Bump LLVM version in build instructions
Change-Id: I3321d422f109f8f9c96adef2f944415ce2ec9569
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-14 08:15:25 +00:00
Eike Ziller
eac46f7f24 Bump version to 4.13 beta2
Change-Id: I836987b4c4e28c65cb67c2efba595ed92d071b6a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-14 07:54:02 +00:00
Christian Kandeler
69c8221885 GCC Parser: Recognize lines with "cc1plus"
Change-Id: I73a548b58c96fe944a80e36ee72ea9d3965ca6dc
Reviewed-by: hjk <hjk@qt.io>
2020-07-14 07:47:51 +00:00
Eike Ziller
6ac8bf2f0a Algorithm: Do not derive from std::iterator
MSVC throws warnings that this is deprecated.

Change-Id: I010c54a923f395a04a4c84cfcd01848a42752e2e
Reviewed-by: hjk <hjk@qt.io>
2020-07-14 07:07:56 +00:00
hjk
a066bfd170 ModelEditor: Add include that's not implicit in Qt6 anymore
Task-number: QTCREATORBUG-24098
Change-Id: I6bbe18129e3486728fefbb98e7009beaebead670
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-14 06:44:56 +00:00
hjk
5937fa009f CppEditor: Avoid a use of QCharRef to make it compile with Qt6
Task-number: QTCREATORBUG-24098
Change-Id: If857b6e473f7df7303621695ffc0a66ad777bd7c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-07-14 05:56:45 +00:00
hjk
6b7c823ce9 Qmake build: Add core5compat globally for Qt6 builds
We use QTextCodec all over the place, so a finer-grained solution
doesn't buy us much.

Task-number: QTCREATORBUG-24098
Change-Id: I31c73781fe04db597f7d690bf72829f268333e24
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-13 12:53:53 +00:00
Volodymyr Zibarov
81c95fcb95 C++: improve cplusplus-update-frontend to not write non-changed files
Change-Id: I28fd8306ded2ee775b9d7c953e05cd2ad61c8093
Reviewed-by: Volodymyr Zibarov <gogan419@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-07-13 12:50:23 +00:00
Christian Stenger
b9c5d63c27 Help:iOS: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: Ie63ac88e3afdc39db0d9ead4b058efbaec402001
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-13 12:45:11 +00:00
Christian Stenger
5e8e1a36ec Debugger: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I3c72ff8ab37c71441227668aea780dea19219c71
Reviewed-by: hjk <hjk@qt.io>
2020-07-13 12:09:28 +00:00
Christian Stenger
7598018a7f CppEditor:CppTools: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: Id1804a31162d0239659de33c1700354494c11689
Reviewed-by: hjk <hjk@qt.io>
2020-07-13 12:09:15 +00:00
Christian Stenger
feb873ca34 CppCheck: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I7b9198f3762f5fa753b5be0e1c0a81abc7f94560
Reviewed-by: hjk <hjk@qt.io>
2020-07-13 12:09:04 +00:00
Christian Stenger
8b26bde438 CMakePM: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I295e2a9a92880b58b3f6103fe68824c379ab47a4
Reviewed-by: hjk <hjk@qt.io>
2020-07-13 12:08:52 +00:00
Eike Ziller
f4af71a3dd iOS Device: Show some more information in device options
Show iOS device name, identifier, OS version and cpu architecture.

Task-number: QTCREATORBUG-23016
Change-Id: I5fff2986a173800dabc585f17830cc242e436457
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-13 12:00:25 +00:00
Eike Ziller
72bf4cd15f iOS: Fix slow debugger startup on devices
We need to pass the path to the device symbols, that Xcode downloaded
for the device's OS version, as the sysroot to the debugger. Otherwise
debugger startup is very slow.

We already tried to do that, but it looks like, depending on the
devices, this path can contain an architecture specific part, e.g.
"iOS DeviceSupport/13.5.1 (17F80) arm64e" instead of just "iOS
DeviceSupport/13.5.1 (17F80)". It can still be just the latter, so we
get the devices architecture information, try the architecture specific
directory first, and fall back to the architecture agnostic name as
before if the former doesn't exist.

Fixes: QTCREATORBUG-21682
Change-Id: I2efdbfda0282f1cf0f8d10bd4e5217a298027fcf
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-13 11:55:33 +00:00
Christian Kandeler
bc517e6d92 GccParser: Recognize "required from" as a continuation marker
Change-Id: Iaea98cbccc6aa95e7eeaab23a2ef85a3eaa4b2e0
Reviewed-by: hjk <hjk@qt.io>
2020-07-13 11:54:29 +00:00
Christian Kandeler
56de884159 unittest: Fix build
Amends 2915ee0832.

Change-Id: Iea6c76d33046e9c671a9bfb71ad752b1f2501ec4
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-13 11:23:50 +00:00
hjk
c2dec324aa Some Qt6 compilation
Change-Id: Icbc9ed41e75799d2d0e16ef16379fec05f80b62e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-13 10:52:47 +00:00
hjk
8b5a1ad92a TextEditor: Remove a compilation error with Qt6
Using forward-declared classes in signals is no longer possible.

Task-number: QTCREATORBUG-24098
Change-Id: Ib95e33741fd8e18fa2a1200f4b79690f08ea2d1a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-13 10:40:45 +00:00
Eike Ziller
d3583256ba Changelog: It is Catch2 with a 2
Change-Id: I74b1c29fb0b0e1f865dedde2b3af0fb606ecbad2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-13 09:51:01 +00:00
Eike Ziller
92cd8e6005 Android: Use re-usable "copy and ask for overwrite" callable
Change-Id: I73779b5eaeebbd44fa6333f067adf220ddd77be4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-07-13 08:22:04 +00:00
Eike Ziller
7496136992 Utils/copyRecursively: Avoid copying of copy helper instance
The function took a const reference to a std::function. When passing
some other callable object, this leads to a copy, which is bad if the
callable is supposed to carry along state.

Change-Id: Iedc22644fb0f314b15de0eaaa7c0b2e73dd30f38
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-07-13 08:20:40 +00:00
Federico Guerinoni
5e486c601f Fix TODO with qAsConst
Change-Id: I457a51ad5c6069fc8b27e3074296189f1a8087c9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-13 08:15:07 +00:00
Christian Stenger
df49d6e40d AutoTest: Persist check state to project settings
Make it easier to switch between projects and restore
the former check states of the found test items if
we have these information.

Change-Id: I99a5357388c36aa8cce6f5f82184d6ab2a8bf6e8
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-13 06:26:12 +00:00
hjk
c3ab20ef9c Qmake: Drop use of QTextCodec in pro parser
This follows 42d2d70ab in qtbase.

Change-Id: I519a20421ce452984fa21ec0f988379bed9368d0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-11 07:14:31 +00:00
Aleksei German
8c97f870b9 QmlDesigner: Add Singleton support to Connections
Change-Id: I07eae4e381f172d7c6a23ee5b7e13273afa788b9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-07-10 17:14:53 +00:00
Thomas Hartmann
c0d4127d70 QmlDesigner: Add remove group action
Task-number: QDS-2228
Change-Id: I4174a51b3de1c7ea82b69b85bef19e62a878aa28
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-07-10 16:30:02 +00:00