Commit Graph

54723 Commits

Author SHA1 Message Date
Friedemann Kleint
d12c3e77b8 qdoc2tasks.pl: Adapt to changed message format in Qt 5.11
Account for the additional '(qdoc)'.

Change-Id: Ibef4dfba66bcc2eb1d47535b9e6501ed3a47e968
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-26 16:20:53 +00:00
Ivan Donchevskii
09310bcdc6 Clang: fix utf8 related column numbers
Use new clang_getFileContents to efficiently convert
utf8 byte offsets from line start to column numbers.
Also provide simplier backwards convertion to pass
resulting utf8 offset to clang.

Task-number: QTCREATORBUG-16941
Change-Id: If0e58fe01ad3e281b7e952e972b9e86f6e75aadb
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-01-26 15:39:31 +00:00
hjk
268efa4a0b Autotools: Remove dependency on plugin object pool
Change-Id: I402e84d2702faf58b18ce896ebda5501966e5c9d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-01-26 15:09:11 +00:00
hjk
53d14fbb48 Locator: Do not use object pool for some filters and LocatorManager
Also bundle lifetime management into one object.
Also minor interfact cleanup.

Change-Id: I60eec84b0b28a20ce353fcdbfdff1c4848686ba0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-01-26 14:40:44 +00:00
Leena Miettinen
6deec195f1 Doc: Describe selecting Clang-Tidy and Clazy checks
Also mention support for C++17 and renaming of local symbols.

Change-Id: I7bb72bd8741e7ddd3d45e23029696c09a654a3f6
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-01-26 14:37:39 +00:00
Tobias Hunger
c7e4eee345 ProjectTree: Add command to manually sync current document and project tree
Add a command to manually sync the current document and the project tree.

Task-number: QTCREATORBUG-19625
Change-Id: I2423853ca1a876c6203a004b465adde949eb6c5b
Reviewed-by: hjk <hjk@qt.io>
2018-01-26 14:35:10 +00:00
Tobias Hunger
9b495853c6 CMake: Ignore duplicate files in server-mode
Some cmake generators create a set of different configurations of the project
at the same time (e.g. Visual Studio related ones). These typically contain
the same set of files.

Creator iterates over the configurations and adds files to the project tree.
For multi-configuration generators this does lead to the same file being listed
several times below a target (the targets themselves were already deduplicated!).

This patch adds deduplication of file paths already listed in the target's
subtree of the project, thus fixing the multiple files issue. New files (e.g.
those that get only built in debug/release mode) will still get added as before.

Task-number: QTCREATORBUG-19020
Change-Id: I5dd6012ea335d9946c78c25be258c8c4d60698f2
Reviewed-by: hjk <hjk@qt.io>
2018-01-26 14:34:24 +00:00
Ivan Donchevskii
4ba4079db2 CppTools: Use -isystem only for non-project includes
...and return -I for ones in project.

In case -isystem is set for all includes we don't get
proper reparse when the included file is in angle brackets
and is changed.

Change-Id: Iba912edfc488aed2a4484f6a742a7c36099e8a13
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-01-26 14:00:57 +00:00
hjk
06d47b930e Welcome: Don't add ProjectWelcomePage to global pool
Not needed anymore after 4fad9dfa8f.

Change-Id: I36820046fbab3db36d5a4b3928bbfa6b0cd18188
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-01-26 13:12:30 +00:00
hjk
8426cc4025 Core: Do not put Edit mode in object pool
After cf7f898 not needed anymore.

Change-Id: I8d88ffe00b5a94cd9423dd2b9f3f60a2a745a924
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-01-26 12:45:55 +00:00
Christian Stenger
4e81360e4a AutoTest: Simplify code for (de)selecting all items
Checkstate handling has been redone, which allows to simplify
these actions.

