Commit Graph

43591 Commits

Author SHA1 Message Date
Christian Kandeler
f89eab60e1 QmlJs: Add missing override modifier.
Change-Id: Ia6ac2afd84342a72e50eaaf833960a618c88bda6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-08-21 12:01:49 +00:00
Christian Kandeler
afb42ad5bf CppEditor: Add one more missing override modifier.
Overlooked in f096fbc11f.

Change-Id: Ia40de8cc8469d6679aba4dd87f647924ad886e0f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-21 12:01:28 +00:00
Orgad Shaneh
dc8dab3d01 CppEditor: Add a failing test for add include for static function
Task-number: QTCREATORBUG-14499
Change-Id: I21d4281a01028d8c4cd5462d64da6428133219a4
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-21 12:01:26 +00:00
Daniel Teske
b56b1b1fa2 QmakeProject: Use QMAKE_EXT_H to generate correct ui_h paths
So that the code model can find the right files for ui files
that haven't been build.

Change-Id: I438a3ab9806c8ff6c47e5e188228a31ffb917bdf
Task-number: QTCREATORBUG-14910
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-21 11:49:04 +00:00
Eike Ziller
4c07887318 Changes file update.
Change-Id: I04b8a69975d53e57e6b24d50305c3d52f3314ef0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-08-21 10:58:12 +00:00
Nikolai Kosjar
e0594fc9b9 C++: Fix expensive lookup for boost
With this patch, CheckSymbols takes about 200ms for processing the boost/proto
hello world example [1]. Before, it needed about 11 seconds (timer in
CheckSymbols::run). Same goes for including <boost/fusion/include/zip.hpp>.

The custom ProcessedSet object was added to support "completion for typedefs
for templates in namespaces", but apparently that's not needed anymore, as the
added test proves.

[1] http://www.boost.org/doc/libs/1_58_0/doc/html/proto/users_guide.html#boost_proto.users_guide.getting_started.hello_world

Task-numer: QTCREATORBUG-14889
Task-numer: QTCREATORBUG-14741
Change-Id: I90454e8970a9d04033d56beeb0c6d7a0d4e6cc62
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-08-21 10:25:15 +00:00
Eike Ziller
d0e510f362 Help: Remove funny restriction
There is no reason why some part of the help mode couldn't provide
help.

Change-Id: I9c28dc1dacf122e5f3828144a0e386a9f7e2b6c2
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-08-21 08:49:52 +00:00
Christian Kandeler
d011f7c677 TextEditor: Add missing override modifier.
Change-Id: I83c1ebb1b1987be73a669825e3f1bfd95318e579
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-08-21 07:50:39 +00:00
Christian Kandeler
87df7c4092 Update qbs submodule.
To HEAD of 1.4 branch.

Change-Id: I1a59fd1107dc20edac4787b43fd2284694394946
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
2015-08-21 07:11:39 +00:00
Thiago Macieira
969274a209 Fix Botan compilation with ICC
The __cpuid intrinsic takes int* pointers like MSVC above, not uint*.

botan.cpp(46265): error: argument of type "Botan::u32bit={unsigned int} *" is incompatible with parameter of type "int *"

(whoever thought that a file should have 46k lines needs to have their
brains examined)

Change-Id: I5128849c354e351ba771215b3290f3af8ba98987
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-08-20 16:35:16 +00:00
Christian Kandeler
498ad32050 Subversion: Add missing override modifiers.
Change-Id: Id9f900ca96fbf6ec3ed33d858baa953c2508c891
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-08-20 13:48:22 +00:00
Christian Kandeler
f096fbc11f CppEditor: Add missing override modifiers.
Change-Id: I88c7c6c2e344e1ecfb8b6be3814cc900eff6b0b2
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-20 12:43:16 +00:00
Christian Kandeler
7c40b41ee6 VcsBase: Add missing override modifier.
Change-Id: I15ef5783e16c0e92262e05f8dace169f879228f8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-08-20 11:30:02 +00:00
Eike Ziller
8eaaef96aa Merge remote-tracking branch 'origin/3.5'
Change-Id: I65968dd02ea6bdd15f304ae567dd0c02238e6949
2015-08-20 13:23:13 +02:00
Christian Kandeler
2f781ac280 ProjectExplorer: Add missing override modifiers.
Change-Id: I8f71a0992baead514a9c0962d5a574e75a5cb733
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-08-20 10:51:13 +00:00
Ulf Hermann
3fbf54df83 Debugger: Properly handle JavaScript null
null is an object in JavaScript. This is slightly insane, but hiding
it in the debugger view doesn't help.

