Commit Graph

46254 Commits

Author SHA1 Message Date
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
Ulf Hermann
6411612c4a ClangStaticAnalyzer: Determine target ABI from toolchain
As we don't want to run the application, we should check how it was
built in order to know the word width.

Change-Id: I3bcd86a4653a049d660a9f23f8faf823f3ed52a0
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-04-21 09:08:22 +00:00
Eike Ziller
ff238369ae Version bump
Change-Id: I87873a70a4b73130758529c4cd125ec422db7e7e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-21 07:59:26 +00:00
hjk
43b8310830 Debugger: Disable dumper for QVariants with user defined types for LLDB
The type info is not directly accessible to the debugger. The workaround
used so far generally works for initialized data, but can force loading
all debug information otherwise. The behavior is exceptionally bad
for LLDB 3.7 with GCC 5.x/C++14 due DW_TAG_base_type 'auto' encoded with
DW_ATE = 0x0, bit_size = 0 produced by GCC and not understood by LLDB.

Change-Id: I2b28b8a6aa15751c8e797bcbf501b81622680596
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-20 15:50:53 +00:00
Tobias Hunger
e0efbb1ae8 QmakeStep: Use nullptr
Change-Id: I550f529923ee0a6b768818e57d42e6eac81b2713
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-04-20 14:43:14 +00:00
Christian Stenger
d432b14472 Debugger: Avoid crash in plugin unit test
Change-Id: I38d74f4a34e14f646eaf9f24ca9dc2e14ba06050
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-20 14:39:13 +00:00
hjk
644ed0d464 Doc: Add an 'also' to the note on debugger handling of optimized builds
Change-Id: I3fd0b25097101ac41c1801992282eef959a5b0da
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-04-20 13:22:46 +00:00
Nikolai Kosjar
11836a14cf Clang: Fix SOFT ASSERT: "!m_functionName.isEmpty()"
...that ocurred for e.g. "foo (<COMPLETE HERE>".

We did not handle the following cases:
 1) white space after the function name
 2) nothing before parenthesis

Change-Id: If6aedd2cc938df30516e13a860d07d7a509633ae
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2016-04-20 13:03:32 +00:00
Eike Ziller
ee8bf341c6 Merge remote-tracking branch 'origin/4.0'
Conflicts:
	src/plugins/projectexplorer/session.cpp
	src/plugins/qmlprofiler/qmlprofilerclientmanager.cpp

Change-Id: I6946139f5e5fa3a9cdbb322fd50be248e2c0133f
2016-04-20 14:58:48 +02:00
Nikolai Kosjar
474b8ec5c0 C++: Fix expensive parsing of declarations
...which can occurr for e.g. files with a high difference of opening and
closing curly braces and many structs.

Make use of the ASTCache for parseSimpleDeclaration() and
parseMemberSpecification(). Those two were the most recurring calls for
the code provided in the bug report.

Task-number: QTCREATORBUG-16049
Change-Id: I13cc7fba2fb6c3be863690a222c8bbfeacbddc05
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2016-04-20 12:58:39 +00:00
Eike Ziller
5dc690f234 More change log
Change-Id: I23e3a81425f1cb32d02d8520a2d4804b9d6b9a04
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-04-20 12:28:45 +00:00
Robert Loehning
0eeee15a88 Use "timeout" consistently
Change-Id: Ic4e2ba6269bd61eb2fa2bbef1e1c24c05f91e6a5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-04-20 12:23:23 +00:00
Tobias Hunger
f32a1b1e4c ProjectExplorer: Add some more functions to buildsteplist
Use those functions instead of repeating code all over the place.

Change-Id: I03161663b4d5c538fb2ea667353ab7846373ad81
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-20 12:16:25 +00:00
Leena Miettinen
de7e36383f Doc: update the Transitions example
...to use the new Qt logo

