Commit Graph

67787 Commits

Author SHA1 Message Date
Venugopal Shivashankar
33c5ff216a Doc: Add a note against the optional subsections
The instructions to add a device or a kit is not
necessary if the SDK is set up already. Creator
handles these automatically and they are not
mandatory to set up the development environment.

Fixes: QTCREATORBUG-23859
Change-Id: I8ea7248f060a84eb29278950c68d020026106061
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
v4.12.2
2020-05-29 21:46:15 +00:00
Alessandro Portale
0e1fb1cf06 QmlDesigner: Make alternative icon engine HighDPI-aware
Change-Id: Ib1c757aac7cf7a963b2912f98fc5cd403f667ed7
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-29 20:46:05 +00:00
Christian Kandeler
c5ce38f046 CppTools: Add missing serialization
... for ClangDiagnosticConfig::useBuildSystemWarnings().

Fixes: QTCREATORBUG-24084
Change-Id: Id06cc44f1aa690ea0ae5a808a3b8c95f83c62950
Reviewed-by: Nikolai Kosjar <pinaceae.pinus@gmail.com>
2020-05-29 14:46:58 +00:00
Eike Ziller
f1720910d4 Fix and complete documentation for ICore
Change-Id: Id7517ced928e7b4eefb1822f5e9381187169486a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-05-29 14:46:34 +00:00
Eike Ziller
26c26c0dad Support more file formats for unarchiving plugins
Use tar, or cmake -E tar, for .tar, .tar.gz, tar.xz, tar.bz2.
Use 7zip for 7zip.
Zip is supported by unzip, 7zip, tar, and cmake.

Change-Id: I799c3211325398add150644b57c32b7ad5bb8903
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-29 13:17:02 +00:00
Eike Ziller
f75d1ae61a DiffUtils: Remove unused include and declaration
Change-Id: I6acfa0d964530f9309594dfd2ae18c06c2235c85
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-29 13:12:37 +00:00
Eike Ziller
b309c62e72 Add changes file for 4.12.2
Change-Id: Iece46998b8addeda4f7e501a87e6d62491937774
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-05-29 13:02:30 +00:00
Eike Ziller
cc8148606a Move unarchiving code out of the plugin dialog code
Change-Id: I2b6510ae527d57a06692336cfd7b0434cdcbda51
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-29 12:39:49 +00:00
Volodymyr Zibarov
9ee693ee22 C++: fix built-in code model to work with shared_ptr on MSVC 2017
These changes target Find Usages feature to work with shared_ptr.
Improve libs/3rdparty/cplusplus and plugins/cplusplus:
parse __declspec() attribute,
call to variadic function template without specified template arguments,
if constexpr,
c++11 attributes [[value]],
function templates with default parameters,
resolve order for function vs template with default parameter,
template operator->() with default arguments,
template specialization with numeric values,
find best partial specialization,
fix partial specialization for non-first specialized argument

Fixes: QTCREATORBUG-7866
Fixes: QTCREATORBUG-20781
Fixes: QTCREATORBUG-22857
Fixes: QTCREATORBUG-17825
Change-Id: I31a080f7729edfb2ee9650f1aff48daeba5a673b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Nikolai Kosjar <pinaceae.pinus@gmail.com>
2020-05-29 12:39:28 +00:00
Christian Kandeler
be97943372 CompilationDbProjectManager: Do not remove -fpic from command lines
This flag is needed by the code model. The test case that had it on the
command line was invalid (clang does not allow -fPIC with win32
targets).

Fixes: QTCREATORBUG-24106
Change-Id: Ic95c82c2090ef5ee1a11d01d7e4387a5c80cda3c
Reviewed-by: Nikolai Kosjar <pinaceae.pinus@gmail.com>
2020-05-29 11:52:24 +00:00
Christian Kandeler
4a6aa35a91 Utils: Do not use QDir::cleanPath() in FilePath::fromUserInput()
Some of the functionality of QDir::cleanPath() breaks the use of
Creator's variables. For instance, "%{sourceDir}/.." becomes ".".
This has hit us before; see commit 8bc7e04012.
It's not always possible to expand strings before converting them to
FilePath, and it would require a lot of work to change all occurrences
of potentially unexpanded FilePaths to QStrings, so it seems like the
more practical solution to allow unexpanded FilePaths.

Fixes: QTCREATORBUG-24095
Change-Id: I5fbbd181cb888b129f11c120e363228bc52b090a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-29 11:40:54 +00:00
hjk
2bb783a985 Android: Fix crash in build step when no Qt version is set in kit
Amends 67df868f5c.

