Commit Graph

52078 Commits

Author SHA1 Message Date
hjk
3b22cd3e20 Debugger: Describe the "Override server address/channel" field better
Change-Id: I2bd112d1d2f46904513fa668a17f0a07ebe26e12
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
2017-07-18 06:57:03 +00:00
David Schulz
862dd4c6bf TextEditor: Simplify annotation rectangle computation
Change-Id: Ie04f545d24696d66645c367b2c25d643c3691908
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-07-18 06:53:30 +00:00
David Schulz
a196170df9 Debugger: Fix removing items from modules model
Change-Id: Icce09b890e9a4a5cca142ee5307fd6f42bd5c839
Reviewed-by: hjk <hjk@qt.io>
2017-07-18 06:53:19 +00:00
Orgad Shaneh
eebac87be5 ProjectTree: Enable Synchronize with Editor by default
Changed by 4943510b60.

Change-Id: I359c4abd77009b22bc1a7143002563f66a3b5fd0
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-17 14:28:30 +00:00
Robert Loehning
6906ee0dbb Squish: Update menu in tst_session_handling
Change-Id: Ia9d05a89fe8e7eb6028c9f69e77fa3f7dc001168
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-17 14:12:39 +00:00
hjk
528b0918bf ProjectExplorer: Remove RunControl::bringApplicationToForeground
... and replace it by direct uses of ProcessHandle::activate().

Change-Id: I7beffba7bfbeff72a81b8699ff54a311a74ce1a3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-17 14:00:49 +00:00
hjk
d93da5f5f1 ProjectExplorer: Add and use a RunConfiguration::registerAspect<>
... to register RunConfigurationAspect creating functions.

Change-Id: I9e7a2cef0bc134ac6a7becbd0b5ecb40c26ef118
Reviewed-by: hjk <hjk@qt.io>
2017-07-17 14:00:28 +00:00
hjk
b7babda68d iOS: Remove unneeded abortDebugger call
Change-Id: Ib4a4897e61b74cfed54a77b367fcad8932a47b9f
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-07-17 13:37:41 +00:00
hjk
6c04099601 iOS: Dissolve IosRunControlFactory
Follows suite.

Change-Id: I2ef11d19d9a2d3d0f3f282a94f98a40478273fbc
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-07-17 13:37:25 +00:00
Christian Stenger
cb0a09b74b ProjectExplorer: Fix compile for older gcc/Qt5.6
Change-Id: I145f2fddb143b1e3149b4b850a7586115ac20df6
Reviewed-by: hjk <hjk@qt.io>
2017-07-17 12:44:43 +00:00
hjk
cd5ba75505 ProjectExplorer: Use a real 'finishing' phase for RunControls
Instead of a blunt delete() RunControl::initiateFinish() is triggered
by the closing of the application output instead. The rampdown process
is basically the same as stop() now, except for the other success
signal (new finished()) and the final self-destruction of the
runcontrol.

stop() itself triggers initiateStop() on all running workers in
parallel (before it was in the order of start). This gives
downstream complex worker combinations the flexibility to use any
order it wants by ignoring stop() on 'uninteresting' workers,
and centralizing rampdown e.g. in the main worker. That setup should
be rare in practice, but seems needed in some profiler cases.

Change-Id: I986a152a663754206709ed4df0d4568847afad17
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-07-17 12:28:50 +00:00
hjk
c8054d9547 ProjectExplorer: Heed RunControlFactory priorities again
This fixes the regression introduced in 5a848aa188 and uses the
feature to resolve the conflict between ClangStaticAnalyzer and Boot2Qt.

Change-Id: I6cdec8261a457c399c11a4b2078a78088d4c56d1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-07-17 12:28:31 +00:00
Eike Ziller
a7e895166f Locator: Fix pressing return when no results are available yet
In that case the first item will be activated as soon as it gets
available. That behavior got lost during the recent refactoring.

