Commit Graph

55184 Commits

Author SHA1 Message Date
Marco Bubke
b6cb22899c Utils: Improve SmallString
The small string control block moved to the beginning, so it is more cache
local. The control block is cleanup too, so it should be easier to read.
The alignment is removed because it is creating to big holes.

Change-Id: I401aeb9d55455cbaa5e722dd8192e54b525ddc40
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-04 13:34:20 +00:00
Robert Loehning
12398a4abe Squish: Remove duplicate code
Change-Id: Ic852f3438fac9cdc38b53509daaa592ac0688648
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-04 13:33:12 +00:00
Alessandro Portale
0ecd543614 AutoTest: Use a prefix in autotest.qrc
Since all resources in Qt Creator get merged together at runtime, they
should be prefixed with the library/plugin name.

Change-Id: Ie411388ed72f099647b25787a140feff1828d3f1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-04 13:27:45 +00:00
Robert Loehning
1aed2b06de Squish: Stabilize tst_CSUP04
Change-Id: I2e036e401253f1f2cfe29efdbeedf9a51491d0ef
Task-number: QTCREATORBUG-20140
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-04 13:27:00 +00:00
Thomas Hartmann
af857296aa QmlDesigner: Fix potential crash
Change-Id: I850778e9534da4546e09c7d6368639b35488df33
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-04-04 13:19:44 +00:00
Leena Miettinen
cb2c17c959 Doc: Fix links to YouTube videos in the Welcome mode Tutorials tab
The links to the two videos were mixed up.

Change-Id: I1b95c5d2a296861e518da12e5c9d205e855a902f
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2018-04-04 12:37:32 +00:00
Christian Kandeler
d2d5208819 qbs build: Enable the vcs module only for commercial plugins
The other ones are in the Qt Creator source tree and should not get
rebuilt on repo metadata changes, because they do not make use of
QTC_PLUGIN_REVISION.

Change-Id: I216a89de4411948b7ccad65f883d0d8782a283d4
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-04-04 12:08:40 +00:00
Alessandro Portale
65329ca22a Nim: Use a prefix in nim.qrc
Since all resources in Qt Creator get merged together at runtime, they
should be prefixed with the library/plugin name.

Change-Id: Id724fadd45397148ab4a5a815dc7e4114e10c9d2
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
2018-04-04 11:31:18 +00:00
hjk
66d18ce07f ProjectExplorer: Simplify IBuildConfigurationFactory interface
Following the RunConfigurationFactory lead this replaces
f = Foo::find(); f->do() by static Foo::do() stanzas.

Also de-virtualize/private-ize IBuildConfigurationFactory::canCreate()
as it is only a local helper nowadays.

Change-Id: Id36ba514f426ebd054592189aa29c170ba00d92f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-04-04 10:14:22 +00:00
Nikolai Kosjar
bfdcbf861f Clang: Fix parse errors in clazy/tidy demo project
...otherwise not all intended diagnostics can be demonstrated.

Change-Id: I2f69862cc6c8a2e58059d9075ad6fd7c7e72b4a5
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-04 08:08:39 +00:00
Friedemann Kleint
217f2a49f6 PythonEditor: Show python stack traces in the build issues pane
Add an output formatter that captures stack traces and adds them
as tasks.

This helps to speed up fixing syntax errors.

Change-Id: I8a4fa77d0f87b4d16f4bb780b15ec06154a52441
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-04-04 07:56:24 +00:00
Nikita Baryshnikov
0297cdd4f7 ApplicationLauncher: fix odr warning for State enum
applicationlauncher.cpp:68:6: warning: type ‘State’ violates the C++ One
Definition Rule [-Wodr]
 enum State { Inactive, Run };
      ^

deviceprocesslist.cpp:34:6: note: an enum with different value name is
defined in another translation unit
 enum State { Inactive, Listing, Killing };
      ^

Change-Id: I242754c1e4f18c5dd0e8bb017f94783528ad759f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-04-03 15:57:49 +00:00
Marco Benelli
b9d72a5737 qmljs: remove remaining references to QtQuick1
This patch removes all references to QtQuick1 in qml library,
plugin, designer, profiler and tests.

Change-Id: Ie286fad96060299caae3ef328330597cf53e90d3
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-04-03 14:40:30 +00:00
Leena Miettinen
0029231e3b Doc: Add links to new tutorials from Welcome mode Tutorials tab
Change-Id: Ic56fd870aff0c0fcd5cf478d7749160a9846ee1d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-04-03 13:00:15 +00:00
Ulf Hermann
89d32d1efd QML Debugger: Handle QtInfoMsg messages in console
Before those were ignored. Also add a soft assert that will trigger if
we forget to add some other category here.