Change-Id: I69fe317f28a515785720104f92306f69a2e56266
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-08-20 10:23:53 +00:00
hjk
aa4485af85 Debugger: Rework Python Debugger
The (re-)enables basic stepping, data display, frame selection etc
for Python 2 and 3. Arguments passing, jump to line etc.
don't work yet.

Change-Id: I8af03e5905092360eb268ba3081a1236b1f8577f
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-20 09:15:23 +00:00
Eike Ziller
9c27b9fd5f Windows installer: Opening a project should open new Qt Creator instance
Task-number: QTCREATORBUG-14933
Change-Id: I241430e1772637409081522cad1079f05846ecee
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-08-20 08:20:11 +00:00
Christian Kandeler
aec350dff3 CodePaster: Add missing override modifiers.
Change-Id: I94397c4b8f645b63666ff9c6c0b467d7fa44b259
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2015-08-20 08:02:27 +00:00
Christian Kandeler
0173c63853 SSH: Use "none" authentication type in case of an empty password.
The "password" type as used until now should also be okay, but does not
work with dropbear.

Task-number: QTCREATORBUG-14913
Change-Id: I2fac255acf326e509f68c9de97c3cc9f00b2a373
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-08-19 15:44:18 +00:00
Orgad Shaneh
cf277acb4f BareMetal: Refresh provider list on host change
Change-Id: Id3023a649d5d80fef71cadd53167caa22d01c2c9
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-08-19 14:02:11 +00:00
Friedemann Kleint
de3b2b6493 Limit legacy Highdpi tweaks to Qt versions < 5.6.
As of Qt 5.6, Qt will scale automatically. The font hinting
issues on non-Windows OS should also be fixed.
This silences the warning about using the legacy
QT_DEVICE_PIXEL_RATIO variable.

Change-Id: Icc78d990fae67bbd39a57fa1f5b08c592dc9e2ce
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-19 11:41:54 +00:00
Daniel Teske
d4953046c0 Fix .pro file parsing
Broke in 51ba32bccc

Change-Id: Ic8f369849288439e024709ad6d5d7cf9e650c414
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2015-08-19 11:29:09 +00:00
Anton Kreuzkamp
6d77db9e6a Add info about debuggee to params in remotelinux.
Extends RemoteLinuxAnalyzeSupport to add information about debuggee,
debuggee arguments, working directory and environment to the
AnalyzerStartParameters.

This is required when starting the project from an analyzer plugin
using remotelinux.

Change-Id: I29cbeb1b22b193a2d815924282887a980c506ca0
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-08-19 11:05:45 +00:00
Eike Ziller
78e8871207 QML/JS: Fix that warnings about editing .ui.qml files accumulated
Splitting the editor would add the warning again. Since the warning is a
document property, handle it in the document instead of the widgets.

Change-Id: Ie20377b05dee14983f7ff46ba04ed2af2b737c96
Task-number: QTCREATORBUG-14923
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2015-08-19 10:21:59 +00:00
Orgad Shaneh
53e1c84f50 ProjectExplorer: Support ABI triplet of MSYS2 (x86_64-pc-msys)
Change-Id: If041b729d621a3119d84d2978b6d9adce2e4034b
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-08-19 10:17:48 +00:00
Friedemann Kleint
1f445f8fd6 Abi::hostAbi(): Add MSVC2015.
Silence startup warning:
Unable to completely determine the host ABI (x86-windows-unknown-pe-64bit).