Change-Id: Ice89d2e9a1d8c3e38520ff2519d06fc4e6d67df9
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-01-26 11:43:44 +00:00
Christian Stenger
f3c8ab52fa AutoTest: Avoid unnecessary local object
Change-Id: I9794a35ce5f983114769f3a14ab970f4e822471f
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-01-26 11:43:35 +00:00
Christian Stenger
30000c80af AutoTest: Ensure removal of empty items if possible
Change-Id: I2cac91e56e8f22f89f88bbc82cc5f7b526500529
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-01-26 11:43:24 +00:00
Ulf Hermann
13ba063696 QmlProfiler: Fix translations and tests for statistics view
The statistics view is not called "events" anymore.

Task-number: QTCREATORBUG-19658
Change-Id: Iff4375d3dc0cf5d82d118244698887818f924c07
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2018-01-26 11:26:48 +00:00
Nikolai Kosjar
fa501caa76 Clang: Handle cancelled future in ClangHoverHandler
This completes

  Clang: Cancel tooltip future on backend restart
  commit 56157f739d

Task-number: QTCREATORBUG-19644
Change-Id: I4a27681368df912003a415cec809c578f7c409cd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-01-26 11:18:17 +00:00
hjk
3c91777e48 Core: Detach status bar handling from global object pool
Instead of relying on addObject notification, provide a
StatusBarManager::addStatusBarWidget() method to create,
register and keep track of an IContext object.

That's essentially what was StatusBarWidget before, but does
not need to be known on the user side. For removal, this
provides a StatusBarManager::destroyStatusBarWidget(),
any not explicitly removed items are handled in response
to ICore::coreAboutToClose()

The StatusBarManager class is fully static now, could
be a namespace.

Change-Id: Ia2bd13b391c3f68c8dfd584b53524a9649cc0787
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-01-26 10:20:38 +00:00
Marco Benelli
1442919823 qmljs: correct error level for M127
Lint message M127 (Expression statements should be assignments, calls
or delete expression only) is a warning and not an error.

Task-number: QTCREATORBUG-19534
Change-Id: Iff93cd77582c28f4160fe7a8dec42f19c22436cb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-01-26 10:03:20 +00:00
Eike Ziller
2e2b4f0998 Add changes file for 4.6
Change-Id: I5e36e735f6f721fba02d3e1fd86a98a43cfae5f5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2018-01-26 09:59:12 +00:00
Leena Miettinen
0112f4f704 Doc: Describe new file management actions in Projects sidebar view
Change-Id: I4af328d19260234d134ed07cef0b98fba155aeda
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-26 09:56:37 +00:00
Leena Miettinen
b351e49cbf Doc: Describe the bread crumbs in the Projects sidebar view
Update the screenshot.

Change-Id: Ife0e20ed2e8624e5ce2f4466427a0e1950f7e390
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-26 09:56:24 +00:00
Leena Miettinen
933408d95f Doc: Update screenshots to match changes in the new project wizard
Change-Id: I5c602dd0ad13e1b96942557a0a61f798d868e093
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-26 09:51:26 +00:00
Nikolai Kosjar
e2fcea264c Clang: Fix file names for qbs build
Change-Id: I8caf7ed2cda83a7ac6f2c6226ea80424d3bafc60
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-01-26 08:53:59 +00:00
Thomas Hartmann
848c066025 QmlDesigner: Show Fusion and Imagine style in combobox
While those only exist since Qt 5.10 I would like
to avoid Qt version checks all over the place.

Change-Id: I5750a93ef2e5bbc675ab9adcf35e356990b3059a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-01-26 07:59:59 +00:00
Thomas Hartmann
e7bc21e912 QmlDesigner: Allow adding of resources
* Allows adding of multiple files
 * Files are copied
 * Files are added to the project
 * Supported file types can be extended

