Commit Graph

4400 Commits

Author SHA1 Message Date
Robert Loehning
b2eab46164 Squish: Fixed tst_qml_editor
line change missing from 39103dee4f

Change-Id: Ie299da6b31222def53e88e82cdab2adb9f451b02
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-06-20 15:32:16 +02:00
Christian Kandeler
9e5a9110ca SSH: Implement and make use of RFC 4256.
There is now at least one Linux distribution (openSUSE 12.3) that
disables the "password" authentication method in its default
sshd_config, while others allow it, but disable "keyboard-interactive".
This patch tackles the problem as follows:
    1) Implement RFC 4256 ("keyboard-interactive") and make this method
available in the API.
    2) In addition, the API offers to try both password-based methods
one after the other, until one has succeeded or all have failed.
    3) Dialogs continue to offer just the choice between "Password" and
"Key", as to not confuse users. Internally, "Password" uses the feature
described in 2).

Task-number: QTCREATORBUG-9568
Change-Id: Ic81bd5d2dc4b1332ea1a8be938c19811c21a9087
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
2013-06-20 15:21:41 +02:00
Robert Loehning
66a1b52f98 Squish: Stabilize progressBarWait()
Change-Id: I9511317f8389963e5c98230d6885311a84c2dc25
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-06-20 14:00:53 +02:00
Robert Loehning
648403d439 Squish: Fix handleDebuggerWarnings()
Warning now shows up for MSVC builds, too.

Change-Id: I774079fd6ee0f9bf70a7f37c9920dd45e55154d0
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-06-20 13:54:04 +02:00
hjk
529c8a69b0 Debugger: Fix recent dumper autotest regression
Change-Id: Iefddda1e5781f10eb63095e2e513893bb9a3ebf6
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-06-20 12:51:37 +02:00
hjk
209bad4213 Debugger: Fix reading of \x escape sequences in strings
Change-Id: Idfe41f6c2769397d6eee3ab74de4afbb94111e25
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-06-20 12:21:47 +02:00
Christian Stenger
440725322a Tests: Allow execution from outside pluginmanager folder
Change-Id: If8d564b9fe125669aa179f2b21de8ffac16cd076
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-06-20 11:21:00 +02:00
Robert Loehning
69da367a39 Squish: Enabling WELP03 on Windows.
Change-Id: I3fb14d07b1f2b18b5486738a604a8ba9e0f89eb7
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-06-19 18:07:19 +02:00
Christian Stenger
39103dee4f Squish: Fix WELP03
Examples from Welcome Page can be used from Qt4 or Qt5 now and
Qt5 examples are chosen by default.

Change-Id: I2b94214b3fd12b56143ed3ea1026466ae7ffa0f3
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-06-19 17:07:56 +02:00
hjk
43e810759d Debugger: Re-enable a few dumper auto tests
Change-Id: I11fc41faebcd27d0d4a6ac5d06f0ce0fa3af8f29
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-06-18 16:47:46 +02:00
Christian Stenger
94987b2f5b Squish: Another snooze() for selectFromFileDialog()
Change-Id: Ibc24c27a8e69ba7eb039618ea416b2e84da6e617
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-06-18 13:13:50 +02:00
Przemyslaw Gorszkowski
68d6a762d9 C++: add support for local types
This change addes support for class, enum definition inside blocks({}) or
functions, e.g.:
void f()
{
	struct S
	{
		int bar;
	};
	S s;
	s.bar;
}

It fixes:
* code completion
* highlighting
* follow symbol
* marking
* find usages

It fixes also problem with namespace aliases inside blocks or functions.

This change can have also impact on performance(there are additional processing)

Task-number: QTCREATORBUG-166 (namespace aliases inside function/block)
Task-number: QTCREATORBUG-3620
Task-number: QTCREATORBUG-6013
Task-number: QTCREATORBUG-8020
Change-Id: Iaea6c6dfe276f1d7b2279b50bdd2e68e375d31eb
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-06-18 10:09:51 +02:00
Christian Stenger
613d3c563a Squish: Make sure self._fix is not used undefined
Change-Id: Iee34668ed77df9625fbc3b4fed13a903f2746099
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-06-17 15:27:45 +02:00
hjk
232d7ab8bc Debugger: Split manual QObject dumper test into smaller chunks
Easier to track down issues if they are more isolated...

Change-Id: I89d7e5f474c08075196f9e0f2bde471fb093c7e4
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-06-17 14:11:32 +02:00
Przemyslaw Gorszkowski
94dd4e740a C++: fix 'find usages' for templates
Fix find usages for template class(class name and template parameters)
or template function(template parameters).

Fixed:
* marking
* find usages
* follow symbol

Change-Id: I22fdbc11260cbd8ee9aafdd76aaeee0f4f49f9fd
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-06-17 11:04:47 +02:00
Nikolai Kosjar
8180f695f1 CppEditor: Check <include path>/QSomething
For the quick fix AddIncludeForUndefinedIdentifier, if no class is found
via the locator, check the "Qt include paths" for a header file with the
same name as the class name.

