Commit Graph

41987 Commits

Author SHA1 Message Date
Jake Petroules
aad5ca12c4 Update qbs submodule and adapt QbsProjectManager accordingly.
Change-Id: I29dc48b991fc04b599e60ae63a7f4b7978dc9f3d
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-07-31 06:42:21 +00:00
Robert Loehning
bb3b649957 Squish: Skipping tst_opencreator_qbs
qtcreator.qbs contains a syntax error
which Creator does not ignore anymore.

Change-Id: Ifddeea5b81080c1388b35f2c2378f0f2eabbd318
Task-number: QTCREATORBUG-14828
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-07-30 14:04:40 +00:00
Leena Miettinen
370f022977 Doc: managing Clang Static Analyzer suppression list
Change-Id: I5318d1e6fdcf21f1057b9faf2578c03a307c3855
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-07-30 10:48:29 +00:00
Jake Petroules
ffcb2e654e Qbs: generate correct architecture name for iOS armv7.
Task-number: QBS-839
Change-Id: I535992feb2dd4db9f30dc1458b4c6a156a26849f
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-07-30 08:57:34 +00:00
Nikolai Kosjar
7d81d2a00d Clang: Disable debug logging categories
...apparently they are enabled by default.

Change-Id: I6bda380655050c62e124de451a8aefd440cf4b91
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-07-30 08:17:54 +00:00
Thomas Hartmann
50e9ef61c5 QmlDesigner: Enforce ScrollView to be non interactive
On some platforms the style reports touch support and
ScrollViews become flickable.
This is not what user expect from a "normal desktop" application.

Task-number: QTCREATORBUG-14818
Task-number: QTCREATORBUG-14822
Change-Id: Ie15fd66667dca1c0863a29e87ff76583d9aa3eee
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-07-29 15:17:23 +00:00
Daniel Teske
0aee8158c2 Fix crash on closing Creator
Removing a target setup widget might lead to removing a kit,
due to some kits being temporary for importers.

A kit removal then would lead to a target removal and this would
make the code recurse into the widget cache.

Fix that by ensuring that we disconnect from the project first in
ProjectWindow::deregisterProject. And also remove the clearing of
the project window, instead simply clear the widget cache as each
project is closed.

Change-Id: I278c43ef4ba77217428c5c36f0a07d0d96cb3022
Task-number: QTCREATORBUG-14694
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-07-29 14:39:54 +00:00
Leena Miettinen
fb64ca4e87 Doc: improve docs on managing sessions
Change-Id: I6133ab51c62fc21d3fe07e4b7b3a9143a7a2d071
Task-number: QTCREATORBUG-14553
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-07-29 13:20:20 +00:00
Nikolai Kosjar
a1da7182f9 Clang: Fix memory leak on completion II
...for the following case:

  void fun1();
  void fun2();

  void g()
  {
      fu // Type 'n', wait for the widget, hit return to choose the item
  }

Once e.g. "fun1" is chosen, the completion is triggered again but the
processor (and as result the assist interface) is not freed.

The assumption was that for the AsynchronousWithThread case
IAssistProcessor::perform() would either return 0 (async completion was
started) or != 0 for an immediate proposal. It turns out there is a
third case: no proposal if the completion is not applicable, e.g.
choosing an item in the example above will retrigger completion, however
no completion makes sense for "fun1()<CURSOR>" for an idle editor.

Workaround the case with a getter/setter in IAssistProcessor. Proper
solution should (slightly?) rework the IAssistProcessor API.

Change-Id: I44dde8287998d54ded1ea07e7c39a5157cf62029
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-29 12:18:39 +00:00
Nikolai Kosjar
6bb2aa6ba1 Clang: Fix memory leak on completion
Leak happened if the user triggered the completion again, before the
results for the first completion arrived.

Side note: This is one more reason for using smart pointers to manage
code assist objects.

Change-Id: I582d364286ca47f8622383f3365ad4e5933eb2df
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-29 12:18:12 +00:00
Nikolai Kosjar
5145fc8509 TextEditor: Fix potential memory leak in code assist
Manually managing the ownership of the code assist objets gets messy. We
should use smart pointers.

