Commit Graph

45544 Commits

Author SHA1 Message Date
Christian Stenger
dd7a080eb1 AutoTest: Fix parsing of more complicated newRow() calls
If the name for the test row consists of more than a single string
literal we only used the first part. In turn this test data could
not get executed explicitly.

Change-Id: I442c9058e036323cf1a21c21f200fcbfcf916fd8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-04-27 04:38:11 +00:00
Christian Kandeler
a14e7db1a4 Fix valgrind with remote Linux hosts.
This reverts commit f1ccad12dc and adds the necessary code to make both
the local and the remote case work.

Task-number: QTCREATORBUG-16153
Change-Id: I233ec9d7b31ca6e076515dd03ae7400758ee0c34
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-26 15:40:35 +00:00
Christian Stenger
b688d18de4 Debugger: Avoid nullptr access
Change-Id: Iff5c48d83fa7989798f1ff34868a5b37f439a744
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-26 15:22:10 +00:00
David Schulz
abeac62191 Fix building creator with the intel compiler.
Replacing all occurrences of win32-msvc* with msvc.

Task-number: QTCREATORBUG-16118
Change-Id: I46bd54628bffb04c24bca587fd9dd7684e888f1a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-04-26 12:32:54 +00:00
Nikolai Kosjar
7b7b1823cb Clang: Avoid parse loop if libclang crashed or file vanished
Remember whether clang_parseTranslationUnit() or
clang_reparseTranslationUnit() failed the last time and do not trigger
parse/reparse again.

Also, check whether the main file exists before reparsing.

Task-number: QTCREATORBUG-16051
Task-number: QTCREATORBUG-16140
Change-Id: Ied39e66a18032854911229898573941fe2ada35b
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
2016-04-26 12:28:16 +00:00
Eike Ziller
66e9cb0a54 Xcodebuild parser: Improve performance
QRegExp is extremely ineffecient when capturing everything at the start,
but not matching the end of the expression (e.g. 200+ms when parsing for
signature change message in the relatively long xcodebuild compile
output line).
QRegularExpression is much faster with the same expression (40ms with
the same example), but just checking for "endsWith" and getting the
first part of the line manually is the fastest.

Change-Id: Id5f0378e38f0edeba24036c6e9519c8107e4a361
Task-number: QTCREATORBUG-15613
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-04-26 09:05:32 +00:00
Tobias Hunger
05ae44dc64 ToolChains: Do not auto-detect invalid toolchains
Change-Id: I79648e9b27c2b0adc2695237518badc45a8557d4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
2016-04-26 08:52:00 +00:00
Christian Kandeler
7d9222970d QbsProjectManager: Re-parse project when build system files change.
This was accidentally broken in fdc552bda6 so that only changes to the
top-level project file would trigger re-parsing.

Change-Id: Iab2d6b0d3187f5875fec916fe4dccbef08b54669
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-04-25 15:18:09 +00:00
hjk
94879fb2bf RemoteLinux: Re-enable debugging of custom executables
Task-number: QTCREATORBUG-16132
Change-Id: Ic423c0ab9d0f95eb27b185a6cdee8ad54e7f4e6c
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-25 14:53:36 +00:00
Eike Ziller
c9af410a66 iOSTool: fix breakage with startService
introduced by bb8f8b56f1

Change-Id: I6e1590bc84a139ab7e9ccfda0b160492b83750ff
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-25 14:21:40 +00:00
Eike Ziller
576dca64f7 TargetSelector: Fix position of "change kit" menu
It didn't handle high resolution button pixmaps well.

Task-number: QTCREATORBUG-16080
Change-Id: I1258c30a0fcd9916708ad348f90b06c0185a2c53
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-25 13:46:18 +00:00
Orgad Shaneh
78e105c92d Debugger: Add source path that is used in Qt 5.6.0
Change-Id: Id15091877654fc1afde926a35c7a1f376d3bba73
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-25 12:58:37 +00:00
Nikolai Kosjar
536ccc8a87 CppTools: Fix incompletely indexed project
Use case to reproduce:
 1. Open some bigger project, e.g. qtcreator.pro
 2. As soon as "Parsing C/C++ files" is reported, add a character to
    qmake's additional arguments in project mode (indexing should not be
    finished at this point).
 3. The indexing gets canceled.
 ==> ...but reindexing is not triggered.

Fix by checking whether the future was canceled.

Task-number: QTCREATORBUG-16134
Change-Id: I520c6a64a6adc1cb04cafb5e0aa56c8bf41d7b14
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-04-25 12:41:42 +00:00
Tobias Hunger
e8b538985d CMake: Do not forget "current executable" build target
Do not forget to build the current executable target when there is a change
of available build targets.

Task-number: QTCREATORBUG-16131
Change-Id: I7fb0dfcd06cdbe3d23dbd194ed27fd3825068c62
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-25 11:52:20 +00:00
Eike Ziller
728229690a UpdateInfo: Fix status of progress bar
MaintenanceTool returns with exit status != 0 in case there are no updates,
so that is no indicator of failure.

