Commit Graph

67787 Commits

Author SHA1 Message Date
Alessandro Portale
2ba2a0d1d4 McuSupport: Qul v1.2 adjustments
- Bump supported version from 1.1 to 1.2
- Look in Qul_DIR/kits for boards json files (UL-2390)
- Remove "pragma main;" from app template main qml (UL-1708)
- Add a main.cpp for BareMetal and FreeRTOS each (QTCREATORBUG-24063)
- Removed ambiguous armgcc download link (QTCREATORBUG-24052)

Task-number: UL-1708
Task-number: UL-2390
Task-number: QTCREATORBUG-24063
Task-number: QTCREATORBUG-24052
Task-number: QTCREATORBUG-24079
Change-Id: Ieb3d0c22b9099b12f91096b5a90c6e84698be788
Reviewed-by: Christian Kamm <mail@ckamm.de>
2020-05-27 11:47:57 +00:00
Leena Miettinen
6c9d8e619f Doc: Improve usage of terminology related to embedded devices
Make a distinction between "Boot2Qt" and "generic remote Linux"
devices. Use "embedded devices" as a more general term.

Change-Id: Ice06e6737d6baca001a2a13a6cec7be7624dff2e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-05-27 10:49:40 +00:00
Tim Jenssen
ec93e57bc1 qmldesigner: export DocumentMessage
Change-Id: I504a25304bf345a3528a4bd14e2eacee7809f06a
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
2020-05-27 09:15:58 +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
hjk
dcdd64908d Utils: Add another missing #include
Some implicit QActionGroup inclusion is gone in Qt dev.

Also, sort includes.

Change-Id: Ie6726daf28a4d21a54225c4606cebfc3b81895ba
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-27 08:48:24 +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
hjk
62015fe8a0 Utils: Add missing #include
Some implicit QSet inclusion is gone in Qt dev.

Change-Id: I473b423baabdde8d7e3369a6e883eefeb11d02d9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-27 06:50:02 +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
Marco Bubke
b3f8a4a73c Utils: Include from future std::span
std::span is a universal class to represent a non owning contiguous data.
You can even manipulate the data but you can not change the size like sort.
It's very nice for interfaces which call in other code but don't need to
own the container or make an internal copy anyway.

https: //en.cppreference.com/w/cpp/container/span
https: //solarianprogrammer.com/2019/11/03/cpp-20-span-tutorial/

Change-Id: Iaced1bd60c14b2fd7ea6576bb6e1720ed8990da8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-26 18:15:06 +02:00
Thomas Hartmann
9f5c1184ea QmlDesigners: Allow detaching of standard views
Change-Id: I8b05d73724003c43565578a6bb9846d11af919ab
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-26 18:14:44 +02:00
Thomas Hartmann
fd55b36b7c QmlDesigner: Increase alive timer
Change-Id: I2f3c1c95f631925f66dad2ce1f7635756edb7ae5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-26 18:14:27 +02:00
Thomas Hartmann
c8d7d44bfb QmlDesigner: Fix changePreviewImageSize
If the size is invalid set the default size.
Invalid size most likely means the setting was removed.

Change-Id: I3f1dad5bdac799673d37036099d954caab9aca19
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-26 18:14:14 +02:00
Thomas Hartmann
4896b60139 QmlDesigner: Add qRegisterMetaType for ChangePreviewImageSizeCommand
Change-Id: Ic399afc342a821f89c2559e0d2ebec942504ba61
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
2020-05-26 18:14:03 +02:00
Tim Jenssen
f0bcc1e96a qmlpreview: add QT_MULTILANGUAGE_DATABASE feature
Change-Id: If6d1d95eb994eea5fe801a3aa5e7343f7764b2a0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:13:04 +02:00
Tim Jenssen
61a63b9449 qmldesigner: enable DebugTranslation
Change-Id: I16c5e449834308b4970be87a49e9f09cf4b1e32d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:12:53 +02:00
Tim Jenssen
cbd0649e3b qmlpuppet: enable the use of multilanguage database
Change-Id: I2277348ac1e6b5025e75c640da83da30294c9d10
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:12:38 +02:00
Marco Bubke
2e79e1715b QmlDesigner: Fix crash for missing registration of ChangeLanguageCommand
Change-Id: Ieef35ef5daa19615375cc4c7b2b0b62667df7b67
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-26 18:12:19 +02:00
Marco Bubke
7a274cc4aa Sqlite: A value std::string constructor
Change-Id: Ife68911bdafdf75e6cf39d46ae430c95d06bfba4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-26 18:11:56 +02:00
Marco Bubke
36711dab34 Sqlite: Export interface
Change-Id: I17fffdb2d6ca43e5f0897c0c86dd461b0d844699
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-26 18:11:44 +02:00
Marco Bubke
6ae30941d2 Sqlite: Make logging conditional
Change-Id: Iac8c63aad6ae670d07c0ac4f600bd319eb2fc2b2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:11:26 +02:00
Marco Bubke
75da71e1fa Sqlite: Fix test
Change-Id: I04de9c429b7779c5c4ecde4a4a44e3b5e60699b3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:11:14 +02:00
Marco Bubke
55d1f6b46e Sqlite: Relax LastChangedRowId
Change-Id: Ibc4637ebafd4c0cdedfcea5c52da5025435bc4ab
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:11:02 +02:00
Marco Bubke
613dec7c92 Sqlite: Tweaking reserve of values function
We now save the size of the maximum of all results. This can be improve
performance if the result set sizes are similar. If the very different
we will allocate to much memory. Because it is not changing any results
it's hard to test. We maybe should add benchmarks later.

Change-Id: I07227200076365b7fe4d0ac3951981469f9d454f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:10:52 +02:00
Marco Bubke
36fd58fbe9 Sqlite: Add carray extension from Sqlite and a pointer binding
Change-Id: I96c160514ac80458cbcbff0151c685958de71fdd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:10:40 +02:00
Marco Bubke
e979640892 Sqlite: Activate mmap
Mmap can be moch more performant.

Change-Id: I95ed6342bae25dba906391b3a725303e22d33bff
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:10:24 +02:00
Marco Bubke
245adca2a4 Sqlite: Add some configuration options
Look at https://www.sqlite.org/compile.html#_HAVE_SQLITE_CONFIG_H to get
deeper insigth.

Change-Id: I52b113035035714af6cae4dc276ad8216d1c0e68
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:10:11 +02:00
Marco Bubke
2c03be75f8 Sqlite: Add more stats for the optimizer
Change-Id: Ic2e5cc95a395c76ffc2ccb835071ea05f4e490fc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:09:57 +02:00
Marco Bubke
2f6a226dd3 Sqlite: Forbid double quotes which are not part of the SQL standard
It's anyway easier to write single quotes.

Change-Id: Ie71c39d9cdd83e0b898efe70a1912d8257ac991e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:09:47 +02:00
Marco Bubke
5d5d100733 Sqlite: Update sqlite version
Change-Id: Ida1705e88020408c9ffd4fd16f51880e2b956a59
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:09:37 +02:00
Marco Bubke
dc2192ef8a Sqlite: Dont compile Utf-16 support
We don't support it anyway.

Change-Id: I35fa859f3c9d7389e3d00d584832a814acb39c80
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:09:26 +02:00
Marco Bubke
30d5684ac2 Sqlite: Add some more optimization flags
Change-Id: Ia6e22a6587754c98689ff1bea73ca977fa7a141a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-26 18:09:04 +02: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