Change-Id: I0b69a394adefedbb80dfe240c4e5b9a89d29b7b2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-05-29 10:39:21 +00:00
Christian Kandeler
c8d7c074f5 CppEditor: Consider namespaces in "extract function" quickfix
Fixes: QTCREATORBUG-23256
Change-Id: I99b1271907767c3607e35adb49bd4109f3eca18c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-29 09:02:49 +00:00
Volodymyr Zibarov
28a999be52 CMake Build: Set /permissive- (standards conformance mode) for MSVC
To make errors appear faster when developing on Windows

MSVC 2017 and later have this flag to disallow MSVC-specific C++
language extensions. Use it to make code more correct and more portable.

Set this option with add_compile_options() in root CMakeLists.txt to
apply it to all targets.

Add one #include to unittest/gtest-clang-printing.cpp as workaround for
forward template declaration bug in MSVC http://tiny.cc/fa4tpz

Change-Id: Ie0b19701ad773c79ffd2fed24fffbb1dcb29538c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-29 06:51:45 +00:00
Cristian Adam
93e7629ef6 Core: Report MSVC 2019 when built with MSVC 2019
Change-Id: I1c360b76d6d9f9b59e2ce563c5ca9a9c7fdeafa1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-28 16:52:47 +00:00
Cristian Adam
07d825bd4c GitHub Actions: Update Qt version to 5.15.0
Change-Id: I6da4c9a2b0d0b86729c19e8db3ac345d2d45666c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-28 14:31:31 +00:00
Tim Jenssen
6079a317b9 QmlDesigner: add qmldebugtranslationclient
Change-Id: I4b863a454831f469823e03355d87861eed9be046
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-28 13:18:59 +00:00
Tim Jenssen
48b6ae2e1f qmldesigner: fix unix compile
Change-Id: I33a948ee2070e70d918f48d6bfad94ef50234eb3
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2020-05-28 12:31:20 +00:00
Volodymyr Zibarov
df6d95c3e1 C++: Fix cplusplus-keywordgen to generate Keywords.cpp
Fix kewordgen to generate current Keywords.cpp with minimal diff,
but also to be compatible with old usage and kwgen files.

Add new parameters:
%no-namespace-for-tokens - not use namespace for tokens
%pre-check-argument - set type and name of additional variable to use
%function-name - name of a function ("classify" by default)
%pre-check - name of a variable to check for a keyword (i.e. cxxEnabled)
Now "%%" is also used to end and restart keywords parsing to be able to
generate additional keywords for classifyOperator()

Automatically add checks for LanguageFeatures to generated code
Pass input and output files with command line arguments, print usage

Update Keywords.kwgen to include all keywords currently used

Add missing aliases to Token.h

Change-Id: I6cc84e150e0d797277204032fc05ce9cfbd01f58
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-28 11:12:38 +00:00
Christian Kandeler
3563c457a5 CppEditor: Detect changes in a function's exception specification
... so that the light bulb will pop up and let the user change the
associated declaration or definition.

Fixes: QTCREATORBUG-23895
Change-Id: I71032d81782b6d0bef929ecfa837eda2f5caec09
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-28 09:33:55 +00:00
Marco Bubke
9d3087b9b4 Sqlite: Fix CMakeLists.txt
Change-Id: I53d862aabe76f2b5edefb8e365af8ab73f4994f5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-28 09:25:58 +00:00
Nikolai Kosjar
9dafc323b5 CppTools/ClangTools: Fix saving diagnostic configs for code model
As ClangDiagnosticConfig() has tidy and clazy enabled by default now,
the ClangTools' importDiagnosticConfigsFromCodeModel() takes diagnostic
configs on start up away from CppCodeModelSettings.

Ensure that built-in configs do not have tidy/clazy enabled by default.
Also, when importing, look at the actually enabled checks.

Fixes: QTCREATORBUG-23717
Change-Id: Id8370ae2fff2392fc94aa957fd33c1954aff5594
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-05-28 09:20:06 +00:00
Eike Ziller
24777becb9 Plugin Wizard/GitHub: Don't assume jom to be in Qt Creator package
It is no longer part of the qtcreator.7z for master/4.13, but instead
packaged separately in the installer.
Get jom from its own download location.