Change-Id: I111d070c2ae40b71e650d78bd15d360328b474e3
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-20 11:23:48 +00:00
Ulf Hermann
385237dbbd Use Utils::Port where possible
This solves the ambiguity between 0 and -1 being the "invalid" port.

Change-Id: I3bac11dd4117bb1820fbd58186699925b73df1c5
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-20 11:06:34 +00:00
hjk
e14238650c WinRT: Remove some unneeded declaration and includes
Change-Id: I42336af016107b8576658101f6857d77c2ff2619
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-04-20 11:05:11 +00:00
Tobias Hunger
73123779aa CMake: Do not warn if there is no cmake but a generator is selected
Task-number: QTCREATORBUG-16103
Change-Id: I4fcefd8ab68b6e34ca92e0d0c6fc1a8e6ec6b70c
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-20 10:52:55 +00:00
Alessandro Portale
ac04a91820 Flat theme: Make some icon colors opaque
Transparency channel plus shadow create more artifacts than benefits.

This change removes sets the alpha to ff and changes the rgb values so,
that the icons still look exactly as before on the standard toolbar
background.

Te icons will however be better visible on other backgrounds such as
menus.

Change-Id: Idbf2c5c838bad615844ebf2eb63d104f8939b991
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-20 09:16:27 +00:00
David Schulz
4edc105da3 Editor: Check if text codec pointer is valid.
Fixes a crash when collecting codecs for opions page and a unsupported
icu is used.

Task-number: QTCREATORBUG-16114
Change-Id: I4081748f636602670e37465750862d4da4a14941
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-20 09:12:56 +00:00
hjk
769abc8509 Devices: Add some 'override'
Change-Id: I3dfc23dc5a1ea61c3fa24414f5337e156e5a6507
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-04-20 07:42:30 +00:00
hjk
47afcd1a2e Debugger/Android: Cosmetics
Remove an unnecessary check; use a Qt 5 connect.

Change-Id: I9d436f01bc02184911c6fd234fba5ce751ccf024
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-19 12:50:35 +00:00
Tobias Hunger
1de35f29eb ProjectExplorer: Add a message about Kit issues on failed builds
Task-number: QTCREATORBUG-16079
Change-Id: I2938e04a95faaabb3375cc761d3d5490dc300729
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-04-19 12:44:31 +00:00
Nikolai Kosjar
211894d348 Clang: Tests: Fix compilation with clang-3.6 using stdlib
When using stdlib (default on Linux) and compiling with "-std=c++14", errors
like the following occurr. Avoid them by not requiring c++14.

  $ clang --version
  Ubuntu clang version 3.6.0-2ubuntu1~trusty1 (tags/RELEASE_360/final) (based on LLVM 3.6.0)
  Target: x86_64-pc-linux-gnu
  Thread model: posix

  $ cat clangtest.cpp
  #include <random>

  $ clang -std=c++11 -fsyntax-only clangtest.cpp # Fine with c++11/stdlibc++
  $ clang -std=c++14 -fsyntax-only clangtest.cpp # Ops with c++14/stdlibc++
  In file included from clangtest.cpp:1:
  In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/algorithm:62:
  In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_algo.h:65:
  In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/random:39:
  /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cstdio:120:11: error: no member named 'gets' in the global namespace
    using ::gets;
          ~~^
  1 error generated.
  $ clang -std=c++14 -stdlib=libc++ -fsyntax-only clangtest.cpp # Fine with c++14/libc++

See also https://llvm.org/bugs/show_bug.cgi?id=18402.

Change-Id: I2ab3ea837b80196b51d8816ee8aa26a4a531e939
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-19 12:01:59 +00:00
Marco Benelli
22acc52d71 Qml code model: handle modules dependencies.
Fix the broken hierarchies between qml objects.

Change-Id: Id36c735cab0129af382fab7b9dd90c228304168c
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-19 11:18:21 +00:00
Tobias Hunger
94cba885bd KitInformation: Improve feedback on wrong SysRoots
Give specific warnings when the sysroot is set and
 * does not exist
 * is not a directory
 * is an empty directory

