Commit Graph

64160 Commits

Author SHA1 Message Date
Leena Miettinen
45b96d12e5 Doc: Describe writing docs for independent plugins
Plugins that reside in their own repositories need their
own documentation.

Change-Id: I97ff5b2b6788c6dd90364117e842dcdfd63085b5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-28 07:42:04 +00:00
hjk
cdfc62b287 FakeVim: Modernize a bit
Some ranged-for and const.

Change-Id: I6ff521393166aa4c61289de88e8c31320887b1b4
Reviewed-by: Lukas Holecek <hluk@email.cz>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-28 07:28:37 +00:00
Christian Stenger
839e776012 PE: JsonWizard: Improve handling of check boxes
Only handle active user clicks as 'modified' to be able
to react on (un)setting values by expressions that depend
on other fields.
Improves the check box handling on the "Add C++ Class" and
"Add Python Class" wizards as it re-evaluates the check box
state based on an expression as long the user does not
actively checks the respective check box.

Change-Id: I739c02b85196555c0379272005ca3b0095f7c762
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-05-28 05:03:59 +00:00
Leena Miettinen
d4a1f1ae90 Doc: Describe exporting assets from Adobe Illustrator
There are some tricks the users need to know.

Fixes: QDS-1745
Change-Id: Ie6ea417335ed47b7960636fccc5946f8f5e6024a
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 15:22:48 +00:00
Leena Miettinen
4430d40e29 Doc: Remove info about default folder to save custom fonts
For Qt Design Studio.

Fixes: QDS-1440
Change-Id: I9d8cff81c5762715f123743b2795b3df53da1daa
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 14:46:47 +00:00
Volodymyr Zibarov
fcf364d61a C++ Tools: apply clang-format on cplusplus-keywordgen.cpp
There is no history for this file after it was moved, so there's no harm
of beautifying it to be able to read and change.

Change-Id: Iec2ad5bc9d8553589b2d2512f69991f772808d89
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-27 14:36:09 +00:00
Christian Kandeler
078ca0cdff ClangTools: Work around clazy-standalone behavior fluctuation
Some versions expect an argument after the -supported-checks-json
option, and some don't. They are not easily identifiable, so we try both
versions of the command line.

Change-Id: I5b265e4ddd4a21c238228dafc60cbc09194f23cc
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-27 13:26:03 +00:00
Christian Kandeler
6c4b8b10b7 CppEditor: Add quickfix for creating a forward declaration
In header files, a forward declaration is often preferable to including
another header file, so let's offer this as a quickfix.

Fixes: QTCREATORBUG-23444
Change-Id: Ib50550abb5337098e4122e65e2af42a66742d6f6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-27 13:25:19 +00:00
Christian Stenger
7c92db106d QmlJSEditor: Clear old values when updating outline
Fixes: QTCREATORBUG-21335
Change-Id: I46b1ad52f62edf7865a44ade298ff2233ca4554a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-05-27 12:18:02 +00:00
Leena Miettinen
a8c70ecfef Doc: Link to Fossil Plugin Manual from the version control topic
Change-Id: I58e550aa71571e2b91213edb86d5cdb5403761b2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-27 12:12:09 +00:00
Volodymyr Zibarov
7754fdddd1 CMake Build: fix preprocessor config path for C++ tools
This fixes cplusplus-ast2png runtime error

Change-Id: Ifbfce44ab0c281e7b8169d132c68b4f28805da85
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-27 08:58:50 +00:00
Eike Ziller
83843fbd06 Remove some useless IContext subclasses
They are only created at single places anyhow, so use the setters of
IContext instead

Change-Id: I00a089c9f1ea151c76cb6443e2a24c4a05437bbb
Reviewed-by: hjk <hjk@qt.io>
2020-05-27 08:42:37 +00:00
Eike Ziller
e5bb7d1ffe Remove unnecessary removeContextObject calls
They are removed on deletion now.

Change-Id: I08461ea4938e24ab450df013a0f8f820032381da
Reviewed-by: hjk <hjk@qt.io>
2020-05-27 08:42:00 +00:00
Christian Kandeler
7b5481f75c clang-tidy: Override "WarningsAsErrors" from config file
If WarningsAsErrors is enabled in the config file, any issues that are
found will make Qt Creator believe that clang-tidy has failed. So we
never want this in our analyzing.