Change-Id: I642da3f560087982612d25d288eb7a960103854b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-05-28 09:05:20 +00:00
Christian Kandeler
1989dbe0d7 Built-in lexer: Recognize also reserved user-defined literals
Otherwise, we trip over uses of operators from the standard
library such as std::chrono's operator"" ms(), potentially breaking
basic code navigation.
Amends 425811291d.

Fixes: QTCREATORBUG-24067
Change-Id: I3b2863ce88ee3787414e7a1acdf25f368041cdb4
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-28 08:36:56 +00:00
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
Thomas Hartmann
fbe80e1cdf QmlDesigner: Add front end for style merger
Change-Id: I2bd1ac525ac866d23a4398e6214d3e8aec52eb7f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 19:37:35 +00:00
Michael Brüning
de8eb93637 Add stylesheet merger
Adds classes to merge a template qml file and a qml stylesheet that have
been exported from other design tools into a resulting qml file that can
be used for further processing in Qt Design Studio.

Current issues:

* Sometimes it makes sense to define width and height
  if an anchor is present, but most of the time not.

* Actually if the hierachy was defined (e.g. Text item not child of
  background) most likely the anchors should be ignored.
  But this would be just a "dirty" heuristic. I suggest to let the
  template decide. If the template has anchors those have "precedence".
  It is always possible to define templates without anchors.

Task-number: QDS-2071
Change-Id: I9159514a8e884b7ffc31897aef4551b5efbbcb87
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 18:26:12 +00:00
Tim Jenssen
5b00401850 Merge remote-tracking branch 'origin/qds-1.50' into qds-1.59
Change-Id: If4869664ad4cbb5ec56e7c306f47d0bf0f1f075c
2020-05-27 19:02:07 +02:00
Tim Jenssen
b193892fd1 Merge remote-tracking branch 'origin/4.12' into qds-1.50
Change-Id: I8e4155aa2a0a8c7f7405dd79e856380011e23a33
2020-05-27 18:59:53 +02:00
Michael Brüning
8c9aea6f11 Add source property to ordered list
Change-Id: I2c058ad923ddbfec20ecfb1fb44cef4120e2a2fb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 16:55:10 +00:00
Michael Winkelmann
a739ac8e95 Introduce standardViews() function for ViewManager
Change-Id: I699f081e23db92cf96292b10e9427d9747e76f22
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 15:27:27 +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
Marco Bubke
a9a205486d Sqlite: Improve SqliteStatement column check
We have done it for every getter. Now we do it only once as we ask for
the values. It simplifies the code and the test and could even improve
performance.

Change-Id: Ia7d4a33a77ec7c0a5fda548424fbf8b192f07511
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 13:26:07 +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
Marco Bubke
9f9140b196 Sqlite: Remove unused code
Binding by names is slower and we never used it.

Change-Id: Ia6b9b78401f8c2711be34b667ac6f08b44418773
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 13:09:35 +00:00
Marco Bubke
9c44f8d88d Sqlite: Add blob support
Change-Id: Ic2ec5f20c8585241b9e9aaa8465e70b6ab4f004c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 13:09:27 +00:00
Marco Bubke
22c33fb859 Sqlite: Improve LastChangedRowId
Change-Id: I2fe559d4b40f93561e44eb138119416291dc7d41
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 13:09:20 +00:00
Marco Bubke
49dc889c7f Utils: Use unaligned malloc on windows too
We do not align the small string anymore.

Change-Id: I933f95ea14f90fff29cb8ab75d987039ea7f8a3e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 13:09:12 +00:00
Marco Bubke
0b3d03121f Utils: Modernize SmallString
Use more C++ api and constexpr. With C++ 17 we can use even more.

Change-Id: I33934cd7e087c311bf98501442df848bdb108279
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 13:09:03 +00:00
Marco Bubke
64cbffe959 UnitTests: Fix LastChangedRowId
Change-Id: I538d068168488eee2662618dede598135c45e396
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 13:08:55 +00:00
Marco Bubke
ae5ce649c1 Utils: SmallString swap cannot throw
Change-Id: I4ae30adc6ca77681a4b21281148831d3ab3d728e
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2020-05-27 13:08:46 +00:00
Thomas Hartmann
5ab6a81521 QmlDesigner: Define order for more properties
Change-Id: I24795a8eeee31e8826dbd262c0b6f8f98f5974a5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 13:02:27 +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
hjk
13ad816308 Utils: Use QRegularExpression in fileutils
Change-Id: I48b192630e52ff3825bcb401a19faef59e846da3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-27 12:01:38 +00:00