Change-Id: I29fe665e52438a79c3268b74898c583bb302f1fc
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-29 12:18:03 +00:00
Leena Miettinen
f4796d0032 Doc: modifying key values in Qbs profiles
Update the screenshot to show the format
in which the key names must be entered.

Change-Id: I54187e6d456462ffd7b74f7ff424e28779b60b73
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-07-29 11:41:00 +00:00
Robert Loehning
c41565de03 QmlDesigner: Fix typo
Change-Id: I0c82f7f1083ed7282a0d246d7f131a17013b4245
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2015-07-29 11:26:44 +00:00
Thomas Hartmann
8e5221fcab QmlDesigner: Crash fix
When checking for anchors cycles anchors might be invalid.

Change-Id: I94778578dea5562ee5dad3c565c7b877c18996aa
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-07-29 11:12:05 +00:00
Nikolai Kosjar
953be3d3b2 CppEditor: Tests: Revive tests depending on loaded projects
The tests were broken since the qmake project manager switched to an
asynchronous loading.

We can't simply check if there are loaded projects because at time the
tests are executed there are not any. The user has to set some
environment variable in order to make these tests run.

Change-Id: I94778578dea5562ee5dad2c565c7b877c18996a7
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-29 08:53:45 +00:00
Nikolai Kosjar
db3dc92202 Clang: Clarify stdout/stderr prefix of backend
Change-Id: I936e75ddc26b812c4570859e6a61c2a09590ed98
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-29 08:53:37 +00:00
Nikolai Kosjar
b783bcea60 Clang: Allow to time high-level functions
...by enabling the logging rule:

    qtc.clangbackend.timers=true

Change-Id: I085c6bbebc0343b74bcb90119d1ebb80ad49518d
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-29 08:53:24 +00:00
Nikolai Kosjar
3b314e50c8 Clang: Suppress printing diagnostics by default
Triggering completion happens often on invalid code, which leads to
diagnostics from libclang. Suppress those by default, but allow to
inspect them with the logging category:

    qtc.clangbackend.verboselib=true

Change-Id: I802ae58fe1b5244f3228ee73a181ea362de20608
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-29 08:53:18 +00:00
Nikolai Kosjar
92ff267845 Clang: Remove logging category qtc.clangcodemodel.clangeditordocumentprocessor
It did not provide much value.

Change-Id: If6d3c65102eef1bba72c8da4870ddb11a47d4dba
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-29 08:53:15 +00:00
Nikolai Kosjar
b554fe4726 Clang: Fix function name in qWarning()
Change-Id: I64618eb06c8834fba0ed186ce0413d6ffc283a85
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-29 08:53:11 +00:00
Leena Miettinen
399c9d0f9b Doc: new options in Android Manifest Editor
- Activity name
- Run

Change-Id: I606a741f79d586ff1b2931f656f3e84a435710b3
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-07-29 06:55:56 +00:00
Leena Miettinen
bca0167f37 Doc: add limitation for Android SDK support
Android Studio is currently not supported.

Change-Id: I92857da61fd1b7ade2972d62b1dc236a6ac33aed
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-07-29 06:55:45 +00:00
Jake Petroules
96278326d8 Qbs: Remove unnecessary header dependency.
Change-Id: I9eb64d089c5b4f1f8c3560c87c053c80668fddc0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-07-28 20:22:45 +00:00
Orgad Shaneh
b1e0731d55 CppEditor: Add a failing test for ConvertToPointer with macro
Task-number: QTCREATORBUG-14801
Change-Id: Ie34b131de4e6f701aeac29567a09be54e2e63bd8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-07-28 19:54:36 +00:00
Christian Kandeler
dae0265d43 QbsProjectManager: Fix cases of missing "rename" and "remove" actions.
If source files were located in a separate folder from their product
(e.g. the rather common case of a subdirectory), then the "Rename"
and "Remove" actions would not be available for them in the project
tree's context menu.