Fixes: QTCREATORBUG-23423
Change-Id: I38f15588a9a02e25e0cf2f56c176c95639b97432
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-27 07:54:22 +00:00
hjk
de58fc104a Utils: Document PathChooser::Kind
Change-Id: I0d984c9cae98b59abfb62a3fd6932d63783e9015
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-27 07:50:26 +00:00
Denis Shienkov
f197b8f64c BareMetal: Auto-detect IAR toolchain for National Semiconductor CR16 architecture
This patch implements auto-detection for the CR16C toolchain,
provided by IAR Systems:

 * https://www.iar.com/iar-embedded-workbench/#!?architecture=CR16C

Change-Id: Idc0d91f2de7bcce463baea0874538662c5af413d
Reviewed-by: hjk <hjk@qt.io>
2020-05-27 07:28:37 +00:00
Denis Shienkov
2ab5e6260c ProjectExplorer: Add support for new CR16 architecture
This commit adds new ProjectExplorer::Abi::CR16Architecture
entry for the National Semiconductor CR16 architecture:

 * https://en.wikipedia.org/wiki/CompactRISC

Change-Id: I886422e3745cbaec177236c3a2bd90950633a925
Reviewed-by: hjk <hjk@qt.io>
2020-05-27 07:28:24 +00:00
Denis Shienkov
b57ca3bcfa BareMetal: Auto-detect IAR toolchain for Renesas R32C architecture
This patch implements auto-detection for the R32C toolchain,
provided by IAR Systems:

 * https://www.iar.com/iar-embedded-workbench/#!?architecture=R32C

Change-Id: I22b6f2afdc902f659c9adda18550cc915cf48125
Reviewed-by: hjk <hjk@qt.io>
2020-05-27 07:28:12 +00:00
Denis Shienkov
d03bbab58e ProjectExplorer: Add support for new R32C architecture
This commit adds new ProjectExplorer::Abi::R32CArchitecture
entry for the Renesas R32C architecture:

 * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html

Change-Id: I869dd07783355b01522ca9eb87b73a8e55bf3746
Reviewed-by: hjk <hjk@qt.io>
2020-05-27 07:28:01 +00:00
Denis Shienkov
4dfc650fac BareMetal: Auto-detect IAR toolchain for Renesas M16C architecture
This patch implements auto-detection for the M16C/R8C toolchain,
provided by IAR Systems:

 * https://www.iar.com/iar-embedded-workbench/#!?architecture=M16C%2FR8C

Change-Id: Iaa724c110f074183e60f659812717dbad2f635d0
Reviewed-by: hjk <hjk@qt.io>
2020-05-27 07:27:49 +00:00
Denis Shienkov
b7ec0fbf08 ProjectExplorer: Add support for new M16C architecture
This commit adds new ProjectExplorer::Abi::M16CArchitecture
entry for the Renesas M16C architecture:

 * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html

Change-Id: Id476cfefbfd971b31cb307d51b6980a29684191d
Reviewed-by: hjk <hjk@qt.io>
2020-05-27 07:27:39 +00:00
hjk
91bf307084 Utils: Fix one qdoc warning
(qdoc) warning: '\brief' statement does not end with a full stop.

Change-Id: I20545770bae226191c24ab1d4555198b543e805c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-05-27 07:09:28 +00:00
Eike Ziller
6d97c1fcb1 Unregister deleted IContext objects automatically
Change-Id: I7b84c02c8fe1e7201431116e3d993792370fb942
Reviewed-by: hjk <hjk@qt.io>
2020-05-27 06:54:54 +00:00
Orgad Shaneh
fcbbcc7465 Merge remote-tracking branch 'origin/4.12'
Change-Id: If8f433d1084763c1aea4a3454ae163750495c569
2020-05-27 09:13:18 +03:00
Tim Jenssen
d5bfa21dfc remove variant.hpp error
So this can be used with a Qt 5.15 build
outside of QtCreator.