Change-Id: Iff3b33ab6c8defe935b681dd80bf185cd95e54f7
Task-number: QTCREATORBUG-20117
Reviewed-by: hjk <hjk@qt.io>
2018-04-03 08:48:31 +00:00
Orgad Shaneh
28fa43e45b Dumper: Return correct address on extractPointer for arrays
Change-Id: I8e25cca4553a8b69703ac0ffa80231f97cdef980
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-03 06:47:32 +00:00
hjk
4e4a07ea1d Designer: Use PluginManager getObjectByName instead of getObjectByClassName
There was only one user ever of getObjectByClassName, and has never
been more than one object here. So the more common function does
the trick, too.

Change-Id: I9df09127d476be4ddab466f8a709a2b383a76b97
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-03 06:47:13 +00:00
Eike Ziller
9b563dc142 Merge remote-tracking branch 'origin/4.6'
Conflicts:
	qbs/modules/qtc/qtc.qbs
	qtcreator.pri

Change-Id: I3b2d81462b2dfb9753863c87c79ffbbf8d536aac
2018-03-31 08:53:21 +02:00
Marco Bubke
b01813d794 Clang: Fix destructors
Change-Id: I95164b195b912068496d5c8de0fe09cf88678916
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-03-29 15:37:25 +00:00
hjk
8c713d45a8 CMake: Use new ExecutableAspect
Change-Id: Ic880351802c52b61c53c6730d23dfe3f124ebc44
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-03-29 14:27:14 +00:00
hjk
1c006e406f ProjectExplorer: Introduce and use a ExecutableAspect
... to hold the label with the executable's name in the
RunConfiguration widgets.

This basically follows suit on {WorkingDirectory,Arguments}Aspect,
allowing for some centralized handling of decorations on invalid
names etc.

Implementation is even simpler as this is read-only and not saved
in settings envisioned use cases.

Change-Id: I20c5c19e5f19ba8367afc0d04ed2ac3681e6491d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-03-29 14:27:06 +00:00
Eike Ziller
b8eea8f9f8 Locator/JavaScript: Fix min/max with more than 2 arguments
Pass a variable amount of arguments along

Task-number: QTCREATORBUG-20167
Change-Id: I3643aca8c18cba14beb8d625b62f45aa4b39d2a4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2018-03-29 10:51:45 +00:00
BogDan Vatra
aa2ea72679 Add stdcpp NDK paths to soLibSearchPath
It's useful when the application uses std::abort & co to get
a useful callstack.

Change-Id: I805478333bac3eba21db158df52942599a80c088
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-03-29 10:18:27 +00:00
Eike Ziller
454e9ee5ca Add Context Help to text editor context menu
For this make the default context menu for the text editor extensible
and add the context help item from the help plugin, which now has an
optional dependency on the text editor to ensure correct loading order
if both are present.

Task-number: QTCREATORBUG-55
Change-Id: I378a491ba3700e65fc262bdb10c8ead5ad62cb33
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-03-29 08:26:24 +00:00
Eike Ziller
26bfa469db Fix that clearing shortcut in settings did no longer work
This broke in 8d1a592d16

We should ask the validator of a fancy line edit if an entry is valid,
also if the line edit is empty and shows a placeholder text, even if we
then do not mark the place holder with the error color, etc.

In case of the shortcut settings, the validator has side effects that
are important.

Change-Id: I41c0d98ed3c6e9e68df4484a47c108b00ddbbfe7
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-03-29 08:03:15 +00:00
Eike Ziller
3ef455da18 Shortcut settings: Simplify code that extracts shortcut item
Change-Id: Ib9e6c11ea26c09837629ac2ef1c1dff0def1a9dd
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-03-29 08:03:02 +00:00
Marco Bubke
ff1ce3a475 Clang: Honor directories for the file name
The file name id must be unique for very entry, so the directory id must be
incorporated too. Now there is always one unique integer id for every
file path. The directory id is there to access and compare the directory
much faster but not provide any data to the uniqueness of the id.

Change-Id: I0f9a2ca70bc9dda0ce32ebc45eb7b082821eb909
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-03-28 14:01:12 +00:00
Tim Jenssen
2e25ce32cb QmlDesigner: fix crash on exit
Change-Id: I2e72699dd3f49c917a28d724753e27701a930fac
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-03-28 13:16:23 +00:00
Robert Loehning
d424fb36f1 Clang: Don't dereference nullptr
Change-Id: Ib36c2d18fd01684cad45042b9f1a6901a028b345
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-03-28 13:12:15 +00:00
Tobias Hunger
530fc225fa Project: Use std::unique_ptr for root project node
Change-Id: Ice101fa57c5ee09a58dc6c99f6716fa4919ade59
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-03-28 13:11:32 +00:00
Nikolai Kosjar
39306d55eb Clang: Fix build with QTC_NO_CLANG_LIBTOOLING
Change-Id: I8b3f4db10c43fc1620b765933915e3c4fd0a594a
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-03-28 11:47:52 +00:00
Eike Ziller
603b031ab2 Version bump to 4.6.1
Change-Id: I814d2b864dff341977a41c4d03d96de465a72775
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-03-28 10:11:53 +00:00
Eike Ziller
5cc24f9ac1 Merge remote-tracking branch 'origin/4.6'
Conflicts:
	src/plugins/projectexplorer/msvctoolchain.cpp