Change-Id: Ieecf5372619ab3fcf275a55d7850445e3aa44a0d
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-07-28 15:40:13 +00:00
Robert Loehning
84952c5a96 Squish: Fix tst_session_handling for Qt 5.5
Change-Id: I9347656c659055472cdda42fe07348c07bc3037e
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-07-28 13:48:37 +00:00
Orgad Shaneh
129918d8ee Clang Tests: Autodetect gtest/gmock on linux
Should work at least on Arch Linux and Debian family.

Requires packages:
* Debian: google-mock, libgtest-dev
* Arch Linux: gtest, gmock (AUR)

Centos provides gmock source in gmock-devel package, but it doesn't provide
gtest source (in gtest-devel), so it must be downloaded and configured.

Change-Id: Ia507e8209848cb05743bb6f5956ce052f5558010
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-07-28 11:15:28 +00:00
Robert Loehning
c70502d691 Squish: Fix remaining WELP tests for Qt 5.5
Change-Id: Ibe0df94d833ac2a10d43884ada3c1fe3d5de0b98
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-07-28 09:39:02 +00:00
Leena Miettinen
bbb260093a Doc: supporting multiple Perforce workspaces using conf files
Change-Id: Ic75eeb597b860cc4e85b9e786bd3276c991aa7a5
Reviewed-by: Cristian Adam <cristian.adam@gmail.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-07-28 08:57:08 +00:00
Orgad Shaneh
221ab36025 Debugger: Fix expansion of anon nested types
AttributeError: 'NoneType' object has no attribute 'startswith'

Change-Id: Ieb08c33cce06ad484de856b249ab4723b01d520e
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-07-28 04:58:55 +00:00
Christian Kandeler
abaff86d40 Update qbs submodule.
To HEAD of 1.4 branch.

Change-Id: I2aeff5561e25eccf323be4106d913cc9619f5338
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-07-27 16:38:44 +00:00
Jarek Kobus
04a269316e Update Polish translations
Change-Id: I68c36b1eb838c984f7b4a5f60ff42386e6bbf1bb
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-07-27 13:44:21 +00:00
Nikolai Kosjar
b86600a587 Clang: Remove duplicated functions
Change-Id: I0758fc06843363d58faa835238a587095c9eb6de
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-27 13:19:06 +00:00
Nikolai Kosjar
91429aa752 Clang: Fix completion position for clang and proposal
* Rename some members/functions to clarify their meaning.

* Ensure that the position for the proposal widget is at start of the
  identifer, so that the filter prefix will be found correctly in the
  GenericProposalWidget. For certain cases the completion were
  calculated but the widget was never shown:

  Case 1:

    void f()
    {
        <COMPLETION_CURSOR>
    }

  Case 2:

    void f()
    {
        st<COMPLETION_CURSOR>
    }

  Case 3:

    if (true)
      <COMPLETION_CURSOR>

  Case 4:

    foo. mem<COMPLETION_CURSOR>

Change-Id: Ie79e01e8a22f8ec306136ec4ccbfffd544edd573
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-27 13:19:02 +00:00
Nikolai Kosjar
49b1d35778 Clang: Clean up ClangCompletionContextAnalyzer
Change-Id: I899cc5cffc389ef023b35825807bde469bb6d31d
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-27 13:18:58 +00:00
Nikolai Kosjar
4f7649633c Clang: Free us from specific Qt versions
More precisely, free us from specific Q_MOC_RUN/QT_NO_META_MACROS code
paths in QtCore/qobjectdefs.h.

In order to track signals and slots we provided custom definitions of
e.g. "Q_SIGNAL" by including qt5-qobjectdefs-injected.h with "-include".
We also had to ensure that those macros were not overwritten by Qt's
qobjectdefs.h, which we did by defining QT_NO_META_MACROS. However, this
came with a cost: we needed to replicate all the other macro definitions
in the Q_MOC_RUN/QT_NO_META_MACROS code path, e.g. Q_INTERFACES. This
bound us to specific versions of qobjectdefs.h and occasionally we had
to adapt (see change 4eafa2e02b).

The new approach wraps Qt's qobjectdefs.h with the help of
"include_next". In the wrapper header, we only redefine what is
necessary.

The "include_next" directive is originally a GNU extension. Clang seems
to support it unconditionally, as [1] implicitly states.

[1] http://clang.llvm.org/docs/LanguageExtensions.html#include-file-checking-macros