Task-number: QTCREATORBUG-16079
Change-Id: I3e7a2393e361719e75e33d7085eb1fd62c148f4d
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-19 11:06:16 +00:00
Tobias Hunger
42385146c7 CMake: Handle STATIC types in CMakeCache.txt
Read STATIC types, but never write them out to the user. They are
still useful for Creator-internal sanity checks.

Change-Id: I8a13820291378de2370761be537f78fba1e45a0f
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-19 11:05:56 +00:00
Tobias Hunger
12708d9b25 CMake: Make sure null-configuration items do not end up in output
Make sure there are no empty strings returned by null configuration
items visible in the output.

Change-Id: I467f33f41b8eeb25b6cb2b1aa3ada4dd7e1d5950
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-19 11:05:49 +00:00
Tobias Hunger
7276da8212 CMake: Reuse code to turn CMakeConfigItems into strings
Change-Id: Iecb553ce562e22daa5429cef431fe12994637f9a
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-19 11:05:46 +00:00
David Schulz
cf0e087ab1 Android: Remove useless java autocompleter.
Change-Id: Icf32ea00ba039a517dae78435efc86aae992e05a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-04-19 11:04:51 +00:00
hjk
e6eae1ffd5 Qnx: Add a few 'override'
Change-Id: I42535b86d5a51584a162315577f8b593081f2d0d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-04-19 10:44:26 +00:00
Eike Ziller
bb8f8b56f1 iOS: Better error messages for starting service and transferring app.
Change-Id: I1d5e0102c87e43594c35f997c293d5b7a2e5e81b
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-19 08:21:11 +00:00
Eike Ziller
aa4a0d8920 iOS: Qt 5.7 changed the CONFIG values for device vs simulator builds
This is a quick fix, just adding the new values. It would be nicer to
make them depend on the actual Qt version, but that seems to be a bit
more involved.

Task-number: QTCREATORBUG-16102
Change-Id: I2dbd0e76f90e7aeabb0c354fe54a6a0eb041454e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
v4.0.0-rc1
2016-04-18 15:10:05 +00:00
Tobias Hunger
00a7f3864b ProjectExplorerSettings: Do not reset options to defaults
Do not reset project explorer options that are not managed via the
options page to default values when applying changes.

This effected "Restore last saved session" only at this time.

Task-number: QTCREATORBUG-15197
Change-Id: Ie9577c14cc7e3d57093036078ae930cdb3768517
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-18 14:56:15 +00:00
Alessandro Portale
4c9a5d5088 Debugger: Fix "jumping" status label
There are two layout stretches with equal stretch factors fighting
against each other. That makes the status label which is positioned
between the stretches jump around with changing content length.

This change increases the factor of the last stretch, which causes the
label position to stay constant.

Change-Id: I4e98d8b1fd6876f707911d1e90fa90165c8c2ff1
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-18 13:47:42 +00:00
Ulf Hermann
d0de0eb0f7 Doc: Add clarification on when the select tool is usable
Task-number: QTCREATORBUG-15349
Change-Id: I24650e1b8a5a66c1aee2a552d04559b99562f830
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-04-18 13:09:56 +00:00
Nikolai Kosjar
9a35b121ee C++: Fix accessing invalid file id of Symbol
Symbol::_fileId can be null if the Symbol was created with a null
translation unit. That is the case for temporary symbols created for
lookup purposes (CreateBindings has a _control with no translation unit
and thus creates symbols with no fileId).

Task-number: QTCREATORBUG-15967
Change-Id: Iee518b39ba3b636fe1658e74179db3aad054d6f2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-04-18 12:31:37 +00:00
Alessandro Portale
65046c2003 Core: Set "Flat" as default theme
If qtcreator.ini does not have a [Core]CreatorTheme entry (user did not
manually change the theme before), "flat" will now be the
default.

