Commit Graph

31523 Commits

Author SHA1 Message Date
Kai Koehne
5f49e349e5 Update to changes-2.8.1 file
Change-Id: I139fe7cd9e0ab4c11222bc388c9815dc2ffe8352
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-08-23 12:04:48 +02:00
Nikolai Kosjar
54a12ebb79 C++: Fix crash in LookupContext::lookupType()
Task-number: QTCREATORBUG-10019
Change-Id: I7970c2f1ea3044e11250b8dbaf9b29ba3e7f34ef
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-08-23 11:27:09 +02:00
Orgad Shaneh
fc52103524 Locator: Simplify condition
a || (!a && b) === a || b

Change-Id: I3d3b602fa496a7d5a1f57a95ebedf30748429850
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-08-23 10:28:06 +02:00
Tobias Hunger
672fc59fd6 OutputParser: Parsers with fatal errors will now cause failure for all steps
Remove handling of parsers reporting fatal errors from the qmake based
makestep and add it to abstractprocessstep instead. This makes the
osparser work with all build systems.

Change-Id: I1044d0e6002d2157946e0342fe060991ffe37ffa
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-08-23 10:27:11 +02:00
Tobias Hunger
5a916fb695 Add a outputparser for os specific errors
The only os specific issue handled at this time is windows not wanting
to overwrite binaries that are still running. Make that message trigger
a build issue and provide a hint how to handle it.

Task-number: QTCREATORBUG-9100
Change-Id: Id0b270202b67b0b7d555392cb35b0e2ebcbc8fad
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-08-23 10:26:37 +02:00
Tobias Hunger
1367a7525c Kit: Allow renaming autodetected kits
Also allow changes to the icon while at it.

Task-number: QTCREATORBUG-9787
Change-Id: Id2abbd11f12b7e0f577655932b5b2aac4d3bba7c
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-08-23 10:19:06 +02:00
Tobias Hunger
1b4b6ed6ca Kit: Use FileName for icon path
Change-Id: Ica6cf20c4ae1c7d58386d4970e468a105a3263b3
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-08-23 10:18:55 +02:00
Andre Hartmann
a31b1ef562 Locator: Whitespace fixes.
Change-Id: I8ae3c7b28586d8248a677c9f1f365cacf0709240
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-08-23 07:34:35 +02:00
Orgad Shaneh
d87f10a920 Locator: Rename variables for consistency
Change-Id: Ifc2228b4b18a8ce6ba19390f796f1f3c05e381d4
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-08-23 06:25:07 +02:00
Robert Loehning
6ac27c9635 Squish: More output from HELP02 to investigate fails on Linux 64
Change-Id: I5bb7290970039e8629ec8aae7115c850874654c1
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-08-22 16:43:01 +02:00
Friedemann Kleint
f1583c98fe Fix capitalization of "Pastebin.Ca".
Task-number: QTCREATORBUG-9997

Change-Id: Ia68c927723b31baa8ba83cbc2115e25a28d732e1
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-08-22 16:00:04 +02:00
Fawzi Mohamed
30ff6da868 qmljs: add vector*d, quaternion, and matrix4x4 to code model
Added vector2d vector4d, quaternion and matrix4x4 to basic types
and extended completions related to them in the code model.

Task-number: QTCREATORBUG-9929
Change-Id: Iafdbdf5792f640e8eb29d866a372542ee07159a5
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2013-08-22 15:55:54 +02:00
Daniel Teske
3416ecc594 Locator: Fix locator behavior with qt5
Task-number: QTCREATORBUG-10013

Change-Id: I2bf55cfa2fe1e11bac56cced765789566b659469
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-08-22 15:55:12 +02:00
Kai Koehne
b8bd672365 Fix compiler warning about unused variable
showTaskInEditor is a static method by now.

Change-Id: I9192a6c1223fdd7933b9d02da9aa3952dc4933cd
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-08-22 15:42:46 +02:00
Robert Loehning
8f19fd60de Squish: Evolution of tst_codepasting
Change-Id: Ia234672077e71caa02b7823555003750508fa828
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-08-22 14:58:33 +02:00
Nikolai Kosjar
ba73ca095d Designer: Fix compilation with Qt4
Change-Id: Ib6e3ab705504997e24c95c20bea21b007b62deb6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-08-22 13:32:42 +02:00
Friedemann Kleint
6a561d943f Fix capitalization of "Pastebin.Com".
Task-number: QTCREATORBUG-9997

Change-Id: Ib9366aa49f4e7b83d76a05741f12afbac159013a
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-08-22 13:23:34 +02:00
Tobias Hunger
799bd4607c Snippet: Fix snippets with : in them
* Fix the parser
* Add a unit test for this

Change-Id: I202f845e12c9b6203444f3bb12d7a9229c8a2887
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-08-22 12:30:12 +02:00
Friedemann Kleint
e829b97371 Add description to pastebin.com-protocol.
The api_paste_name parameter actually is a description/title.
Introduce new PostUserNameCapability to enable user name control.