Task-number: QTCREATORBUG-18560
Change-Id: Ifda117f92f2adf23b499f50bdb4809c5e7830517
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-07-17 11:06:09 +00:00
Tim Jenssen
d5342eff77 fix property spelling
Change-Id: I00f84ec8d2c83d7f3937d2e21a24e02ba28991b3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-17 10:38:08 +00:00
Jarek Kobus
0b1eaacabb DiffEditor: fix the cancellation of diff requests
Change-Id: I36c4af4ec51473fb9da5d9f099f2251f75b2020a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-07-17 09:32:28 +00:00
Nikolai Kosjar
8309e0c56a Clang: Avoid blocking UI if references are requested and clangbackend crashes
The two cases in which the UI might be blocked are:
 * Invocation of the editor context menu
 * Rename Symbol Under Cursor

Cancel the future if the backend is restarted and on the other side,
check whether the future is cancelled.

Change-Id: If2315da1f66f15eab1531fcd8da1dff851a9a4e6
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-07-17 08:24:08 +00:00
Nikolai Kosjar
db88225b0e CppEditor: Fix invalidating diagnostics on reload
Issue was:
 1. Open some small file without any includes but with diagnostics
 2. Switch to the shell and touch the file open in Qt Creator
 3. Switch back to Qt Creator and confirm reload
  --> Ops, inline diagnostic stays invalidated/gray

This is due to a race condition. The problematic sequence is:

  1. CppEditorDocument::scheduleProcessDocument()
       // OK, because contents changed
  2. ModelManagerSupportClang::onCppDocumentReloadFinishedOnTranslationUnit(bool)
       // OK, because we listen on TextDocument::contentsChangedWithPosition.
       // Because of the fast reparse, new diagnostics are processed with
       // ClangEditorDocumentProcessor::updateCodeWarnings().
  3. CppEditorDocument::processDocument()
       // Timeout, invalidates the already up to date diagnostics

Avoid to trigger the process timer during a reload.

Change-Id: I712d6b2fd5524d5fe6866dbdbb8cbca05e4aef2c
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-07-17 07:58:33 +00:00
Nikolai Kosjar
be3e12c8af CppEditor: Avoid auto insertion of '}' in empty line
...when typing '{'.

Change-Id: Ia1d3bcd7440c96ed3c8c1479148dd74d3d291689
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-07-17 07:58:24 +00:00
Christian Kandeler
be2b3c91ae Add Q_FALLTHROUGH for Qt < 5.8
... and make use of it.
With gcc 7, the new option -Wimplicit-fallthrough is introduced and
added to the -Wextra set, triggering dozens of warnings in our sources.
Therefore, we annotate all obviously intended fall-throughs. The ones
that are still left are unclear and need to be checked by the respective
maintainer.

Change-Id: I44ead33cd42a4b41c28ee5fcb5a31db272710bbc
Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-07-17 07:51:23 +00:00
Nikolai Kosjar
c9301e80bb Clang: Hide the # button in the editor tool bar
...since this is not yet implemented and confuses users.

Change-Id: I16e41f3308607aeaf1fb4a8d38ca276781c88952
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-07-17 07:43:08 +00:00
David Schulz
635750aa11 Clang: delay text mark update
Reducing display of unwanted line annotations while typing in small
files.

Change-Id: I51864bbc3056ad792d5ee4b96f63e954dfba79dd
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-07-17 07:14:06 +00:00
hjk
892026a619 ClangStaticAnalyzer: Compile fix due to unsubmitted dependency
This patch needs to be reverted later.

Change-Id: Ia120e225ec1086eca786f668999a48e5ee19ec7e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-07-14 15:41:08 +00:00
Leena Miettinen
700fc468c7 Doc: Describe new Clang Code Model options
The controls in the Options view have been rearranged, so the
text was rearranged accordingly.

Updated and added screenshots.