Change-Id: I0351668db3dcacada14d55ce1a5be194e04190f3
Reviewed-by: Tobias Hunger <tobias.hunger@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-04-18 11:51:09 +00:00
Christian Stenger
ed6f4133e8 AutoTest: Fix marking for removal for second level items
Items that will be marked for possible removal on first level
forgot to mark their childrens which led to keeping them when
sweeping although they should get removed if they were not
found again.

Change-Id: Ib364823ee60d31370331b090c776799ca5f663bf
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-18 11:50:52 +00:00
Eike Ziller
a6aafe3c45 Add QTC_GUARD
Similar to QTC_CHECK, but has the boolean result of the condition as
value. Use it in the form

if (QTC_GUARD(condition)) { ... }

Replace some occurrences of

QTC_CHECK(condition)
if (condition) { .... }

Change-Id: I8eea02f869eb7a183dfbf4810dace48097880519
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-18 11:34:03 +00:00
Alessandro Portale
397ebcac92 Debugger: Enabled state of "Threads:" label depends on thread combobox
...and making sure that items of a disabled combobox are visibly
disabled.

This prevents users from clicking on the Threads label before debugging
even started.

Change-Id: I59cc9b7e875fe8c126a9ee4221ff9d8322e4b1a8
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-18 11:25:37 +00:00
Christian Stenger
7c0e76aee4 AutoTest: Inform user when tests did crash
If a test crashes for whatever reason one did not get any information
about this so far.
Add an explicit fatal for such cases.

Change-Id: Ica2aec4b30f38d29acfe170526f4468aa6577887
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-18 11:21:00 +00:00
hjk
bd406e3cd0 Test: Fix typo in gmock detection message
Change-Id: I8c95b5279349b92f232c26f57ade91f5b51e3b55
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-04-18 11:14:06 +00:00
Christian Stenger
104b434c8d AutoTest: Fix processing of output
In case a (Qt) test process produces output that does not belong
to the standard test output we might ended without processable
output at all.
Avoid this by just handling the output that is given on stdout
for now.

Change-Id: If5ee70140b95cb61422e58a7610b7fe2d09915c2
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-18 11:01:50 +00:00
Ulf Hermann
334017be56 Debugger: Properly clean up dock widgets
We call setParent(0) on the dock widgets, not on the actual operation
widgets. In order to find out which ones we need to delete we need to
check both the operations and the dock widgets.

Change-Id: Ia6fde9bc1737aab6b6ad5497b27e805bcd67d0ab
Task-number: QTCREATORBUG-16074
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-18 10:46:53 +00:00
hjk
ad55631cdf Debugger: Add safety net to avoid infinite lookups
Do not lookup the same item twice without intermediate stepping.

Dumpers could announce the existence of children but when asked
for them bail out or produced similar inconsistent output.
Better not depend on it.

Task-number: QTCREATORBUG-15352
Change-Id: I38532d08bb438b12b6eb202a06ff610670b1069f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-18 10:38:58 +00:00
Orgad Shaneh
b2e048c10e Debugger: Fix language context actions
... again

Task-number: QTCREATORBUG-16099
Change-Id: Ie0a902a3161ca72cf78695639598eac5fdcbace5
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-04-18 10:38:20 +00:00
Leena Miettinen
802543c09d Doc: Blogs and Qt Account can be accessed from Welcome mode
Change-Id: I5571d2428e8f7b86e8092e94d11847bd90a8ed2f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-04-18 10:27:16 +00:00
Leena Miettinen
d37aaeb69a Doc: Describe general build and run options
Update screenshot.

Change-Id: Icdab88b6eba9d1bb421271a66b3485ddfb80fe0c
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-18 10:27:04 +00:00
hjk
6d78e94b86 Debugger: Use -exec-return when asked for
Change-Id: Ib3ab40d3180494fae21040bd3337adcce7816de3
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-18 10:03:20 +00:00