Task-number: QTCREATORBUG-9996
Change-Id: I4a40dd88b2a8844fb6f27ba01e47226e2a61a042
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-08-22 12:29:38 +02:00
Marco Bubke
7be0100298 QmlDesigner: V8 is not anymore present in 5.2
Change-Id: Ie154a02719f4706b9edc872767b137fe6f9977bc
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-08-22 12:27:07 +02:00
Nikolai Kosjar
a4337db4ab Designer: Fix "Go to slot..." for project-less "Qt Designer Form Class"es
Task-number: QTCREATORBUG-9653
Change-Id: Ia50c295ee474d08b3fb0574a4f759a8ab901876a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-08-22 12:05:02 +02:00
Nikolai Kosjar
fd9293dd0a CppTools: CppPreprocessor: Track also unresolved includes
Change-Id: Ia36e7e7142dbc030a428369ed04e76e70e8eef0b
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-08-22 11:57:27 +02:00
Orgad Shaneh
2fe1fec16b VCS: Normalize newlines on checkout
Change-Id: I211e54348751618f67f04e0795573b055ddfe98b
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-08-22 10:34:09 +02:00
Nikolai Kosjar
2555c21158 C++: Tests: Reset diagnostic messages
...otherwise they add up and subsequent tests checking for the error count will
fail:

FAIL!  : tst_AST::objc_try_statement_1() Compared values are not the same
   Actual   (diag.errorCount): 5
   Expected (0): 0
   Loc: [/home/nikolai/dev/creator/qtcreator-master/tests/auto/cplusplus/ast/tst_ast.cpp(1400)]
...

Change-Id: I8b4356331e95dceb1e99bb26e6ebf4591d70a08c
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-08-22 10:10:15 +02:00
Nikolai Kosjar
72ab719484 CppTools: Tests: Correct input data in locator test case
...in order to test more entries.

Change-Id: I990f55dd3c9c2c7d079a4fb3dcc92467bf1d1568
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-08-22 09:59:53 +02:00
Nikolai Kosjar
ef018ddd9e Locator: Case sensitivity of input affects prioritizing
So far candidates were prefix matched case sensitive which led to
an unfavorable results order.

With this patch, if the input is lower case, the prioritizing happens by
a case insensitive prefix match. Otherwise the match happens case
sensitive (just like before).

Example:

    Search for e.g. "m cppmodelmanager"
    Top result before: AbstractEditorSupport (match at parameter type)
    Top result now: CppModelManager

Change-Id: Ic27042cfe717be812a2237a3437399597c98dd74
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-08-22 09:42:22 +02:00
Takumi Asaki
541a717933 Library-Wizard: Add QGenericPlugin
Add QGenericPlugin to Library-Wizard.
And change default to this.

Change-Id: Iad21e4c66ef9a47e7ac5e437ed11af7e50d91112
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-08-22 02:05:16 +02:00
Christian Kandeler
0dab64b6cf Qbs project files: Use groups wherever applicable.
Provides better structuring of source files.

Change-Id: Ic2d0094312bb7c8da01a1f38270564407fdbefce
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-08-21 17:30:36 +02:00
Oswald Buddenhagen
417b80c544 make the android => qbs dependency optional
as qbs itself is optional

Change-Id: I1ff2d2f785ca206b379b305e783b9914081712b4
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-08-21 17:29:55 +02:00
Oswald Buddenhagen
95c943a8d6 introduce buildQbsProjectManager property
this will centralize some conditionals further down the line

Change-Id: I53b26cc29ac3fa098a583d6ac4d28924e5a1f2a3
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
2013-08-21 17:05:54 +02:00
Tobias Hunger
95859289b8 KitManager: Use static API as other singletons do
Change-Id: Ia49c6552a5aae72870687ef9c64f2642fbe24155
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-08-21 16:55:16 +02:00
Tobias Hunger
6ee2d554e1 Kit: Add static method to get icon for a path
Change-Id: Icd15e53022453be0713ee4953dd8f1f099b053de
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-08-21 16:54:34 +02:00
Fawzi Mohamed
97e199eac2 utils: adding Utils::Function to support polymorphic function wrappers
Utils::Function wraps std::function or std::tr1::function to give
polymorphic function wrappers, i.e. a way to accept function pointers
or functors as arguments as long as they have the correct signature.

Change-Id: I4032264cf6b84ef647f790c566543633b4d0653b
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-08-21 16:47:05 +02:00
Erik Verbruggen
c2d2173934 C++: Add parser support for @throw statements.
Change-Id: I366733ec821ee264f182f4d4a3cf69cdada20cfc
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-08-21 15:33:39 +02:00
Przemyslaw Gorszkowski
a32343b96e CppEditor: fix showing 'Type Hierarchy'
When we open project and do not open any file, then open 'Type Hierarchy'
(from combobox) we see "No type hierarchy available"(and this is ok). Then
if we open any file and we try to see 'Type Hierarchy'(Ctrl+Shift+T) then we
still see "No type hierarchy available"(and this is not ok).
It will also happens if we save a session with opened "Type Hierarchy".

This change fixes this. Additionally when we select something for which there
is no 'Type Hierarchy' then it displays "No type hierarchy available".

