Commit Graph

78427 Commits

Author SHA1 Message Date
Christian Kandeler
bd2ca236e1 CPlusPlus: Check maximum include depth in lexer
We use a value of 200, which is also GCC's default.

Fixes: QTCREATORBUG-28770
Change-Id: Id02b324cd2ffa81a709441a5d93856bcd06501c3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 12:53:31 +00:00
Christian Stenger
06b579a75b McuSupport: Fix handling of FilePath
..when expanding variables and macros.
Fixes the plugin unit test on Windows.

Fixes: QTCREATORBUG-28744
Change-Id: I8a047854d6d43e901b01b10660e29b7d6544d0b7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-08 12:21:40 +00:00
Leena Miettinen
ac252c2d49 Doc: Make the locator more visible in the other parts of the docs
Change-Id: Icdefa64f5874f14c6a9c6a24e4d73837c12b457f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-08 12:12:26 +00:00
hjk
85bed557f3 Utils: Use more FilePath in TerminalCommand
Change-Id: Ide9a09f61f3b2c10378d90a4a907e1e37d7407df
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-08 11:59:09 +00:00
Fabian Kosmale
49561eaeb8 qtquickapplication wizard: Adapt to CMake API change
During API review, it was decided (and implemented) that REQUIRES is the
better/more descriptive keyword than MIN_VERSION.

Change Creator's wizard accordingly.

Change-Id: I831cdc956204b1e379c3815104698d3f881abf6c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-08 11:58:22 +00:00
Alessandro Portale
997655e669 ClangFormat: Fix build
Change-Id: I6197429ddd0aa10631d1ecbecd25154045a7004f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-08 11:33:17 +00:00
hjk
239f79fbec CMake: Use FilePath functionality to extract qml module files
Shorter and remote-capable.

Change-Id: If6b3a419eb78da2c2763bc45f4d1e33be7dbed17
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-08 11:22:57 +00:00
Alessandro Portale
389b9503d7 ClangFormat: Tr::tr()
Change-Id: Iabbe39bfdd3ae24d65610a00d792e16591a1b6ee
Reviewed-by: hjk <hjk@qt.io>
2023-02-08 11:09:12 +00:00
Alessandro Portale
48affa1889 Translations: Remove header includes of *tr.h in .h files
The wrong Tr::tr could be executed by code indirectly including a *tr.h
file from another module.
To Translate in a header file, use QCoreApplication::tr().

Change-Id: I30e67245991d2c2f0eeb01ab356555bdb9841af0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 11:08:48 +00:00
Ulf Hermann
ccbee9bf42 qmldir parser: Handle internal types with versions
There is no reason why internal types cannot have versions.

Fixes: QTCREATORBUG-28755
Change-Id: I419f2e052634b603dfc5b2bfff155167cf6f9304
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-08 09:50:00 +00:00
hjk
37488c69b8 Utils: Remove 4.8 compatibility code for reading terminal settings
4.8 was released end of 2018 and the setting is not critical.

Change-Id: I02856e98303debd3a1adc28d49b28c5d728ad553
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-08 09:25:59 +00:00
hjk
0bd52ea275 ADS: Fix SPDX-License-Identifier in advanceddockingsystemtr.h
Align with the rest.

Change-Id: I48ac1cae738b909d90fd123128c1959f3635278e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-08 08:58:38 +00:00
Alessandro Portale
4d8a18c07d ProjectExplorer: Fix build
Change-Id: I0f74162cf52173b26e06082ace4b55e68e18ea49
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-08 08:43:30 +00:00
David Schulz
c651a1e290 ClangTools: remove arrow from analyze current file button
This is now in line with the other menu buttons in the editor toolbar
like the language client button or the python interpreter and repl
buttons.

Change-Id: If22d3e9c87274eee2fefe8e30f6b0648be5d60c9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-08 08:40:35 +00:00
Alessandro Portale
9db70d8810 Translations: Fix stray QApplication::translate() calls
For references to the module-own context, use Tr::tr().
For references to other modules, use the right context name (with "::"
prefix).

Change-Id: I6dce8f1ceccb23c44d93f1826402cd3be8e98e5a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-08 08:32:42 +00:00
Alessandro Portale
2356f28647 Translations: Add missing "::" prefixes to QT_TRANSLATE_NOOP
Change-Id: I7589a2d4003394e38e58c095b510f8eff33263b8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-08 08:32:31 +00:00
hjk
8a8b50e8b5 ProjectExplorer: Proliferate Utils::FilePath use
Move the .toString() uses into  DeploymentData::addFilesFromDeploymentFile

