Commit Graph

54723 Commits

Author SHA1 Message Date
Orgad Shaneh
8204014007 Debugger: Fix unnamed typedef resolution
typedef enum { Value } Unnamed;
struct Foo { Unnamed u; };

int main()
{
    Foo foo;
    return 0; // Expand foo -> not accessible
}

Change-Id: I4231314ef92bb1896d287ae5eb3200d4d53cf4db
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-05-30 05:48:48 +00:00
David Schulz
118faf1180 Debugger: Fix warnings for inappropriate debuggers
Change-Id: If463c18d1d04cdd78b6be34e98b76c8df89594f2
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-05-30 05:35:25 +00:00
David Schulz
daac41338e TextEditor: Simplify TextMarkRegistry
The registry is an implementation detail and doesn't need to be exported
so move it to the textmark.cpp file.

Change-Id: Ic103b122cb20063fa4bc220bdc90cecff27054aa
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-05-30 05:01:16 +00:00
Jake Petroules
3158c125c1 Recognize mips64 toolchains from the Android NDK
Adapt a couple mips64-related tests at the same time.

Change-Id: I9313419cfe561c7e949f343d2008f7b370ad2b39
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-29 23:17:56 +00:00
Jochen Becher
c3579c9dae Modeling: Fix component model built from container nodes
Change-Id: I28f3335b7a5d95a1c587d1f80cb250c1ddd966de
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-29 18:59:21 +00:00
Jochen Becher
89a6ec4db3 Modeling: Add project management page to wizard
Change-Id: Ia70d397b7e9489eab35264624aa78ee63be99ca8
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-29 18:59:05 +00:00
Eike Ziller
152c6d6c70 Add changes file for 4.3.1
Change-Id: Ie98600d794c179285f93f23fbe82605d6a5f0512
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-05-29 12:47:16 +00:00
Eike Ziller
d2312f749d Locator: Remove years old compatibility settings reading
Change-Id: I583e0f36443887432cf61940aceefe3cadf50318
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-29 12:47:00 +00:00
Vikas Pachdha
1c54b84855 Fix crash when using Valgrind for iOS & Android
Task-number: QTCREATORBUG-18254
Change-Id: I49a20edafa1d241c83a301ce9652a6fb839bed93
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-05-29 12:32:03 +00:00
David Schulz
a26149e386 WinRT: Initialize WinRtRunnerHelper member
Change-Id: I811a47389ec22c3a57dafebf8e706b0c8880f2f5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-05-29 11:42:56 +00:00
Orgad Shaneh
b8d9a6d127 VCS: Fix wrapping when settings are changed while the editor is open
Change-Id: I41a138f1e0838be833edac1b63e64a1d86575db4
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-29 11:03:16 +00:00
Orgad Shaneh
1e1253b5a7 ProjectExplorer: Fix language for previously auto-detected toolchains
Change-Id: I02138a07d45a2169b9d667a56fc88e3f11db942a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-29 11:03:03 +00:00
Orgad Shaneh
2584c4e180 Git: Improve branch listing in Show
* Separate local and remote branches
* List branches for each remote in a separate line
* List up to 12 branches per group
* Elide in the middle, list first and last branches in each group

Task-number: QTCREATORBUG-16949
Change-Id: If293cbd2536921261d9f420c71c2b68c8cb5bfe2
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-29 10:38:59 +00:00
Orgad Shaneh
d3e4ef5868 QMakePM: Fix crash when running qmake before the project is parsed
Disable the build actions properly.

Change-Id: Id4e2906b1891fcb3387e23cb0e0a8c1f119d2426
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-29 10:38:16 +00:00
Orgad Shaneh
37b415379d Dumper: Introduce Value.__sub__
Change-Id: I27bf57e614630ac7b5bedb7f07e487676443f513
Reviewed-by: hjk <hjk@qt.io>
2017-05-29 10:37:37 +00:00
Robert Loehning
60eb763979 Debugger: Check return of readNextStartElement()
..instead of ignoring it and then querying the same value right after.