Change-Id: Ibe94cc8b5ecbd7a04be5da41112a4eda0cd84153
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-25 11:24:04 +00:00
Kai Koehne
ba75cf8b6d UpdateInfo: Fix implicit conversion to QString:
src\plugins\updateinfo\updateinfoplugin.cpp(127): error C2248: 'QString::QString': cannot access private member declared in class 'QString'

Change-Id: I4dfed40d14505fd5fae1cc87a08e1d58347f197d
Reviewed-by: Riho Pihlak <rpihlak@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-25 11:07:33 +00:00
Riho Pihlak
26ba9e62f3 UpdateInfo: Fix checking for updates
Checking for updates failed when MaintenanceTool printed out log
messages. MaintenanceTool is expected to print out only xml data. So,
parsing the output failed.

MaintenanceTool printed out warnings about SSL and Qt account.

Logging is now disabled when running MaintenanceTool.

Change-Id: Ib163dae81368c8fec7218e5961590e07c208a73e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-25 09:35:29 +00:00
Christian Stenger
8f33979403 AutoTest: Fix marking for removal by file
Was forgotten in ed6f4133e8.

Change-Id: I2cdf06b6872e1ae80a7039d0d15593af37b1c5fa
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-25 09:16:17 +00:00
Alessandro Portale
fdad4bf7b0 New file overlay icons
Change-Id: Icba67a1404b6e4604aef56def00bfe2098b8c8fe
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-25 08:07:19 +00:00
Alessandro Portale
600693af2c Debug start Icon: Use the toolbar variant
I missed to change these in
5e32183c9b

Change-Id: I54740576f8a5b99d3c588f759b2337601b1e8dd5
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-22 23:01:12 +00:00
Thomas Hartmann
bd195295d9 QmlDesigner: Fix warning
Arguments of typeid should not have side effects.

Change-Id: I197ee77e0757fcb961e62fa7bdff36e7d58da12a
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-22 14:19:19 +00:00
Nikolai Kosjar
28b6820026 Clang: Print error code on parse error
Change-Id: Idecb0e9b78cc14c603de09fc460bbf17f43bb451
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-04-22 13:30:17 +00:00
Christian Kandeler
427bb8c363 Update qbs submodule.
To HEAD of 1.5 branch.

Change-Id: I2aa0c0c4993bc6c58a0776f2bb67119c13eaae38
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-04-22 12:11:53 +00:00
Nikolai Kosjar
2aacc2bf6b Clang: Classify *.{moc,qdoc} as CXXSource
This leads to the "-x c++" arguments to libclang for these file types
and thus avoids crashes of libclang 3.6.

Task-number: QTCREATORBUG-16140
Change-Id: I6141615a1b0b7ad92d7151ad58c304eaf99fb4f3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-22 12:09:28 +00:00
Tobias Hunger
b06b80dc9b Update documentation about required cmake version
Technically this is still the same version: CMake decided to go from
2.8.x to 3.0.

Change-Id: Ia8b18dd40a87ebc7ba3169d738069d29e36ec25f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-04-22 11:59:02 +00:00
David Schulz
61e05385ba Fix creator build when icc on Windows is used.
Task-number: QTCREATORBUG-16118
Change-Id: I3061d4534b1ec88e1960ce88d5e77c4e45b4a76d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-22 09:58:32 +00:00
Nikolai Kosjar
43aef556d3 ClangStaticAnalyzer: Tests: Add simple-library
Change-Id: I4d7043fe86f003011ac799184bf7aaa2f0a48b64
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-22 09:53:34 +00:00
Leena Miettinen
bfba953b41 Doc: Symbol Server prompt was removed
Change-Id: Ib9a84e25fe3c7aa171a8e7a2f0b3759974d23e71
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-22 08:31:22 +00:00
Eike Ziller
6c2d890830 Show shortcuts in tool tips of debugger tool bar actions
These actions are supposed to behave exactly like the ones in the menu,
so use these.

Change-Id: I21b4a170839ec009d6462d033329cd6fda6b516a
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-22 08:21:25 +00:00
Christian Stenger
1f33c0f345 Debugger: Fix updating of disabled/enabled state of breakpoints
If had been triggered on the Breakpoints view everything was fine,
but triggering on the editor this did not update the Breakpoints view.

Change-Id: I7f8e672bdf0f7f00cdb11183dc5e8e0eea817884
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-22 06:18:15 +00:00
Alexandru Croitor
7158f37447 Fix reference values to be shown in debugger view.
Change-Id: Ia8e6da004ea22515fccf4292cc3ddd8c530040c2
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-22 06:08:55 +00:00
Alessandro Portale
5e32183c9b Theme: Separate run/stop/interrupt icons in menus
And for that, we also need separate theme color roles.