Change-Id: I89aae738d25d7c97f352172c98628ddd0987d6dc
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-19 10:12:59 +00:00
Ulf Hermann
cb32ffff85 QmlDebug: Check if packet protocol is still alive after flush()
An QAbstractSocket can disconnect itself on flush(), which we call
after sending any packets. This leads to the packet protocol getting
deleted and in the next iteration of the loop
QmlDebugConnectionPrivate::readyRead() we'd use a null pointer.
Prevent that by checking for null.

Change-Id: Idfdb68a10c3e4deee7b305ff3b028247809090a6
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-08-19 10:01:06 +00:00
Christian Kandeler
1593a1b9bb Valgrind: Set working directory and environment...
... for the RemoteLinux case.

Change-Id: I717b01fbed2afb7d8b0b18376c443133b156d654
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-08-19 09:28:06 +00:00
Thomas Hartmann
11fcf2842d Qml2Puppet: Use helper functions from Qt 5.6
In Qt 5.6 we do not need to access the private API directly.
QmlPrivateGate is forwarded to the helper functions in Qt.

Change-Id: I274cb306815824c988b6d79966f007298f6d1e60
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-08-19 08:16:25 +00:00
Daniel Teske
51ba32bccc QmakeProject: Show project hierarchy of .pri files
For a reason that seems lost in time, all .pri files that are
(directly or indirectly) included in a .pro file are listed
in a flat list.

Change that to properly show a tree.

For example a.pro including b.pri, which includes c.pri is
now shown like this:
a.pro
|-> b.pri
    |-> c.pri

Task-number: QTCREATORBUG-487
Change-Id: I1bc29a512fb27e6fe9b399738f2a37f2a95ce10f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-08-18 13:32:45 +00:00
Robert Loehning
f1b9f56c69 CppEditor: Fix whitespace
Change-Id: I5b1f9268e2bc37344fba2ffec6098ae787cb327f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
v3.5.0
2015-08-18 10:02:51 +00:00
Christian Kandeler
9d6a291d5c Sqlite: Add missing includes.
Change-Id: I5f458f297c8bb1b4cd33655ffe30129c04f6b562
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-18 09:56:06 +00:00
Nikolai Kosjar
45778539d8 CppEditor: Fix crash with invalid switch/case statement
Task-number: QTCREATORBUG-14925
Change-Id: Iea2cf17070d9db48924e76f6c7febca0d52e4686
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-08-18 09:44:40 +00:00
Orgad Shaneh
9aa58ab26e QmakePM: Remove unused private function
Change-Id: I2b7c0eda487495151616bf91211effd92c078a40
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-08-18 09:44:21 +00:00
Orgad Shaneh
bf6e9f0550 Fix tests build with GCC 5
Change-Id: Ia2e0a1c69f73446b45915559294e3348e725ce56
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-08-18 07:46:22 +00:00
Thiago Macieira
abec43e7d3 Remove unused function
Found by ICC
builtinindexingsupport.cpp(96): warning #177: function "<unnamed>::WriteTaskFileForDiagnostics::processedDiagnostics" was declared but never referenced

Change-Id: I7de033f80b0e4431b7f1ffff13fa7bd62338aa50
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-17 16:26:24 +00:00
Thiago Macieira
25c6ea9ce7 Fix change-of-sign warning with ICC
src/libs/3rdparty/cplusplus/Lexer.cpp(88): warning #68: integer conversion resulted in a change of sign

Change-Id: I7de033f80b0e4431b7f1ffff13fa771758c95611
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-17 16:26:10 +00:00
Thiago Macieira
5113713128 Remove unused function
Found by ICC
qmljsreformatter.cpp(410): warning #177: function "<unnamed>::Rewriter::firstOnLine" was declared but never referenced