Change-Id: Ic9ef22da1918ca105c92f0231960dab27b0d80bb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-08 08:21:29 +00:00
hjk
432d918329 TextEditor: Use FilePath in Command
Change-Id: I0916204eefb49713f241dd43da662f258f8c99f7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-08 07:34:30 +00:00
Eike Ziller
012a2a6cd8 Fix build on Windows / MSVC 2019
Change-Id: I265cd316426c76c76bfe18a62a9e5f35fbca3da9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 07:28:59 +00:00
Orgad Shaneh
f94b41313b Utils: Fix MSVC size_t -> int warning
Change-Id: I2732f7b9ad3c7ae96d2d213822f05f37dfcac0aa
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 06:46:30 +00:00
Alessandro Portale
3a87b45831 Fossil: Tr::Tr()
Change-Id: Ifdfe75dc916b6d87cae985bbe5682f1e72541864
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 16:21:19 +00:00
Alessandro Portale
521a23df6e Fossil: Inline revertdialog.ui
Change-Id: I2585c705fce03e3278ec344b0078b50144485d22
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 16:21:13 +00:00
Alessandro Portale
d14c561cf6 Fossil: Inline pullorpushdialog.ui
Change-Id: Idd279a2ed2cc2b14e573aae588a309ae808b008f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-07 16:21:07 +00:00
hjk
89880907f2 Debugger: Simplify paramenter setup on Windows
Change-Id: Iec44dd33287ac23d2b51ef32483eae831d2ce4bd
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-07 14:07:52 +00:00
hjk
cbf2b23787 QmlDesigner: Remove unused global static
Building CXX object src/plugins/qmlde...dir/components/componentcore/designericons.cpp.o
/data/dev/creator-out/src/plugins/qmldesigner/components/componentcore/designericons.cpp:84:21: warning: ‘const QStringList& {anonymous}::iconFontMandatoryKeys()’ defined but not used [-Wunused-function]
   84 | const QStringList & iconFontMandatoryKeys()
      |                     ^~~~~~~~~~~~~~~~~~~~~

Change-Id: I978d6a52cf4030fe07352d6ee89c2db3d0433c05
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-07 14:01:42 +00:00
Christian Stenger
d2656c60e6 AutoTest: Widen scope for run under cursor
..and debug under cursor for QtTest and GTest.

Depending on the information coming from the code model
we may be able to get a correct scope even when standing
inside the function that is defining the test.
This makes more sense than the original behavior which
made it a hard requirement to stand on a literal to
run or debug a test under cursor.
But as the codemodel does not provide usable information
for all frameworks keep the original behavior as fallback.

Task-number: QTCREATORBUG-28752
Change-Id: I13ea7b0ad1e8207da6cb884d212667c4c657957c
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-07 13:56:07 +00:00
Christian Stenger
9277bb5111 AutoTest: Extract function to get active frameworks
For later re-use.

Change-Id: I87cf6db4de861b626e4669351df3f5119952328f
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-07 13:56:01 +00:00
Marcus Tillmanns
96185ca4f1 Utils: Use QtcProcess in FilePath::fileContents
Change-Id: Ia7236632c6d9b887d054a3254762b7e3592e73e1
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 13:55:31 +00:00
Christian Kandeler
8096b9f524 Update qbs submodule to HEAD of 2.0 branch
Change-Id: If53431a0cf8bf412a28e606b0712e0acb26e07f5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-07 13:48:59 +00:00
Marcus Tillmanns
78cf3eb671 Docker: Check writeData
Previously only the process mode was checked to decide
whether we need an interactive docker session when starting
a process.

Change-Id: Ia80c78d861107239d0c86c405e06f30e7770ff8e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-07 13:06:56 +00:00
Jarek Kobus
84ba73be8c RunExtenstions: Remove StackSizeInBytes
It's currently not used.

Change-Id: I223a2e8add92a107b85518bcaf44bbd8a5e3fb9a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-07 12:56:43 +00:00
David Schulz
fbcf0fb3bf ClangCodeModel: Fix initial processor state
It is expected that the processor that is created by the provider is not
running.

Fixes: QTCREATORBUG-28769
Change-Id: Icef270c5f9255b97aa04fc3d0ea0cf872787bd24
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-07 12:54:47 +00:00
Marcus Tillmanns
96ebe93ecb Debugger: Rebuild AttachCoreDialog
The old dialog was based on local vs. remote file paths.
These days we can simply treat them the same.