Change-Id: I691687bf661be21d9c28f13a52ff5df58bb7412a
Reviewed-by: hjk <hjk@qt.io>
2020-05-27 06:12:44 +00:00
Christian Kandeler
e4fb3de165 C++: Add tests for recent indentation fixes
Change-Id: I90ae2da3a82bff2e966c4327cf8e42f7ebbddd27
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-05-27 04:45:12 +00:00
Leena Miettinen
197ccb9bda Doc: Resize front page images to remove scrollbar
Change-Id: I8555bd5f7952530a02d57be436fc27c8a04de0be
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-26 14:06:52 +00:00
hjk
ad379227a9 Android: Don't use --server argument to lldb-server
We are not re-using the server process currently, and servers surviving
their processes seems to lead to zombie server processes (on app
uninstall(?))

Change-Id: I996fcd490e98a5101840cbbab5f640abf1f2d90b
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
2020-05-26 13:12:23 +00:00
Christian Kandeler
301a388982 CMake: Split build output into lines before parsing
This amends commit b15d1951a2, where we moved the line splitting into
the output parsers, but overlooked that the CMakeBuildStep does
additional line-based parsing. As a result, the stdout -> stderr
redirection for ninja output was broken.

Change-Id: Iafbbce9a3f9c0383812a9e4c129c1d94fa907b73
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-26 13:11:01 +00:00
Christian Kandeler
9c3d4dcc88 qbs build: Make the pkg-config dependency in unittest.qbs non-required
We don't want an error if pkg-config is not installed.

Change-Id: I142abe3d21649a9010b91707532eb733e2103583
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-26 13:10:22 +00:00
Christian Kandeler
a03113832b qbs build: Make clang plugins build with libclang-cpp
Change-Id: Ifbae5f2a124e5c36126391d48b0a186bd153d678
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-26 13:09:07 +00:00
Christian Kandeler
c9672f4ffa qbs build: Fix unittest project file
There were some subtle errors that lead to test failures.

Change-Id: Ibea24a8a45a47a5c3239da77bd4ed7ddca61ec57
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-26 13:08:32 +00:00
Cristian Adam
a81b6b623e CMake Build: Update CMake minimum Version to 3.10
This is due to policy CMP0071 which affects AUTOMOC and
generated files.

With CMP0071 set to OLD (CMake 3.9) precompiled headers
would fail to work with GCC.

GCC and precompiled headers would still require the upcoming
3.18 CMake, but having CMP0071 set to NEW (CMake 3.10) is
a prerequisite.

Change-Id: I7c3c1f739877646a91ffa07e2a8006ab7d6f4d77
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-26 11:41:44 +00:00
Christian Stenger
0aa1a3ad4b Revert "JsonWizard: Fix restoreLastHistoryItem for LineEdit"
This reverts commit e3abd5b348 as it broke
updating evaluating line edits.

Change-Id: Ie729a63d6a2b87df7143aba26726b657cffb8148
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-05-26 09:23:09 +00:00
Christian Kandeler
949bb0e67b ClangCodeModel: Show value in tool tips, if possible
When hovering over a constant expression, it's probably helpful
to show that value to the user.
Requires clang 11 to fully work. For now, it only shows the value for
variable initializations.

Fixes: QTCREATORBUG-23967
Change-Id: I6b844231bac50993c2fa2fa82c552ad9cef590df
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-26 08:50:58 +00:00
Eike Ziller
227904d4a6 Merge remote-tracking branch 'origin/4.12'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri

Change-Id: Ic39945a0e3e140a9467b4b4f572929257ff3a324
2020-05-26 09:00:05 +02:00
Eike Ziller
63df649655 Packaging: Get rid of binary-artifacts repository usage
We removed the cdbextension and wininterrupt binaries from there a long time
ago, and instead package these for the installer. Package newest jom version
from its actual release in the installer as well.

Task-number: QTCREATORBUG-23908
Change-Id: Ic9bdc97774cbeb894fc261e57af127d6cdc71205
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
2020-05-26 06:35:45 +00:00
Volodymyr Zibarov
bb418d2769 C++: fix cplusplus tools build with Qt 5.14
It's using QMapIterator that is disabled by default with
QT_NO_JAVA_STYLE_ITERATORS defined in cmake\QtCreatorAPIInternal.cmake.
Change to not use QMapIterator.
Another way would be to undefine QT_NO_JAVA_STYLE_ITERATORS before
including QMap, but that would not work with precompiled headers enabled