Change-Id: I7de033f80b0e4431b7f1ffff13fa77233116f0cb
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-17 16:25:58 +00:00
Ulf Hermann
5f90990c30 Tell the QML debug server exactly what services we expect
The services need to be loaded before the first QML engine is created.
The first QML engine may be created before a client connects. When the
JavaScript debug service is loaded the engine is put into interpreter
mode as we don't support debugging in JIT mode. Profiling, however
should be done in JIT mode, whenever possible.

Thus, in order to avoid the loading of unnecessary plugins and to get
better results from the QML profiler we tell the debug server which
services we expect, even before the client connects. Qt 5.6 will support
additional command line arguments to specify the services and this
change uses them.

Change-Id: I6dcee016c39995e9adada6eaf0e39d8299c9b7e7
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-08-17 15:13:56 +00:00
Christian Kandeler
be31022276 Ios: Add missing "override" modifiers.
Change-Id: I9d57222f86af8ecbdc0d6d7969c14da523a198be
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-17 14:08:37 +00:00
hjk
169a224ec7 Debugger: Use "unused" variables in autotests
Change-Id: I89872cd7792aed5e23331af4ae683dffa3c1291d
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-08-17 13:51:22 +00:00
Christian Kandeler
2cf01ae446 Debugger: Add "override" modifier.
Fixes an enormous amount of clang warnings.
Also remove the "virtual" keyword from these functions, as per our
coding style.

Change-Id: I4c8a75504e20d8fe827304a9fe362e9b64847b8a
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-08-17 13:35:00 +00:00
Eike Ziller
d8662f7a5a Windows: Fix that installer does not propose a start menu folder
Change-Id: If1eeb38d2a023d5eb9b69ff85fefb992480c20f4
Task-number: QTCREATORBUG-14857
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
2015-08-17 13:28:48 +00:00
David Schulz
537eb2f159 Cdbext: Do not sort container children.
They are already sorted in an intended order.

Task-number: QTCREATORBUG-14872
Change-Id: If28d41eb220cb875fa5ef25f0fab075329900bff
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2015-08-17 12:16:06 +00:00
hjk
4f50aa74d6 Debugger: Fix use of remote Linux startup with Step Into/Step Over
Starting with F11 and F10 should start with break on main. To know
about the breakpoint, the RunMode parameter needs to be passed.

Change-Id: I3219ee60f187f824476a1a8651e56334da021069
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-08-17 11:23:43 +00:00
hjk
e6b2426b89 Debugger: Prevent editing of elided items in Locals view
For a long string, only the parts needed to fill the Value column is
retrieved. Trying to edit (double click on Value entry) this resulted
in truncation of the string.

Change-Id: I1e993bfe52cee933bd32c866448eedc788807bd3
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-08-17 11:15:01 +00:00
Nikolai Kosjar
2bc96c7621 Clang: Fix threading issue with QRegExp
exactMatch() is declared const, but is actually not. Replace with
QRegularExpression.

Change-Id: Ib9d9c091de1cd81d81671c19a76cada8777ff287
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-08-17 08:19:59 +00:00
hjk
b5dcc86504 Debugger: Fix use of bare metal startup with Step Into/Step Over
Starting with F11 and F10 should start with break on main. To know
about the breakpoint, the RunMode parameter needs to be passed.

Change-Id: I0afe9aeb51bccf24aa85d852f5f39f39d9c14db9
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-17 07:00:13 +00:00
hjk
63d182f052 Debugger: Fix retrieval of Locals Views subitems in QML debugger
Previously, only the first level of properties was expanded,
properties of object type could not be expanded further.

This can be reproduced by opening the SameGame example,
putting and triggering a breakpoint at startNewGame(),
expanding the 'this' entry in the Locals view and checking
the 'component' subentry.

Change-Id: I6cf714af697ab4eebd7eb0ae0ea37e516b3ea635
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2015-08-14 10:30:08 +00:00