Change-Id: I27bf4499acb516f7f824f5e57632797653b150ec
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-21 15:57:56 +00:00
Alessandro Portale
250c77a9a3 Style: Set PM_SmallIconSize to 16x16
Avoiding scalining of icons in menus.

Change-Id: Ie855075dbc6edf09b71894bff7b0c33ba6c03517
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-21 15:11:45 +00:00
hjk
344849bdf3 Debugger: Guard DebuggerPlugin::m_currentEngine with QPointer
Change-Id: Id0bcca4ca2dba21409e37197269b8166070cf572
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-21 14:13:46 +00:00
hjk
1827688dd0 Debugger: Use symbolFile for binary validation
In remote setups this is typically a local copy of the executable.

Change-Id: I2c4e38559245e7b2cb4a609b93d80fde2b999cec
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-21 14:04:43 +00:00
Ulf Hermann
e3155cd049 ClangStaticAnalyzer: Revert to DummyRunConfiguration
This reverts part of a1dd1e4c5b. We need
the dummy run configuration in order to be able to analyze C++ library
projects.

Change-Id: I927ba1a8944a1d9b437fb46e913ea235edcd3156
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-21 13:56:51 +00:00
Alessandro Portale
862fd345fe Icons: Additionally add lower resolutions to QIcons in HighDPI mode
The lower resolution(s) are needed in setups where attached Displays
have different scale factors and Qt Creator is dragged to the lower
resolution screens.

Task-number: QTCREATORBUG-16128
Change-Id: I20a2e67e4ac5929f3cffc9d7b25e340257be0cee
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-21 13:16:44 +00:00
Christian Kandeler
cba8763f55 Debugger: Fix decision between exec-run and continue.
In the remote gdb adapter.

Change-Id: I6f0d9a8d7198aac4d79bb6643ce67428350f1920
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-21 13:14:49 +00:00
Thomas Hartmann
396538dd36 QmlDesigner: Add TreeView to item library
Change-Id: I8108202f1f8226502016d054dee64a5a5e2c5ebb
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-21 13:06:54 +00:00
Thomas Hartmann
27c00777d5 QmlDesigner: Fix assert
Trying to serialize a void start  using QVariant does assert.
Solution: Ignore properties of type void star.
This was triggered by TreeView.

Change-Id: Idca5646a472fdfce8761861f5bf889bb73300fff
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-21 13:06:49 +00:00
Leena Miettinen
8611fec716 Doc: Debugger tabs are now separate views
Update debugger screenshots.

Change-Id: Icc7d9ac0c74d137547c022ffec0792c33a2c9e63
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-21 12:20:01 +00:00
Leena Miettinen
acde4f1cdb Doc: Update info about setting CDB paths on Windows
- The path settings have been moved to a new tab
- Describe using Source Server for fetching source files
- Add screenshot.

Change-Id: I3884fbb3e0175b64956bc9cb71213d92709e130d
Task-number: QTCREATORBUG-15709
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-21 12:10:33 +00:00
hjk
b3c1da03e8 Debugger: Switch meaning of inferior.executable and a symbol file
This essentially uses inferior.executable as the actually executed
binary (formerly remoteExecutable) and a new symbolFile as
source of debug info (formerly inferior.executable).

Change-Id: Ib129fa1dd4af2446129ab42eb5ba42154e92ab20
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-04-21 11:49:40 +00:00
Christian Stenger
ca4076c839 AutoTest: Avoid accessing nullptr document
Task-number: QTCREATORBUG-16129
Change-Id: I126f278d9202c63ef731ec2f29562d73ad9eade9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-04-21 10:37:43 +00:00
Christian Stenger
b4b1c50b7a AutoTest: Cancel current parse if we start a full parse
Change-Id: I55dd45c1f39abf1540ec668dd17f878c85c06253
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-21 10:23:24 +00:00
Tobias Hunger
63eb9f7a2e QmlProject: Set environment when creating a runnable
Task-number: QTCREATORBUG-16126
Change-Id: Id7f88f38e3f9e857acfabbf57001e29115f58507
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-04-21 10:19:41 +00:00
Nikolai Kosjar
77a77b954e Clang: Do not use run configuration for determining toolchain type
Change-Id: I9d09dd800043b88925fad4873759f6c4f8638981
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-04-21 10:15:16 +00:00
Ulf Hermann
06b09cf4a9 QmlPuppet: Don't compare C string literals with ==
Change-Id: Idaafbc650849744af660e896bf875bdd43e6ae36
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-04-21 09:50:25 +00:00
Ulf Hermann
1e8ef30164 ClangStaticAnalyzer: Set run control display name
Change-Id: I90ca5c9374a1c82d9a5113c06c2e5c76719d45c7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-04-21 09:13:04 +00:00
Christian Stenger
3d28c516c6 Debugger: Avoid soft assert on close
Introduced with d432b14472.

Change-Id: Ic33d46a33efd1c09c162c6adc31526efd4fe2b9d
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-21 09:09:40 +00:00