Task-number: QTCREATORBUG-9538
Change-Id: I13c86844c2ff653fa479dc91eb109af2a6d76fae
Reviewed-by: Lorenz Haas <lykurg@gmail.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-06-17 08:16:43 +02:00
Eike Ziller
afe1d5ee65 Merge remote-tracking branch 'origin/2.8'
Conflicts:
	src/plugins/coreplugin/documentmanager.cpp

Change-Id: I6dc025bc0f31eb694c8d9e2dd4ea5cc888ee8a94
2013-06-14 16:21:04 +02:00
Robert Loehning
3bf4850723 Squish: Added qmake to readme
tst_cmake_speedcrunch expects it

Change-Id: I4a192e47dc1007e969c0d8295044f3aa38f88d7b
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-06-13 17:21:07 +02:00
Christian Stenger
7940377312 Squish: Fix tst_basic_cpp_support
Change-Id: I4094e747e6090d119103cb554bc11ef3d3ffbfc4
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-06-12 14:18:15 +02:00
Erik Verbruggen
271c3f45a4 C++: Fix preprocessor blocked macro bug.
By lexing the first token after a macro call (meaning: the token after
the closing parenthesis (which was passed to handleFunctionLikeMacro
which in turn pushed it back into the token buffer)), a token buffer
might be popped, which unblocks the macro that generated the actual
param pack. The effect was that if this happens in the expansion of a
recursive macro (with parameters!), the preprocessor ended up in an
infinite loop.

Task-number: QTCREATORBUG-9015
Task-number: QTCREATORBUG-9447

Change-Id: I0d83c59188ec15c4a948970e9fa944a17d765475
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-06-11 16:57:07 +02:00
Nikolai Kosjar
f3186690bd CppEditor: Improve finding position for new includes
...by detecting include groups (separated by new lines, include types
and same dir prefix).

Task-number: QTCREATORBUG-9317
Change-Id: I73e80fdc715104901cb2d4f5b15b4cab5d04d305
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-06-11 15:57:10 +02:00
Robert Loehning
c2061eaae9 Squish: Updated paths to Harmattan Qt version
Paths change when updating or freshly installing the Qt SDK.

Change-Id: I18c3e5ea86be4f0ad3522cfd6e19c09b57ea56c7
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-06-11 15:42:33 +02:00
Christian Stenger
9e4fa5e29e Squish: Fix installLazySignalHandler() registration
Change-Id: I3bab865726feedc6df54ad852d4aaf5f3bc1460d
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-06-10 09:21:09 +02:00
hjk
c5f1928efe Introduce a manual test checking for available C++11 features
The plan is to use some interesting C++11 features in the
code base as soon as they are available in all compilers
we need to support.

Change-Id: I725797bdf03c64458f7f2d9b010d1cc2cdf8cdb3
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-06-07 15:49:10 +02:00
Christian Stenger
c8b478f0bd Squish: Stabilize invoking tab item widgets on Mac
Change-Id: I16a61c1215d64243238a4cfbee007a78c282eb4c
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-06-07 15:33:55 +02:00
Christian Stenger
b3dd4db044 Squish: Handle files located inside HOME or subfolders
Change-Id: I31e00cbf00e07749cf8e54732ec6cdbf623e44dd
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-06-07 13:57:46 +02:00
Peter Kümmel
84dd8dd669 gdb version string: ignore (...) content when using rubenvb's build
The often used rubenvb mingw-w64 build reports a GDB version string with
the GCC version in parentheses:
  GNU gdb (rubenvb-4.7.2-release) 7.5.50.20120920-cvs
With his patch the content within the parentheses is ignored, and is not
wrongly interpreted as GDB version.

Change-Id: I1a3c54acc81cb6d649d11ebf38dea96fc2685aa1
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-06-07 13:48:21 +02:00
Christian Stenger
a83a40d7af Squish: Added verification to selectFromCombo()
Change-Id: I694163aeb7a588618207ec4064f93658e25e1917
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-06-07 09:54:57 +02:00
Christian Stenger
322853ec69 Squish: Don't let test run into ScriptError...
...if former verification already fails.

Change-Id: I0a5d60f6a91158ed1decdedd8aa7e98ac047a44b
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-06-07 09:54:49 +02:00
hjk
49687f7167 Debugger: Fix wrong input in QByteArray dumper test
Change-Id: I9cb717a1e92b96c12e3bd7876ad40e952c7a2c20
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-06-07 09:15:40 +02:00
Erik Verbruggen
e2a727c450 C++: add semantic support for C++11 alias decls.
Task-number: QTCREATORBUG-9386

Change-Id: Ia68f3866c122ca5261dd73b2c740b47fb15744fc
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-06-06 14:10:24 +02:00
hjk
f5200167ed Debugger: Work on LLDB dumpers
54 passed, 122 failed (lldb 300.99/gcc)

Change-Id: I71e1666c542406b126214c2b9b8b56193bcbcf76
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-06-05 13:48:53 +02:00
hjk
9c5a4dff1d Debugger: Work on LLDB dumper autotests
Implement putEmptyValue, use type priorities,
introduce concept of backend specific tests.
39 pass, 136 fail...