Task-number: QTCREATORBUG-9819
Change-Id: Ib6a152f481057098f3d8a4335bb2d4a31fc5e1ef
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-08-21 15:03:00 +02:00
Orgad Shaneh
7410e4bea6 Locator: Do not popup on focus in
* When a dialog initiated by the locator is closed
* When the main window loses focus

Task-number: QTCREATORBUG-9953
Change-Id: Iff923320e7f1cc9a633d3a6a9bee1fa49b41bb68
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-08-21 14:39:39 +02:00
Oswald Buddenhagen
c2e90c360b Merge remote-tracking branch 'origin/2.8'
Conflicts:
	src/plugins/cpptools/cppcompletion_test.cpp
	src/plugins/cpptools/cpptoolsplugin.h
	src/plugins/projectexplorer/customtoolchain.cpp
	src/plugins/vcsbase/command.cpp

Change-Id: Ie7b3c9e136c0748b41320227c757471259339b48
2013-08-21 14:39:18 +02:00
Przemyslaw Gorszkowski
bf69b4c444 C++: wrong tooltip behind function without args
Example code:
float fun()
{
    return 0;
}

Hovering in the area behind the function without args(but in the same line,
in above example after "float fun()") will bring up tooltip with returned
value of this function(in the above example it will be "float").

Fixed by checking this special case after gathering results for tooltip
and don't show confusing tooltip.

Task-number: QTCREATORBUG-4780
Change-Id: Iab2bacddf33a70d5ea941001a2dd317c824d9db5
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-08-21 14:27:47 +02:00
Tobias Hunger
a79d47c888 OutputParser: Simplify detection of fatal errors a bit.
Change-Id: I46f6942a8bee8a1c9711dc97db6424893dd3f276
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-08-21 11:42:36 +02:00
Tobias Hunger
b5de1fa518 Simplify code to set up output parser chain a bit
It is save to set 0 as a parser.

Change-Id: I57e9a6e2c3c4661356b5b79371946edad367888a
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-08-21 11:42:13 +02:00
Robert Loehning
01b3e1fa54 Squish: Fix __startDebugger__()
Change-Id: I1f87346ad12f4a6e749042b3c1bcabbc71bdbf7a
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-08-21 11:01:42 +02:00
Orgad Shaneh
96e97d1392 Fix compilation with Qt4
Change-Id: I537c800bb29cfcaf8e8242122a7a1fd7d89d7d7e
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-08-21 10:09:42 +02:00
Leena Miettinen
19bc8442c6 Add dist/changes-2.8.1
Change-Id: If5ca031b927a81d68abb333604cdee4fa8d09f1c
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2013-08-20 16:39:36 +02:00
Tobias Hunger
772c9f72e2 BaseQtVersion: Make sourcePath calculation available as static method
Change-Id: I7a4c4d4ad2cdf1c36d1bc3eb046725e29716bba3
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-08-20 15:07:38 +02:00
Tobias Hunger
3aa37f2e07 Android: Do not use #warning
Change-Id: I3981d60f5f38c4a738250f43336f981b844dc4a6
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-08-20 15:00:41 +02:00
Tobias Hunger
ee47b652a6 Snippets: Allow lowercase/titlecase/uppercase modifiers for variables
Use the same syntax already used in the custom wizard to denote
variables that are modified to be lower-/title-/uppercase:

 $tESt:u$ will become TEST
 $tESt:c$ will become TESt
 $tESt:l$ will become test

The snippet will be inserted without any name mangling happening.
Once the editing is done the name mangling is applied to all fields.

Change-Id: I7c1f5a1ad2bb5acf1b88b54de51bb39391c64763
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-08-20 14:49:17 +02:00
Tobias Hunger
b589336e54 Snippets: Move snippet parsing into the snippet class
* Move the code to parse snippets into the snippet class
* Allow to escape $ so that this character can be used in
  snippets
* Add unit tests for the snippet parsing

Change-Id: I134f3c0de8290e1d7fcaf808577b31f5ac8fbc63
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-08-20 14:49:09 +02:00
Nikolai Kosjar
6ac341467d Tests: Extract TestDataDir to the coreplugin
Change-Id: Ie290c07c07c13134a57f328e9ae876b2af6974db
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-08-20 14:19:08 +02:00
Nikolai Kosjar
d185849150 CppTools: Tests: Introduce basic BuiltinSymbolSearcher tests
Change-Id: I25f11e80747863f797d146980d8ee0e605acb6e5
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-08-20 14:18:45 +02:00
Przemyslaw Gorszkowski
3256b7b2ef C++: fix matching type with using from other namespace
example code:
struct S { int s; };

namespace std
{
    template <typename T>
    struct shared_ptr
    {
        T* operator->();
    };
}

namespace NS
{
    using std::shared_ptr;
}

int main()
{
    NS::shared_ptr<S> p;// for this shared_ptr
    return 0;
}

Fixes:
* find usages
* follow symbol
* highlighting
* marking

Task-number: QTCREATORBUG-7978
Change-Id: I28994c960b87ddd400e1d7b860fca6c6683bbb5a
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-08-20 14:13:19 +02:00