Change-Id: Ideb8fbd43d7872091980fc1b17d6593ed2f356eb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-07-14 13:25:06 +00:00
hjk
ca660c796c ClangStaticAnalyzer: Fix rampdown
Stop button wasn't doing anything.

Change-Id: I84f3d5dccdbdd5a7a800ecc86c3938b01eaa0550
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-07-14 13:11:30 +00:00
Christian Kandeler
1f04804e6e Update qbs submodule
To HEAD of 1.9 branch.

Change-Id: I7995a3361ee7c15d8c9bfbe55afea878759be961
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-07-14 11:27:05 +00:00
Ivan Donchevskii
5a7a64b37d Completion: improve complete in the middle
Backport the master commit (cherry-pick).
Apply clang fix to the old code model
Do not replace the text after cursor if
the proposal does not contain it or
if proposal matches 100% the text after it

Task-number: QTCREATORBUG-18471
Change-Id: I10c90580d46d2d2c899dc1ed8fe4d7df0531691a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-07-14 10:03:48 +00:00
hjk
6a44992050 Make ApplicationLauncher report QStrings, not QByteArray
Realistically, we only have UTF-8/plain ASCII messages, and if not then
the conversion should happen when the message enters the "creator eco
system" as there's potentially information on the actual encoding
present, not at some random consumer further down the chain.

Change-Id: Ie21199b99255f5c4d28fce3da7db2fd6c3bcfb3a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-07-14 09:27:58 +00:00
Leena Miettinen
77e32885a7 Doc: Describe Qbs Install deploy step in run settings
Change-Id: I92f0644fa145cf2da756fd2e26d3b70b3b22c151
Task-number: QTCREATORBUG-17958
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-07-14 09:02:26 +00:00
Christian Kandeler
c1c0255a19 Update QML type descriptions for qbs
Change-Id: I386fcec239dabd34715129f0ed750d71dd0b568c
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2017-07-14 08:03:21 +00:00
Eike Ziller
5ac8193ec6 Merge remote-tracking branch 'origin/4.3' into 4.4
Change-Id: I0e624a7ff494985966c24c0989fe20df585f86a0
2017-07-14 09:23:21 +02:00
Leena Miettinen
626a9a9b14 Doc: Describe specifying supported OS versions for iOS apps
Change-Id: I55e73c898c4e92ba083211732964af2f0a22e78f
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2017-07-14 07:07:30 +00:00
Eike Ziller
4388b5b6cd Help: Remove unnecessary class
By using connect to a function directly.

Change-Id: Iab06810203720f26eba908293438a6d12631ea15
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2017-07-14 06:46:36 +00:00
Orgad Shaneh
5299b81a4d Debugger: Fix typo and a missing newline
Change-Id: I220e4e6c185ab74b07575260c886d4e962b75137
Reviewed-by: hjk <hjk@qt.io>
2017-07-14 06:19:55 +00:00
Orgad Shaneh
023edafe4c Debugger: Fix copy-and-pasto in qmlDebugging
Change-Id: I89af5e4cc555457d4b55cd94049175618dc059d8
Reviewed-by: hjk <hjk@qt.io>
2017-07-14 06:19:26 +00:00
Orgad Shaneh
b710f79bef Debugger: Reduce one call to runnable()
Change-Id: I8e0ce18fa65a3281fcadf9b5a8ffb4008a0cf294
Reviewed-by: hjk <hjk@qt.io>
2017-07-14 06:19:09 +00:00
Orgad Shaneh
7327bb3537 Debugger: Fix engine name in start message
Change-Id: Iaf3bf66b5347093f1898f58f140a47fbc77fada5
Reviewed-by: hjk <hjk@qt.io>
2017-07-14 06:18:54 +00:00
Orgad Shaneh
b207ef447d Debugger: Sort settings in dump
It's a hash, it has random order.

