Commit Graph

50929 Commits

Author SHA1 Message Date
David Schulz
c8bb93de6b Debugger: Do not print warning for auto padding
Change-Id: I5fc1cf185fdf9d3928a68e952aeb9fd39fe87c8a
Reviewed-by: hjk <hjk@qt.io>
2016-11-23 08:26:21 +00:00
Robert Loehning
4e947e713b QmlDesigner: Add warning about expected error to testfile
Change-Id: Idb6d26f01e1a4be70fa30ec8175b6b4e509bbaf7
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2016-11-23 07:31:30 +00:00
Robert Loehning
7fb9108489 QmlDesigner: Fix ambiguous ids
Change-Id: I28b0dc2ff0fa919ca99c468c9648ab105c7e38c5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2016-11-23 07:31:20 +00:00
Thomas Hartmann
d942111ace QmlDesigner: Fix manual puppet build
The overload for the "+" operator is ambiguous.

Change-Id: Iaebd889ef2eaed6e2d4261ecbd9555a6ba73c521
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-22 16:14:04 +00:00
hjk
dc87f6a41a Documentation: Mention breakpoint enabling and disabling
Change-Id: I263ba22b8160285803fca73869851596ff81a16b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-11-22 14:14:07 +00:00
Jarek Kobus
c1b6685d50 Reuse existing controller when requesting existing diff editor
Change-Id: I01d54f0bd131b8ae7daee74533375920fa544adf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-11-22 13:36:36 +00:00
Filipe Azevedo
27d155636a Export currentPerspective() from debugger window
Change-Id: Icef2b21e86f678bdd9f10dc26197db97bba6ade9
Reviewed-by: hjk <hjk@qt.io>
2016-11-22 13:25:28 +00:00
Tim Jenssen
8a7f21195a QmlDesigner: improve resetModelSelection code
Change-Id: I09e1fb64b2d3aadcec43beae52d8440ed920c54d
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-11-22 12:33:05 +00:00
Nikolai Kosjar
2b9e9ebbfc Clang: Work around libclang not accepting not existing unsaved files
Feeding libclang with unsaved files (e.g. in-memory generated ui_*.h)
that do not exist on disk leads to regeneration of the preamble on every
parse/reparse/completion and thus renders the clang code model useless.

We could check the existence in the file system for every unsaved file
just before every parse/reparse/completion. Obviously this does not
scale (e.g. qtcreator.pro generates about 200 unsaves files) and would
also slow down the responsiveness of the completion, especially for the
dot-to-arrow correction case.

We could also set up a file system watcher. However, implementing the
"file got created" case is not trivial because QFileSystemWatcher does
not support it out of the box.

Instead, set up a custom include directory and create empty files in it
that represent the unsaved files and pass that include directory to
libclang as the last one. While this fixes the performance problems, it
also comes with at least two problems:

  * Because ui_*.h files are "relocated" to the same directory, two or
    more "foo.ui" in the same session will be problematic.

  * Because of the custom include directory, problems might arise for
    projects that include the ui_*.h as "some/relative/path/ui_foo.h"
    instead of "ui_foo.h". This should be the less common case.

Task-number: QTCREATORBUG-17245
Change-Id: I6e40e87c3ef095086eb22c972dd8c1a6459a8245
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2016-11-22 12:21:14 +00:00
Nikolai Kosjar
b4d6884c25 CppTools: Fix propagating unsaved files
On project loading ExtraCompiler objects are created that might read the
already existing ui_*.h files in the build directory. In this case,
ExtraCompiler::setContent() is called, which will emit a signal about
the modified content.

Now GeneratedCodeModelSupport is a client of this signal and it forwards
the changed contents to the clang code model. However,
GeneratedCodeModelSupport objects might be created later and miss the
initial signal emission, thus leaving the code model unaware of some
unsaved files.

Fix by notifying the code model at construction time of
GeneratedCodeModelSupport.

Change-Id: I7311867ad7f534920357801647bd2d0c82bb4edb
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-22 12:21:07 +00:00
Eike Ziller
814bf768af More change log
Change-Id: Ia14ffb94e8a5f599071ede0c9a73fdc960ad01a3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-11-22 10:50:12 +00:00
Nikolai Kosjar
ab87035ed3 QmlDesigner: Fix compilation
nodeinstanceserver.cpp: In member function 'void
    QmlDesigner::NodeInstanceServer::setupImports(const
    QVector<QmlDesigner::AddImportContainer>&)':
nodeinstanceserver.cpp:458:71: error: conversion from 'const char*' to
    'QChar' is ambiguous