Change-Id: I33b27a09857048a7f5088990d47d2e2ee4deb669
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-05-29 10:28:31 +00:00
Oliver Wolff
a24d92dc09 MsvcToolChain: Add missing winrt flavors for msvc 2017
Task-number: QTCREATORBUG-18288
Change-Id: Ic5f1e56ec0869c62b34ef79ffe07329a4b5d05c2
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-05-29 09:59:06 +00:00
Orgad Shaneh
46b201a613 Debugger: Fix startup when FreePortsSpec is an empty string
Change-Id: Iba961572fb60f6e47c143d4947c8ca2ac844c2db
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-05-29 09:08:47 +00:00
Eike Ziller
a834c5104d Fix check if example location is writable on Windows
The normal permission check done by QFileInfo is not sufficient in many
cases.

Task-number: QTCREATORBUG-18184
Change-Id: Icab92c592e6d3c8610304e0b987eded6142f4ab3
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-29 07:34:47 +00:00
Eike Ziller
4b3c0ffc03 Clang: Fix highlighting of operators (==, <<, ..)
Handle all enum values that can be reported for clang highlighting
marks.

Change-Id: I07eec789902f36d70fa15f26cad0b151e2adff6e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-05-29 07:26:19 +00:00
Orgad Shaneh
2307e4d2cc Git: Prevent * in branch/remote names
Change-Id: I8934352359710e1890a04310c22086f80dd4a7cd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-05-29 07:19:20 +00:00
hjk
74a96bd0a6 ProjectExplorer: Fix debugger shut down
Change-Id: Ic74470aedc6d5b9d70858e21a73df1bcdb48ac49
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-29 07:17:00 +00:00
Eike Ziller
68a89c29a4 Make functionality of applying mixin text styles available for everyone
Change-Id: I0e702be0572229ec96c71d0ae2b5395a3c2fb29e
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-29 06:54:18 +00:00
Nikolai Kosjar
6174cca5a0 Move CanonicalSymbol from CppEditor to CppTools
Needed for a follow-up change.

Change-Id: Ibb4815f3411f0d63deac8c32583178470668f67b
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-05-29 06:42:09 +00:00
Orgad Shaneh
d84a6ed411 Debugger: Fix state transition warning
*** UNEXPECTED STATE TRANSITION:  "State changed from DebuggerFinished(22) to DebuggerFinished(22) [master]"

Change-Id: Iddacafbe337b95aa441aecbaf3ebf85c08a83d81
Reviewed-by: hjk <hjk@qt.io>
2017-05-29 06:22:29 +00:00
Orgad Shaneh
b7e562d32b SyntaxHighlighter: Fix crash when typing a quote at line end
in a py file.

Change-Id: Icfed4db68e1183ab19dbaf83ab5c9b6083f88fca
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-29 06:19:16 +00:00
Robert Loehning
dabab693e9 AutoTest: Move creation of DebuggerRunTool to safe place
Change-Id: I11aeba477b741717fa65b816ee3fad3f00b9b1d0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-05-29 06:01:40 +00:00
Eike Ziller
5820fbec63 Add missing override
Change-Id: I90fbe3b51074a079f08d9cfc1aa49058fb4ce3a7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-05-26 10:02:09 +00:00
Christian Kandeler
bfd818b2b1 Update qbs submodule
To HEAD of 1.8 branch.

Change-Id: I85123e786c50198d269a55725b36c4e5e72e21b0
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-05-26 09:39:45 +00:00
Orgad Shaneh
f36ba4aedf Changelog: Fix gerrit changes
Change-Id: I8c16cbdd671accff977cfb6cbf5ef919183dd247
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-05-26 07:14:31 +00:00
Orgad Shaneh
9b9a883a9a Gerrit: Fix SSH output parsing for Gerrit 2.14
Gerrit 2.13: {..., "number":"195547", ...}
Gerrit 2.14: {..., "number":195547, ...}

Change-Id: I13f668d7b8edd012bf72bf03052da56fc99f18eb
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-05-25 18:41:35 +00:00
Eike Ziller
a52b94bbc8 Add more change log
Change-Id: Icf7168d5402f828ba30ba781383dfdf678b2473a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-05-24 16:38:16 +00:00
Alessandro Portale
dff0c9df7a Core: Add the "resourcePath" to the global macro expander
Example use case: Multiple wizard json files want to reference a shared
resource file without using fragile relative paths.

Change-Id: I2502083d4c371c25a8b66e7d5d3b4fb9d8697317
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-05-24 14:23:36 +00:00
Eike Ziller
82c71fe452 Version bump
Change-Id: Ifb7f3bf865a53b5bab06b2cd58d2a64eecbe2f21
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-05-24 11:36:34 +00:00
Orgad Shaneh
df38b384d4 ClearCase: Disable by default
* CC is a dead system.
* The test each time a file in a new directory is opened to see if it's
managed by CC is extremely slow (it invokes a process).