Change-Id: I41d1d18c4a3fc9c6c50e0629070d9a2cbf082976
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-01-26 07:59:25 +00:00
Robert Loehning
4ebe9458c7 QmlDesigner: Fix testfile for states
Change-Id: Ib90334d6f566f0ae5d3a5f4961e23af116d34053
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-01-25 17:40:42 +00:00
Christian Kandeler
1838057c22 qbs build: Fix clang Probe
Due to the way JavaScript's split() function works, an empty string
could end up in the list of dynamic libraries, causing a warning when
building the pchmanagerbackend.

Change-Id: I5af834d4f98af379ee346556b47c57cabf8c98db
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-01-25 15:36:24 +00:00
Ivan Donchevskii
2c7823c975 Clang: forward clangbackend QDebug messages to stdout
...to see them in both qtcreator application output
and DebugView.
clangbackend is a separate process which provides
QtCreator stdout and stderr channels so we need to
have QDebug messages there in order to receive them.

Change-Id: I2edc4de1ca203b061395b0b3070e4471348eaad7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-01-25 14:12:34 +00:00
Christian Stenger
a5b82fe827 AutoTest: Fix running test cases with grouping
When gathering information for running tests we need to
take the grouping into account if enabled.
This patch amends 4eabcda3a1.

Task-number: QTCREATORBUG-17979
Change-Id: I27c17a5de8596c95f3b207530560d2a7c2cb5e99
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-01-25 14:11:07 +00:00
Leena Miettinen
78b9d642e3 Doc: Describe new locator filters, b and t
For locating bookmarks (b) and triggering menu commands (t).

Change-Id: I4c2ee705a5e87a86a44bdeb8e2c9ca04cefff112
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-01-25 12:58:56 +00:00
Christian Stenger
5ef822da9f AutoTest: Redo check state handling
Simplify and re-arrange to avoid wrong indirections and
unnecessary delegation.
Beside this ensure correct check states of group nodes
when adding them.

Change-Id: I24a32249d785e48c9d27111d062c2a06a17327ef
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-01-25 10:16:09 +00:00
Eike Ziller
32c938c4a0 Merge remote-tracking branch 'origin/4.6'
Change-Id: I724da8f761275865e735e7dce10c3b2b2d99fe94
2018-01-25 10:20:06 +01:00
Eike Ziller
ebede577b6 Merge "Merge remote-tracking branch 'origin/4.5' into 4.6" into 4.6 2018-01-25 09:17:24 +00:00
Eike Ziller
0df84b45e5 Merge remote-tracking branch 'origin/4.5' into 4.6
Conflicts:
	src/shared/qbs

Change-Id: Ib734825a302efe41021307d7d64eb7b453262dc4
2018-01-25 10:16:46 +01:00
Christian Stenger
3c434a7aea AutoTest: Fix handling of group nodes for gtest
GTests can be registered across several files and so it is
possible to get different test sets for the same test case
from a lot of files. Make sure to generate group nodes only
for test cases to avoid getting senseless (inner) group nodes.

Change-Id: I8c3f959e0af62ce3fb8461db0b0c82decfe6fd4f
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-01-25 09:16:33 +00:00
Eike Ziller
ba859279c3 Update qbs submodule
To HEAD of 1.10 branch.

Change-Id: I0f13ce5654b022706a95bd7c639f44353300c5bb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-01-25 08:42:23 +00:00
Christian Stenger
333d30dce5 ClangRefactoring: Fix compile with Qt5.6/gcc4.9
Change-Id: Ibea187c2216cc9f0a3c6ce53d5139b0a2c7c9065
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-01-25 07:52:40 +00:00
Nikolai Kosjar
e54c514984 Fix build with Qt 5.6 / qtcreator.qbs
Broke with:

  Introduce Q_FALLTHROUGH()
  commit f482270432