Change-Id: Ifa4cb2700344aaacc17619f05249f338e9b28d0b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-22 10:01:04 +00:00
Tim Jenssen
cff0c06f0c QmlDesigner: fix import check again
Task-number: QTCREATORBUG-17303
Change-Id: I0f7a054d63234f3f368de65fd6092c494a9055d4
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-11-22 09:19:53 +00:00
Leena Miettinen
bcdbea7e42 Doc: Describe the Nim script file wizard
Change-Id: Ic8b90cd322be219d3b61e24183d3dad5688645f2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-22 09:14:19 +00:00
Orgad Shaneh
374c0774e1 QmakePM: Fix Build from context menu on subproject node
Change-Id: I80a840c1003e7ff198b8ce1cba7dec86823fedf0
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-22 09:11:24 +00:00
Leena Miettinen
bbaf4ff7e0 Doc: Update changed wizard name in docs
Change-Id: I95da91ab0cbed3068073945c6d72ea5c20ca0bb2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-22 09:09:11 +00:00
Leena Miettinen
ee0499ac57 Doc: Describe creating Google tests
Change-Id: I462a1db8095be14c444bfaba3ae1bc21f7196a3a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-22 08:58:37 +00:00
Jake Petroules
d7e0708d1a Let qmake handle asset catalog compilation on macOS
Change-Id: I9451a0cd7b15bb6c84147298a4f1fde5d67ddf4d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-11-21 22:40:53 +00:00
Thomas Hartmann
20c0c381ae QmlDesigner: Enforce Qt Quick import
Not having a QtQuick import does not make much sense and
will lead to undefined behavior.

Change-Id: I1b103b088db1bedc191b9a3dbdeb1e45c87dab85
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-21 18:06:30 +00:00
Eike Ziller
cfaf5735a8 Merge "Merge remote-tracking branch 'origin/4.1' into 4.2" into 4.2 2016-11-21 16:01:38 +00:00
Eike Ziller
0596699dbd Merge remote-tracking branch 'origin/4.1' into 4.2
Conflicts:
	src/plugins/qbsprojectmanager/defaultpropertyprovider.cpp
	src/plugins/qbsprojectmanager/qbsconstants.h

Change-Id: I3800e580faaccdc1dd08da851956ba677d33df51
2016-11-21 17:01:15 +01:00
Thomas Hartmann
c18d3cecf0 QmlDesigner: Setting the current path does not make sense
This should improve the sitation for QTCREATORBUG-17306,
but will not fix it.

Change-Id: I28da773da4f4a4e438e959d44a924ea90b1e73fb
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-21 15:57:54 +00:00
Tim Jenssen
571168f9fb QmlDesigner: fix endless loop in check import code
Change-Id: Id1255ed1fd544e0eed75aeeeb2ffb3df8f75dc84
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-11-21 15:44:33 +00:00
Tim Jenssen
bb4b0c8af8 QmlDesigner: hide tabwidget for one central widget
Change-Id: Icafd8cffec042b09993aeea40a86ddd7eb349b0b
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-11-21 15:43:51 +00:00
Jarek Kobus
2144fb5949 Move diff calculation to the separate thread
It doesn't freeze creator anymore.

Task-number: QTCREATORBUG-14255
Change-Id: I3d06ea7a848e321c6072e00a73b96e9ea9770b6a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-11-21 15:43:03 +00:00
hjk
584a8c2afe Debugger: Remove some old and unused test code
The functionality tested is used in other tested places.

Change-Id: I62883e81dab9f26ac63e1f45f039571ca1f6a32e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 13:44:20 +00:00
Friedemann Kleint
4c29f5fc8f Add support for Visual Studio 15.0 (MSVC2017)
Extend ABI by flavor and add look-up.

As with each major update, rewrite the the MSVC toolchain
autodetection.
Previously, the detection looped over the entries in "VC" registry
section and checked in the "VS" section whether a valid installation
belonged to the entry. MSVC2017 no longer has an entry in the "VC"
section.
Introduce a struct describing the installation including version
number and rewrite the loop to run over the "VS" section and retrieve
the VC path from the "VC" section only for versions <= 14.0.
Also, the various .bat files for the target architecture are
now in a single folder instead of spread around various bin/XXX
subfolders. Introduce an array of structs for the platform that
has the prefix and .bat name and uses the prefix only for
versions <= 14.0.

Task-number: QTBUG-57086
Change-Id: I947edd885c0a379f196440041c07d60cd4244d9c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-11-21 13:42:49 +00:00
hjk
e7d6f8e514 Debugger: Compile fix after previous change
Change-Id: Ie9b871a7dee7bf886474ff87306ed934c1a67b6d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 13:40:46 +00:00
hjk
286f089e55 Debugger: Fake contents of empty base classes with LLDB
A truly empty base wouldn't need content, but LLDB 3.8 reports declared
but not defined undistinguishable from empty bases. At least for the
common case of a single inheritance class we can continue dumping by
fake base class contents by fake the contents by using the whole derived
object's data.

Change-Id: I82d595b985ec1289d8abce5fccd217057d2d2d44
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 13:34:03 +00:00
hjk
6de88f7fae Debugger: Add a way to notify perspective about their activation
Change-Id: I5a6189e835aa293341f357c08f1d4b8ca4dd8326
Reviewed-by: Filipe Azevedo <filipe.azevedo@kdab.com>
Reviewed-by: hjk <hjk@qt.io>
2016-11-21 13:10:26 +00:00
David Schulz
a33b9317b8 Debugger: Exclude special types containing '<' or '>'...
... when looking for template arguments.