Change-Id: I7c578a401a4757b0701146e11da60ac9c5f27ae1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-05-24 10:53:08 +00:00
David Schulz
801824fac2 WinRT: Initialize WinRtDebugSupport member
Change-Id: I1db6afcb52e500cbd1860044e5c509378929359c
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2017-05-24 10:24:45 +00:00
Orgad Shaneh
b272bf3dc0 CMake: Remove unneeded filter
The TODO was done in 1b2fc1c815.

Change-Id: I9b1ff1aeccdaa71f7ea4d75d935dd09182e39def
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-24 08:57:36 +00:00
Orgad Shaneh
232442bc2d Git: Include decorations in Show
They got lost in 23b89f1e85.

Change-Id: I3ecbabf0886fdc66e6d7f097d48a02cff9df6cb3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-24 08:57:20 +00:00
Eike Ziller
636549888a Remove unused constant
Change-Id: I2bb57472826431ae1fcaa7e0b66301c9551050b2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-24 08:55:34 +00:00
Vikas Pachdha
5364140529 iOS: Fix crash on startup when a device is connected
In a rare but plausible scenario panel might be updated on device
connection while project is not yet loaded. The panel update will
happen again when project loading is complete.

Task-number: QTCREATORBUG-18226
Change-Id: I566e2d23adee529f0536ae644cef420c66578d54
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-05-24 08:55:26 +00:00
Orgad Shaneh
8430da3bf7 Merge remote-tracking branch 'origin/4.3' into master
Change-Id: I01ab8c85ea3372b6dce4142ddb9cf92d903ffca6
2017-05-23 23:41:40 +03:00
David Schulz
d42e867f44 TextEditor: Use default values for DisplaySettings members
Change-Id: I04a58ffd25d44e144d064fe691251ea136ed8c88
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-05-23 12:07:53 +00:00
Eike Ziller
b289dbde3c Fix style of visualized whitespace for various vcs editors
Blame, log and git rebase editors.

Task-number: QTCREATORBUG-17735
Change-Id: Ifd23ba7b6ccf3ef98d3026cdc8c17fd88c97797c
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 11:32:57 +00:00
Nikolai Kosjar
1a9808d393 Clang: Remove unused functions
Change-Id: I66e990dfce5196da48cdf158cf7e5a4050565670
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 10:52:41 +00:00
Eike Ziller
21a246ac38 Fix highlighting of C/C++ line continuation backslashes
The backslash itself is not a token, so we must make sure to only format
the trailing whitespace characters as visual whitespace, instead of
everything trailing.

Broke in a92694596e

Task-number: QTCREATORBUG-987
Change-Id: I4e9e84d29513ea317d7e3bde6c6b4c43749cb649
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 09:21:36 +00:00
Eike Ziller
a901916710 DiffEditor: Remove dead code
It updates a local variable that is not used.

Change-Id: Id7ec92108bb3a35c9177bd3429b6f69ac23a9f28
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2017-05-23 09:00:07 +00:00
Eike Ziller
d0da958f99 Fix whitespace highlighting within python comments and strings
Change-Id: Ib3c72483b42c4843efc8deb1c15eddf953c661af
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 08:50:48 +00:00
Eike Ziller
0a1376dd2c Generalize function for visualizing whitespace from CppHighligher
Move function which formats all non-whitespace with a given format, and
all whitespace in the same range with correct whitespace highlighting
(merged with the non-whitespace format), from CppHighlighter to
SyntaxHighligher.

Change-Id: I8cac306f6362e804698068a0df0292f88726264f
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 08:50:32 +00:00
Eike Ziller
db11c01df8 Clang: Fix highlighting of primitive types
libClang categorizes these as keywords, so we need to check
if a keyword is actually a primitive type, and use that.

Task-number: QTCREATORBUG-17867
Change-Id: I354bb0422505ed7732a0799d9c86d3acfdeb0785
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-05-23 08:41:42 +00:00
Eike Ziller
f51fbd68e1 SyntaxHighligher: Remove the need to specify format for spaces
It has all means to know itself.

Change-Id: I464c195c5ee47e5fc58414a280c166e4a332c588
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-05-23 08:34:53 +00:00