Change-Id: I71e89259dc925f799bca413b537b65e9e689e1b8
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-06-04 17:04:29 +02:00
Oswald Buddenhagen
66802ef8bf implement simple VFS to support caching during project parsing
this tremendously speeds up loading of qt 5.1 based projects (including
qt itself) under mac os, as these look up the sdk dynamically, and use
caching to avoid doing that in every subproject.

Change-Id: I833253f81c3159056fab2ff888f293b36cc2ef56
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-06-04 15:42:13 +02:00
Erik Verbruggen
ca291fbc7b C++: fix functionAt(), moved it, and added test.
Thanks to Jesper K. Pedersen for the fix!

Change-Id: Ie49c3352e26a9632b1500596b00d559bfe932dff
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-06-04 15:24:33 +02:00
hjk
0f4cfa7e39 Debugger: Enable dumper autotest suite for LLDB
26 pass, 149 fail...

Change-Id: I243eb03fe0ddcb193ed8d45e672564f7113b662f
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-06-04 13:12:47 +02:00
Erik Verbruggen
6d544bc2ca C++: handle braced return statements in indenter.
Task-number: QTCREATORBUG-9314

Change-Id: I59c026cce02b85eeb54f4d10d5c9fb0c59bfe28a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-06-03 15:17:16 +02:00
Fawzi Mohamed
5a4cdc11cb qmljs: adding qrc support
Qmljs now keeps a cache of parsed qrc files, and can resolve "qrc:" links.

This breaks the assumption that the name that the qml files has on
the filesystem is the one that qml sees, and that contents of
directories can be found just looking at file whose path starts with the
directory path.

Currently the first file is used when multiple qrc files contain the same
path, but support for strict and weak path resolving is already there.

At the moment only qrc files for projects that call updateQmljsCodeModel
are updated.

ChangeLog: QmljsSupport: Imports using qrc links are resolved.

Task-number: QTCREATORBUG-8953
Change-Id: I695fac2692af2417d49c192c580a1c2e7b4873f4
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
2013-06-03 10:32:13 +02:00
Erik Verbruggen
f2631ad031 C++: do not strip trailing newlines in the preprocessor output.
Doing so resulted in an incorrect position for the EOF token when the
preprocessed output would be parsed. That in turn leads to incorrect
insertion positions for refactoring actions.

This is especially true when a file contains only preprocessor
directives: the EOF token would point to line 1 column 1, which is
usually not the place where code should be inserted.

Change-Id: I7d359aa7a6c04bc52c8b873fd49ad6afc3a77319
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-30 16:42:29 +02:00
Robert Loehning
e259196593 Squish: Update handleDebuggerWarnings()
Change-Id: Ifd0a9270f84abe15603cbf80ef18eb7450436c74
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-05-29 14:58:50 +02:00
Christian Stenger
7bb64a58f4 Squish: Move simpleFileName() into shared script
Change-Id: I359af17fcbc67149fab4e291142523b436a43832
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-05-29 09:16:33 +02:00
Christian Stenger
d007681b31 Squish: Improve changePermission()
Change-Id: I3ce1691afc2fad3949d216dee37b06a33e40f6f1
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-05-29 09:16:25 +02:00
Christian Stenger
867068c479 Squish: Fix tst_modify_readonly
Change-Id: I31b7624ecab6d2d03c5ec6bd36e790a222c1deaa
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-05-28 12:58:09 +02:00
Robert Loehning
3b46f64272 Squish: Updated handleDebuggerWarnings()
Change-Id: Id5129e6797b945c16ecafad92f0d00bd0edeb3cd
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-05-28 12:10:32 +02:00
Przemyslaw Gorszkowski
f93758b8e1 C++: fix used template function parameters
It was missing colorizing and follow symbol template function parameters in case of:
* returning value
* use it as qualified name

Task-number: QTCREATORBUG-6861

Change-Id: I4226199e1f296cfe5a373783ebbc633e32fc9bcd
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-05-24 14:23:14 +02:00
Orgad Shaneh
05ef32f242 Remove Nokia leftovers
Mostly internal mimetypes

Change-Id: Ia84206f1334c1f83474cbc307e848719bb98adbc
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-05-24 12:29:23 +02:00
Przemyslaw Gorszkowski
783ec18424 C++: instantiate template functions
Task-number: QTCREATORBUG-9170

Change-Id: I4cac9124558c1d4f0722192246f3fbeea61d3d7d
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-05-24 11:43:52 +02:00
Nikolai Kosjar
b4c3cef863 C++: Fix crash for nameless using declaration
Task-number: QTCREATORBUG-9323
Change-Id: I52dfe8c03da14fc08723c3878fec0f6e9150152c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-05-24 09:38:57 +02:00
Christian Stenger
5deb6644a4 Squish: Fix strange infinite waitFor()
This caused WELP02 to wait forever on one testing machine although
running fine on local and other testing machines.

Change-Id: Ie66c3197f63f6f3224993107d039b0cf4b817483
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-05-23 17:33:18 +02:00
Christian Stenger
70709f7670 Squish: Added test for session handling
Change-Id: Ie177c4f86bb09e14c26babf63127d48871c09cfb
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-05-23 17:33:10 +02:00