Change-Id: I26dcba64dc84b6c154f62ddd9520075b59f618b2
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-26 05:44:31 +00:00
Volodymyr Zibarov
f82c794bfb C++: Fix paths passed to cplusplus-update-frontend on cmake build
Change-Id: I9e70d411d3944e4c7b3ae5fe722aaa2894f87602
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-26 05:44:03 +00:00
Ville Nummela
a36e031cf5 ProjectExplorer: Split deployment data using last colon on the line
The original approach does not work with absolute file paths on Windows

Change-Id: I9f284dfa7c0fe145a99e216a571d3f0eb1289f94
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-05-26 04:47:27 +00:00
Nikolai Kosjar
b193e3cea1 C++: Make cplusplus-update-frontend generate "nullptr"
The commit 2e14df7561 replaced some "0" by
"nullptr" on e.g. the generated ASTClone.cpp.

Running cplusplus-update-frontend reverts the changes for the generated
files again, so adapt cplusplus-update-frontend to generate "nullptr"
instead.

Change-Id: I16750da0df57692405c5b33462f1f63f05c175c1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-05-26 04:25:36 +00:00
hjk
e71c0b7fe2 Debugger: Drop unnecessary use of ModuleNotFoundError
That's Python 3 only, and doesn't add value here.

Change-Id: I9b1702ea8b0b0ddb090fdfc393228b4430da0b07
Task-number: QTCREATORBUG-24004
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-25 23:53:47 +00:00
Eike Ziller
b3ffd8d1eb CMake build: Move documentation functions to re-usable location
Removes "install_..._docs" and "clean_docs" special targets.
Instead install documentation with "--install . --component qch_docs"
and "--install . --component html_docs" which have the advantage that
the install prefix can be specified later on with --prefix.
Also removes export of IDE_SOURCE_DIR, which is not used.

Change-Id: I4fce0b9aa8c7fc40b7e94e065777ddf4c0b76c41
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-05-25 11:31:06 +00:00
Ville Voutilainen
52188918c0 Android: add service editor to manifest editor
Task-number: QTCREATORBUG-23937
Change-Id: Iec0435721504df744ec985bd3e5cefcc0700e852
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-05-25 11:18:09 +00:00
hjk
14666c801a Debugger: Drop 'set print object on' for GDB
This does not seem to affect the code paths we are using through
Python.

Task-number: QTCREATORBUG-23965
Change-Id: I2e20d6d3c1937d56293e81b74c453e83a92ddc4c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-25 10:01:03 +00:00
Christian Kandeler
4ecb87f2f9 C++: Do not mis-align function arguments that are initializer lists
Fixes: QTCREATORBUG-24035
Change-Id: I93598ff64fc6fd74008c942b8755da5e481c63c7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-25 09:22:30 +00:00
Christian Kandeler
d4c31cef74 C++: Fix wrong formatting
... when using a shift operator inside an initializer list.

Fixes: QTCREATORBUG-16977
Change-Id: I8992162c05345b713c665e3601ae593af5007211
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-25 08:54:47 +00:00
Eike Ziller
e7b319fbc1 Doc: Fix naming of .index files
Qt Creator Manual and Extending Qt Creator had the same project name,
and therefore the same index file name.
Also qdoc's "depends" configuration requires the index file to have
the same name as the directory.
Adapt the project names accordingly.

Change-Id: Ie1ec8ede360e19e3ffd5c7dbea44344f0a631f68
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-05-25 08:50:54 +00:00
hjk
cf91b2c033 LSP: Do not accumulate connections during signal emission
Amends cdeac76df3.

During the execution of updateProject() triggered by a fileListChanged()
emission new connections to the fileListChanged() were added, effectively
making the emit never return and gobbling up all available memory.

Change-Id: I18a1ab9b32c2e797e990449385a5353782211560
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-25 07:54:42 +00:00
Alessandro Portale
49ac9bb517 WebAssembly: Fix run configuration for Qt 5.15 app with emsdk 1.39.x
With Emscripten SDK 1.39.x, emrun quits and shuts down the web server
before the complete WebAssembly application can be fetched by the
browser.

Adding "--serve_after_close" to the emrun call restores the original
behavior. That parameter is accepted by previous Emscripten SDK versions
and seems to not change how it used behave in earlier versions.

Task-number: QTCREATORBUG-24072
Change-Id: Ie43604d42eb9c5a7cccd09fdf1c33391dc31098d
Reviewed-by: hjk <hjk@qt.io>
2020-05-25 06:32:51 +00:00