Change-Id: If2116aa2dbfdb9d07088595e791f8fa706b39e00
2018-03-28 10:01:44 +02:00
Eike Ziller
1e1c212090 Use QTCREATOR_COPYRIGHT_YEAR for documentation
For this the offline style overwrites any footer that was set in the
qt-html-templates-offline.qdocconf from Qt.

Change-Id: I8a8f7048445bc03a72b19df6c60b7cea680c5803
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2018-03-28 06:45:51 +00:00
Marco Bubke
de4f6301e6 Clang: Process SymbolKind and SymbolTags with the indexer
We add the infrastructure to compute the SymbolKind and SymbolTags in the
indexer. Later we have to add more for templates, virtual functions etc..

Change-Id: I9203c5cfbfffed3065337292010de5fce5736453
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-03-27 14:45:58 +00:00
Marco Bubke
a8b11cb2c5 Clang: Improve access to caching structure
The clang file id is counted from zero, so it better to use a vector
instead of a hash with all the overhead.

Change-Id: Iaf201898e9e16005d196b5b49065f15f9d3d2dfa
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-03-27 14:45:41 +00:00
Marco Bubke
576eb3370c Clang: Use the clang indexer for indexing
It is not removing so much code but will makes somethings easier in the
future. We added the SymbolType::Definition too.

Change-Id: I4e106b8518e6bfed0c6a4aa6be61c4a5fe5f8bef
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-03-27 14:45:35 +00:00
Leena Miettinen
3616725049 Doc: Increment copyright year in doc HTML file template
Change-Id: I281c907e2ee6593bed7854385e9b6f1ca5f169cd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-03-27 14:12:58 +00:00
Ivan Donchevskii
41a12410e6 Clang: Fix initial tidy settings tab
When no settings exist it has to be disabled.

Change-Id: I1cb8368edf182fa616930f5718323c8e03a0e649
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-03-27 13:54:06 +00:00
Joerg Bornemann
af939831f8 ClangSupport: Fix qbs build after incomplete refactoring
Remove files that are not supposed to be built anymore.
These were removed from the .pro file, but the .qbs file
picks them up, because it uses wildcards.

Change-Id: I457044147153baadcc223ff7e9d6b5497dd80fc0
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-03-27 12:41:35 +00:00
hjk
3bce4b9af2 QmlProject: Use new helper function to create run configuration widgets
Change-Id: I471fe60d25bb3d8ca3ebf2d2abe8e725bc7daa56
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-03-27 12:33:51 +00:00
Ivan Donchevskii
c93e2815c7 AutoTests: Fix build after ClangStaticAnalyzer plugin rename
Change-Id: Ic34633f98e6c3c1b73389802429f3011e87b301e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-03-27 12:33:31 +00:00
hjk
116f7db28c iOS: Use base method to list run configurations
The base method is good enough nowadays.

Change-Id: I1affc678a2168d002ed8f627a56f172e30c1c0be
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-03-27 12:31:45 +00:00
hjk
40730a4eb2 Android: Use base method to list run configurations
The base method is good enough nowadays.

Change-Id: I8e7e9acbade239ff0dce4ac594b62d23cc5522cb
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-03-27 12:28:44 +00:00
Joerg Bornemann
3ac2aa7bb5 Update qbs submodule
To HEAD of 1.11 branch.

Change-Id: Ie70fa4113c1af7ba3c75c4618ded9711d3dcdaa7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v4.6.0
2018-03-27 11:44:46 +00:00
Marco Bubke
d6df537ae2 Clang: Remove old CPP code
It was there to suppress warnings but this is now done with compiler
arguments.

Change-Id: I62edae9c115c09aa07601547159c04e038943a9b
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-03-26 13:39:58 +00:00
Marco Bubke
9c4bfbe20a Clang: Improve interfaces
The interfaces should never used to handle ownership. So it is now using
protected destructors. Copy operations are forbidden too.

https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c35-a-base-class-destructor-should-be-either-public-and-virtual-or-protected-and-nonvirtual

Change-Id: Ib0b60a73a7ec130973b5cb0095cc5b2f10fa0758
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-03-26 13:39:36 +00:00
Eike Ziller
985153d9cc More changes entries for 4.6
Change-Id: I968f051be1eecbb928046d37499449eeec7e05ba
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-03-26 13:35:46 +00:00
Eike Ziller
f1e02c0826 Fix that menus didn't show ampersands in files names
And instead interpreted the ampersand + following character as an
accelerator key.

Task-number: QTCREATORBUG-17817
Change-Id: I327239499ce56e75fd12f2df5be60d4b04913acd
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-03-26 12:02:15 +00:00
Andy Shaw
cf5075c9cd Clang-cl: Fix restoration of clang-cl compiler
compilerCommand was not restored, so isValid failed.

Task-number: QTCREATORBUG-19255
Change-Id: Idc65aaf2eaad348f05cdf4dfd057bbd10c6c4e4c
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-03-26 09:19:57 +00:00