If the selected files are not on the same device as the
debuggger they will be copied first.

Change-Id: If5ec93d1e1e49c51b3032fec8384682d2a5e35b4
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 12:31:40 +00:00
Christian Stenger
1e92039dc1 Utils: Fix build of sdktool
Amends d829d9ff33.

Change-Id: Ib2c7543f04444b30c389346eb910861957e19b8d
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 11:26:44 +00:00
Marcus Tillmanns
e780ca991c Docker: Use rootPath() for Shell
Change-Id: Ie2578b768d8fcb91c55a33b4eb62e43c127ccee2
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 11:16:02 +00:00
Marcus Tillmanns
9d6b3b4cb4 Utils: Remove status= when using dd
Some versions of dd don't support the status= option.
(e.g. the dd version in boot2qt)

Change-Id: I22aa6571b223b7707e962bd2df9abdd11b438d69
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 11:15:49 +00:00
Alessandro Portale
5342fa5757 Fossil: Register wizards path only once
Change-Id: I5b3d6bfb035dc364d4ec8c379b8b3214541c2ff8
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 10:29:02 +00:00
hjk
a459a70ed3 Haskell: Convert to SPDX-style copyright headers
Change-Id: I9b31b209a4c43617d2a7a02880b10a573e3d8540
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-07 10:20:14 +00:00
Eike Ziller
541aafecbb QML: Fix crash when opening context menu
The AssistInterface changed to unique_ptr, but the internals of how the
QmlJSEditor looked for quick fixes still wrapped it into a
QSharedPointer, which then deleted the assist interface in addition to
the unique_ptr.

Amends 0e4b0a26d3

Fixes: QTCREATORBUG-28742
Change-Id: If685dbb2c49b09d529d0dcb3677dc90b03a039f0
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-07 10:12:25 +00:00
Leena Miettinen
8512aba9eb Doc: Add a short overview of what debuggers do
Change-Id: I07062ea6e046ce51a9d3091e9d86071415706e6c
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 09:54:10 +00:00
David Schulz
2293488536 ClangCodeModel: prevent accessing nullptr
There is a certain amount of time between resetting the processor to
nullptr in ClangdFollowSymbol::VirtualFunctionAssistProcessor::cancel
and the destruction of the ClangdFollowSymbol sentinel. So we also need
to check the processor before calling update.

Task-number: QTCREATORBUG-28769
Change-Id: Idec7c9dd7648285ecf2360c309d9751303f6209c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-07 09:44:01 +00:00
Marcus Tillmanns
516fce6f53 Utils: Add FilePath::tmpDir and createTempFile
Change-Id: I6f3143e59a87edffeee5e08708ba721293a8a369
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 09:28:38 +00:00
Alessandro Portale
02777c4179 Fossil: Inline configuredialog.ui
Change-Id: I74e7372ef4839788f4cf9bf0595c9f0a41c0a604
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 08:59:01 +00:00
Marcus Tillmanns
0c1b59fb1a Utils: Use isSameDevice in copyFile
Change-Id: I36389a88c4474d46ef4fdb9369cf9f4219f6099d
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 08:17:16 +00:00
Marcus Tillmanns
144dff8d74 Gdb: Use path() of executable
Change-Id: I872da3995344b6337b5d72925768034b58f9b339
Reviewed-by: hjk <hjk@qt.io>
2023-02-07 08:17:08 +00:00
Leena Miettinen
447f8b80c3 Doc: Remove double words and fix a typo
For example, "and and", "the the", "or or"...

Change-Id: Ie5795efb857e674c5a584e97a60bcb9b2ba869d2
Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
2023-02-07 07:23:13 +00:00
hjk
f1c302af0c Fossil: Inline fossilcommitpanel.ui
Change-Id: I9be4ed8cd598bc6c9b1bdef00b8eb28d2f0ac0dd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-07 07:20:56 +00:00
Alessandro Portale
c4f6887b1d GlslEditor: Tr::tr()
Change-Id: I261cad5b85535d42a9b96d1a0ade53dbc7addf86
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-06 22:45:18 +00:00
Alessandro Portale
b919171375 EmacsKeys: Tr::tr()
Change-Id: I52ccb149237e01595a515c6bb380490276e343b7
Reviewed-by: hjk <hjk@qt.io>
2023-02-06 22:45:05 +00:00
Alessandro Portale
c392ccc019 Translations: Remove empty "<location/>" tags
Change-Id: If77caf015970efde7ec8b884c4d4b95ef0eca0dc
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-06 22:44:43 +00:00