Change-Id: Id4500d92bd9773e09d592c2afefaad415ca92bcf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 12:48:31 +00:00
David Schulz
edf7ceb790 Debugger: Add public pointer size function
Change-Id: I5f60d1b7eca1c036a00dea92887f37687337627e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 12:48:24 +00:00
David Schulz
057c07f5b7 Debugger: Adding debug messages to the pycdbext module
Change-Id: Id06c385c999b6d9faf8005e4b8b72d64f1b07f26
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 12:48:20 +00:00
David Schulz
3943185c25 Debugger: Don't return NULL from cdb python interface
Returning a None type will result in a nicely formated traceback.
Returning Null will just result in an exception that has
to be debugged.

Change-Id: I09ff90923fe0fef25a96c3110156f706f73e8913
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 12:48:15 +00:00
David Schulz
499bd09615 Debugger: Add symbol name convenience function
Change-Id: I0a922fbc2d9c594026815d81498348106881fb4c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 12:48:10 +00:00
David Schulz
3f1a7a93bb Debugger: Use type name from symbol
Type names generated from module and type id are sometimes incorrect.

Change-Id: I4bbd4db029e7952703efe09f9beb92f703e400d9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 12:47:59 +00:00
David Schulz
1ac24ecbca Debugger: Reduce transfer of pointer ownership
Change-Id: Ia3e727e6a16b4242b2bb89c202c9a82c79480598
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 12:47:54 +00:00
David Schulz
ecb9b2f31a Debugger: Add function to cdbbridge returning the bitsize of a value
Change-Id: I51936f2dd84f451b46afe60b33352dc3c714cc83
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 12:47:50 +00:00
David Schulz
bc8cfcbc10 Debugger: Remove SymbolGroup dependency...
... by directly accessing the IDebugSymbolGroup.

Change-Id: I2d17b8cd3cec2de8192713415826fd982d693d84
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 12:47:45 +00:00
David Schulz
3f5eb780ee Debugger: Remove Unstable value lookup
Change-Id: I40f15f8d8ffa96e1e34a83ca4d02d1a65d014afa
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 12:47:41 +00:00
David Schulz
b04602396b Debugger: Detect base classes in cdbbridge
Change-Id: I6a422bd70e6a28acd390ec9d01a14331b41168c0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-11-21 12:47:22 +00:00
Thomas Hartmann
a1f4ac4277 QmlDesigner: Remove scrollbar
The images do not exist and scroll bar is not required
in the item library.

Task-number: QTCREATORBUG-17307
Change-Id: Id8f493fdcee97a611d38a8ba896af1d53ed340da
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-11-21 10:40:27 +00:00
Christian Kandeler
8cac2c58f2 Update qbs submodule
To HEAD of 1.7 branch.

Change-Id: Idf6d30689e5a0a142c812d90fc79e6dc6f6445dc
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-11-21 10:25:48 +00:00
Orgad Shaneh
6d1d1a4416 Merge remote-tracking branch 'origin/4.2'
Change-Id: I957c22020fbacb2f631220b0cdc7fa16a782798b
2016-11-21 10:25:45 +02:00
Friedemann Kleint
97c9213358 qtcreatorcdbext.pro: Fix architecture detection
Previously, the detection relied on the variable CPU which
is no longer set current versions of MSVC.

Use newly introduced variable VSCMD_ARG_TGT_ARCH (MSVC 2017) or
Platform (MSVC 2015) to detect 64bit.

Task-number: QTBUG-57086
Change-Id: Ie71b73a04af597d5b638fd08171ee9bfb3b4ccb8
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-11-21 07:29:34 +00:00
Robert Loehning
e2d142c7cf Don't crash when Help mode uses WebEngine
Task-number: QTCREATORBUG-17296
Change-Id: I8527c340e2b5af1e7f0b0d1f62ff03cd30c06ff2
Reviewed-by: Michael Brüning <michael.bruning@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-11-19 00:25:38 +00:00
Alessandro Portale
3ab464dffd QmlDesigner: Improve the "export unchecked" icon
Change-Id: I1031d21c535d4a710f1f917e13bec30fb310a8c4
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-11-18 18:37:34 +00:00
hjk
ba87a5dace Debugger: Make QFiniteStack dumper work on macOS
qfinitestack_p.h is not self-contained, #include <stdlib.h>
manually to get access to malloc().

Change-Id: I628e5e2a872d361bb7b246ec7333efb3c94dae98
Reviewed-by: hjk <hjk@qt.io>
2016-11-18 16:30:30 +00:00
hjk
fa5cd03c11 Debugger: Add libc++ std::{deque,stack} dumpers
Change-Id: Ibf95c76b89fb7673241e680c233c7514c667f261
Reviewed-by: hjk <hjk@qt.io>
2016-11-18 16:27:07 +00:00
hjk
8f12ade7bd CppEditor: Compile fix after 3b1308bb
Change-Id: I55f8f175e8cd49b455b94872770a7bd02baa7492
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2016-11-18 13:41:29 +00:00