Change-Id: I6ae90b0d175a8a398f7a774deb25a8e5b5c46c62
Reviewed-by: hjk <hjk@qt.io>
2017-07-14 06:18:38 +00:00
Orgad Shaneh
365e747a11 Beautifier: Add accelerators to menu items
Change-Id: Ie94b09ed640df457235be6b8a145d953c4eca03e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-07-13 19:00:12 +00:00
Robert Loehning
52957d22b2 Fix typo in Russian translation
Task-number: QTCREATORBUG-18546
Change-Id: If4d41b590a935c3661748f26c628525f238e6a88
Reviewed-by: hjk <hjk@qt.io>
2017-07-13 17:01:04 +00:00
hjk
96a0d01196 RemoteLinux: Implement FifoGatherer::stop()
... instead of onFinished(), which is on its way out. Should be the
right think in theory and not make a difference in practice as
the code appears to be unused right now.

Change-Id: I5ef415fc0fab8902e8e31e75354a5943d99b2182
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-07-13 15:47:51 +00:00
Tobias Hunger
7b0166a6a4 Modeling: Do not crash on invalid qmodel files in a project
Task-number: QTCREATORBUG-18526
Change-Id: I2947f9227c6f96b2b576ca6e942c3f27f28116b3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
2017-07-13 14:51:21 +00:00
Nikolai Kosjar
3cd8ddc966 CppEditor: Remove invalid QTC_CHECK
For the Clang Code Model, this assert is not valid as it does not
require the semantic info.

Change-Id: Ia28253354baa531c620c1bd4dead16ef88a95f1b
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:24:35 +00:00
Nikolai Kosjar
9ddbae8987 Clang: Add patch allowing to suspend a translation unit
This will allow us to free memory.

Change-Id: I25c5c3c4473e58798ec58ffdf18ed3103dd6453c
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:24:24 +00:00
Nikolai Kosjar
dd73160424 Clang: Add patches fixing preamble generation for ifdef-guarded headers
This improves reparses for big header files significantly. The second
patch fixes invalid diagnostics associated with the new behavior.

Change-Id: I1606cff0164c69994e82c02766f955196d43953a
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:24:02 +00:00
Ivan Donchevskii
42ceae5e47 Clang: Add patch improving reparse performance on windows
Patch provides faster preamble loading by improving the handling of
diagnostics.

Change-Id: I61a79160e0272335d6d4e76478a7a35760cdf9ef
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:23:46 +00:00
Ivan Donchevskii
7acbef5a90 Clang: Add patch fixing locked files for windows
This clang patch makes llvm avoid using memory map
which makes llvm work without locking files.
Without that patch the user is sometimes unable to
save files in qt creator.

Task-number: QTCREATORBUG-15449
Change-Id: Iab77a758174d153f860edb2f419b6ab767571964
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:23:41 +00:00
Nikolai Kosjar
f2041c7881 Clang: Add patch fixing crash in completion
...with overloads.

https://bugs.llvm.org/show_bug.cgi?id=31093

Change-Id: I2f177794d8d84c91b5bc47da38a3a6c90f8d8d55
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:23:35 +00:00
Nikolai Kosjar
e88fcdbdb6 Clang: Add patch fixing crash on reparse
...in preamble serialization.

https://bugs.llvm.org/show_bug.cgi?id=20320

Change-Id: I241a04ffae7ebb1dc241bed81f2036178a86afb9
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:23:30 +00:00
Nikolai Kosjar
7865bb67d4 Clang: Update patch for leaking file descriptors
...to make it apply cleanly.

Change-Id: I512a48ecd7ce742885520a01bc6b774e244b1545
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:23:25 +00:00
Nikolai Kosjar
249b392947 Clang: Remove patch fixing mingw build
It was for llvm/clang >= 4.0, but we are still on 3.9 for now.

Change-Id: I29338b6ed90b3ac4f32021085139e6917fd5ac9e
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:23:19 +00:00