Change-Id: I4f99f9a4d8a56ab1358be53f83aa0c449cff69a8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-01-25 06:04:27 +00:00
Jochen Becher
eb9172d1a0 Modelinglib: Avoid temporary extensive copy
Change-Id: I25fb6f671cc392836b829889987c516aa722bc92
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-24 19:06:25 +00:00
Robert Loehning
e7d44054e1 Require parent for SessionNameInputDialog
...so the dialog does not appear as a separate application.

Change-Id: I4e9b76bf70f860d7decf8836f6a9885fb5748028
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-24 17:48:47 +00:00
Orgad Shaneh
561773ce2b Valgrind: Show full command-line on valgrind execution
Change-Id: I2cc5e966be44cb65f9dda5e55c38538badd78130
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-01-24 17:42:25 +00:00
hjk
5afab6f018 ProjectExplorer: Create and populate 'Kits' settings category
Kits are a central concept and structure in anything build and run
related in Creator, their organization is crucial for the functionality
of Creator and deserve to be emphasized over other, often more cosmetic
settings.

This is the first step of two, the second step would be moving
the Device (list) page also in this category, possibly after some
reorganization in the Device category.

Change-Id: I4abc89472d0575c691fc9e5051397833126e5456
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-24 16:35:39 +00:00
Adam Treat
168799f235 Fix remote target identification on QNX
The targetName on QNX is the project file path.

Change-Id: Ie87b459c6d8d7637815796b3505833d7c65b3500
Reviewed-by: Adam Treat <adam.treat@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-24 16:05:32 +00:00
Christian Kandeler
327d7a495b QbsProjectManager: Set qbs.targetPlatform rather than qbs.targetOS
This is the recommended way in qbs 1.11.

Change-Id: Id20ecdc2b8332336c92c47cf05077dbe4e54cff2
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2018-01-24 15:51:53 +00:00
Nikolai Kosjar
3c6dbd9b37 Clang: Remove unused member field
Change-Id: I73875f538dbf08dd41cc55f3686b2cf2162a59f5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-24 15:45:05 +00:00
hjk
1963122dcd Core: Cut explicit interface between MainWindow and StatusBarManager
Mechanical in preparation of 'static pattern' and avoiding the
object pool objectAdded/objectAboutToBeRemoved use

Change-Id: I1e3fc7f67c785410686d0dc7c083024e305f4abe
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-01-24 14:53:58 +00:00
Tobias Hunger
d3bed44f5f ProjectExplorer: Remove QTC_CPU override
QTC_CPU was broken in qmake and never worked there. Qbs never implemented
the override properly, so neither did it work there.

Use QSysInfo to retrieve information on CPU that Qt was built for and use
that in the hostAbi.

Change-Id: I298c15b2263c9eaf343a93037229de64e90c36ef
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-01-24 14:51:32 +00:00
Friedemann Kleint
f482270432 Introduce Q_FALLTHROUGH()
Silence g++ 7.X warnings.

Change-Id: I9d06d04b496c9ec060e13e1be6f43d8fbadb1f3b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-24 14:50:43 +00:00
Nikolai Kosjar
66488ba0b8 Clang: Remove unused functions
Change-Id: Id5bf1852b308ef84d8cfd575a60f084326729ac2
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-01-24 14:45:23 +00:00
Nikolai Kosjar
8836f2a6dc Clang: Fix crash when backend is not yet started
Due to DummyBackendSender not overriding requestToolTip() the base
implementation was called which assumed a connected backend.

To avoid this in future, derive DummyBackendSender from
ClangCodeModelServerInterface so the compiler will warn about not
overridden functions.

Task-number: QTCREATORBUG-19644
Change-Id: Ifd846cbe581092e1688719119dad5003da66d0a3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-01-24 14:23:46 +00:00
David Schulz
b500bba6af Help: call setupData after setting the collection fileData
Setting the collection file leaves the help engine in an invalid state.
It is important to invoke setupData() in order to setup the help engine
again.

Change-Id: I252d7999c113db4f584bcaf94d42c609f507c1cb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-01-24 13:40:01 +00:00