Change-Id: Ic1a263f94b178349cb32bfdbb074ad5e6e0761ee
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-07-27 13:12:41 +00:00
Jarek Kobus
9be93b6962 Still use 0 instead of nullptr in numerous forms of tr().
Looks like lupdate isn't prepared yet for nullptr.

Change-Id: I8341d6b11c63871b4d2240dd184228f53dcbf35c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2015-07-27 13:04:15 +00:00
Nikolai Kosjar
09b405d11e Clang: Extract some functions in LibClangOptionsBuilder
...makes the high-level function build() less noisy.

Change-Id: Ib09fba315845a604166489fd400d0be14e16fc23
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-07-27 12:26:41 +00:00
Robert Loehning
fa67536272 Squish: Fix tst_WELP01 for Qt 5.5
Change-Id: I8589b6b5a4ea9c50a49fc459532f043503786816
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-07-27 09:45:17 +00:00
Christian Kandeler
463566afbe CplusPlus: Install run-time resources also with qbs build.
Change-Id: I65741f6a74a73925df78b7f35f21f98be35f8270
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-07-24 14:51:52 +00:00
Robert Loehning
0bf8768152 Squish: Avoid float rounding issues in tst_qml_js_console
Old value fails with Qt 5.5.0.
Changing binary value 0.00110011 to 0.0011.

Task-number: QTCREATORBUG-14757
Change-Id: I6de62241089d50256cfef6f7cba61389da58b6ed
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-07-24 11:05:18 +00:00
Christian Kandeler
d489f00f64 Fix qbs build.
Commit d765cd73a2 pulled in more stuff into the diassembler.

Change-Id: I83e0907abaef84a9cebb3c63d957182707af012d
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-07-24 08:04:44 +00:00
Sergey Belyashov
007daabff5 Fix i18n problems
In the QmlEngine, a few tr() have been replaced by
QCoreApplication::translate().
In other files, Q_OBJECT has been added to the class definitions.

Change-Id: Ia0505c19934dc691cd3d67f4946293290c2fec68
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-07-23 19:19:06 +00:00
hjk
ac7f32e4c2 Debugger: Ignore async GDB notifications while extracting variables
Recent builds of GDB started to deliver *running and *stopped
notifications for expression evaluation, even unpaired at times.
Since we know that we are stopped when we start variable extraction
and we are stopped when it ends, the intermediate notifications
can be ignored.

Change-Id: I800082afb7df600ad4e6f97b534f4ea901c02d8a
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-07-23 12:59:16 +00:00
Nikolai Kosjar
8a06df6235 Clang: Clean up unittest.pro
Change-Id: Icd3f1ab0b9b9557b0bd4cdfc60130e0c8bd15609
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-07-23 11:48:32 +00:00
Nikolai Kosjar
e4748fe801 Clang: Typedef some often used types
using CodeCompletions = QVector<CodeCompletion>;
using CodeCompletionChunks = QVector<CodeCompletionChunk>;

Change-Id: Id729a43566c23dc000e44d79ccf4a49e4f235f51
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-07-23 11:48:26 +00:00
Nikolai Kosjar
5643a45a83 Clang: Fallback to global completion if function call completion fails
We can not offer proper constructor completion with libclang <= 3.6, so
fall back to normal/global completion.

Change-Id: I90bb8d981ae20ed4c228f829ad4267221b92f8a1
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-07-23 11:18:55 +00:00
Nikolai Kosjar
889237f962 Clang: Mini refactorings in ClangCompletionAssistProcessor
The renames will improve the readability of the follo-up change.

Change-Id: If1f5ae2a2798c13ce7268e436dae1b3963f01d5e
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-07-23 11:18:50 +00:00
Marco Bubke
ae5d92d618 Clang: Refactor ClangCompletionContextAnalyzer
Change-Id: Ib42ddc672da8b068591129e2e0b9652d3e07ad58
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-07-23 11:13:05 +00:00
hjk
5a791e8839 Debugger: Don't search for an attachable process without valid pid
We won't find one.

Change-Id: I65babeea22045ae5a74f346558c7297cb65945c5
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-07-23 10:12:49 +00:00