Commit Graph

2960 Commits

Author SHA1 Message Date
hjk
d238959a2b Debugger: Add auto test for QByteArray::Data dumper
Change-Id: I2be3fe953f497768c564e393e3f2b23b47a1fa1d
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-07-01 14:20:28 +02:00
Nikolai Kosjar
1fad00f999 CppTools: Fix snapshot in case another project is opened
When a second project was opened the snapshot was reset. That resulted
in all kinds of problems since from then on the code model effectively
was not aware of the files of the first project.

The regression was introduced by commit a0d6df7b.

Change-Id: I1ccc9de68177205b49a4ba8ead2bc8abe4592b32
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
2013-06-28 17:54:53 +02:00
Eike Ziller
c9128b7fdd Merge remote-tracking branch 'origin/2.8'
Conflicts:
	qtcreator.pri
	qtcreator.qbs

Change-Id: I1aa7506519e0f461f33921ca20ce1b51adb5783f
2013-06-27 14:24:57 +02:00
Robert Loehning
f40c50c61b Tests: Fix typo
Change-Id: If7c06cc94e3f57fbe338e3548442e1da1861c287
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-06-26 15:08:24 +02:00
Eike Ziller
e8469a2bab Merge remote-tracking branch 'origin/2.8'
Conflicts:
	src/plugins/fakevim/fakevimhandler.cpp

Change-Id: I8101f18b87859924644471817d4f1408790d5628
2013-06-25 10:14:14 +02:00
Eike Ziller
4680099aa1 Fix searching for repeated characters in files.
Searching for aaaa in aaaaaaaa would give 5 results instead of 2 in case
of non-regexp search.

Task-number: QTCREATORBUG-7883
Change-Id: I5936090b3eef5e68405201fe63d02bf0dd2469d5
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-06-25 10:03:42 +02:00
Robert Loehning
d29960ce20 Squish: Added note about HTTPS
Change-Id: I316a83ac9169b9d0e43df066936503291cb64fba
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-06-24 12:57:47 +02:00
Robert Loehning
c0272c7919 Squish: Updated used MSVC Qt versions
Change-Id: Id44c5715c48feeeec0c10a029556c25658e70e72
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-06-24 12:57:30 +02:00
Robert Loehning
89225167fb Squish: Removing now unused constant defaultQtVersion
Its use was being removed in 6078d7e028

Change-Id: Ib27d7e9a7596fc6358edc1e4a09962951d105752
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-06-21 18:01:25 +02:00
hjk
2b64cdcde9 Debugger: Fix display of some boost types with LLDB
Change-Id: Ied11317f8389963e5c98230d6885311a84c2dc25
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-06-21 13:24:55 +02:00
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