Commit Graph

44349 Commits

Author SHA1 Message Date
Marco Bubke
ce7e5e3b4d Clang: Temporary workaround for VS 2015 Update 2
We disable older Visual Studio compilers because they have bugs. This patch
has to be reverted after we go to VS 2015 Update 3.

Change-Id: I2c6eecab993282b24003ceb99a991a72502057f6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-09 08:04:42 +00:00
Vikas Pachdha
f32fbf5700 iOS: Fix app launch fail on debugging
Start the relay servers on the same port.

Task-number: QTCREATORBUG-17407
Change-Id: Iad22cdebffdf3e88021718d4a7c232e08650c92e
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-12-09 07:49:41 +00:00
Christian Stenger
654a48b19d Clang: Fix logic to disable building clangrefactoring
Change-Id: Ib9b4cab728d6ee084c7693357f0bc9e5ff27f2ca
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-09 07:02:48 +00:00
Eike Ziller
5f054990d6 iOSSimulator: Try to avoid flakiness of starting in simulator
Put in some delays between executing the various simulator commands,
so whatever might need to startup internally has time to do so.

Task-number: QTCREATORBUG-17336
Change-Id: I1d4fbbc14c8583fce1b72ee31d5fd4824f377efb
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-08 15:29:11 +00:00
Ulf Hermann
97689ca9c2 RemoteLinux: Adapt to new PerfSettings API
Change-Id: If225c99a512ec36eb18149734dcdea5f41c790d0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-12-08 15:14:36 +00:00
Tobias Hunger
a2e3f716a8 QMake: Clean up Qmakestep
Change-Id: I3a2baa4e15a48f99652cec6151803f20341e339a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-08 14:16:53 +00:00
Eike Ziller
c226d311b7 Projects mode: Disable "Import" button if not supported by project
Task-number: QTCREATORBUG-17399
Change-Id: I79b64298c902776282d54d70efdc0eef03415a51
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-08 14:16:05 +00:00
Marco Bubke
1ae34549b1 Clang: Remove useless move
Temporary values are already rvalue references.

Change-Id: Iae3122cc04f6adb23fdf9986b9cdfe6575e906ee
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-08 14:13:04 +00:00
Tobias Hunger
065f1562b3 AbstractProcessStep: Fix double-free of QFutureInterface
Partial revert of 732b832973

Change-Id: I22e1af3071b7345eae6459cfdfe5e3699f4ee804
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-08 14:10:41 +00:00
Christian Stenger
326845a8a2 AutoTest: Fix internal modification of data tag location
Task-number: QTCREATORBUG-17398
Change-Id: Ibd4cc52ce16d4b7b9adb0ec6f857f6b3ae17e703
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-08 12:35:28 +00:00
Tobias Hunger
8b9c6ba4b3 Core: Prevent possible nullptr access
I doubt that this can happen in practice, but better be save than sorry:-)

Change-Id: I30919e9ba16c2cc8cf401fc0c9f49267a215af71
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-08 12:17:11 +00:00
Marco Bubke
1f7694135d Clang: Workaround bug in clang for multithreading
We have to fix that but people want to try it now.

Change-Id: I957215c7ec05ec0b0632179b538f5fac41f77dab
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-08 11:57:43 +00:00
Marco Bubke
542c730b33 Clang: Suppress unused parameter warnings in clang headers
Change-Id: I8b2d50be5bda75b6759b7ce73b9d37b2500f3efc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-08 11:57:35 +00:00
Nikolai Kosjar
05942b63f8 CppTools: Do not put configuration document into global snapshot and working copy
These are remnants of the time when we had only one snapshot.

Change-Id: I6ff4db645d1065a0ef195834890e0774e2e2c60e
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
2016-12-08 08:52:17 +00:00
Nikolai Kosjar
3602033fca CppTools: Clean up ProjectFileCategorizer
Change-Id: Ia6954810ad49d43629be2db074d620ab71a09cee
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-08 08:35:42 +00:00
Nikolai Kosjar
4580e88cbe CppTools: Extract ProjectFileCategorizer
Change-Id: Ib7a5c3c61b0ea172cbc6a3ac7c94e77ffabc0db4
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-08 08:35:34 +00:00
Nikolai Kosjar
c961018a63 CppTools: Clean up ProjectFile
Change-Id: I01212115566c6bf26268b66fef96d50b7e93b96c
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-08 08:35:25 +00:00
Christian Stenger
832edfe12a Clang: Avoid passing unknown options
Option -Werror=date-time was introduced in gcc 4.9

Change-Id: I5be2100a2dc0a37d6a2e8c7b5c40f18bcdb0d3ac
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-08 08:18:56 +00:00
Marco Bubke
d451d52f6a Clang: Filter unwanted clang flags
We maybe need to extend the list.

Change-Id: I4615467a95985df9f6d0128223fb1aaad2561880
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-12-07 16:16:30 +00:00
BogDan Vatra
87b39ddd5a Android: Merge stdout & stderr channles
On Android 7.1.1 the error is fired on "stderr" on previous versions on
"stdout"

Change-Id: I72c06694a22084d455e26eea95ddfdb8a93a39b2
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-12-07 15:37:03 +00:00
Marco Bubke
28a120b2e2 Utils: Workaround missing __cpp_noexcept in clang
Clang is not defining __cpp_noexcept.

Change-Id: Icb4e2dabb413e676614a9dd478e996d587c7f5d2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-07 15:25:58 +00:00
Marco Bubke
8c701f620a Clang: Fix warning
We can add it later again.

Change-Id: Ic75d05623cec0f9b0558495be5e1856ccf639c97
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-07 14:43:32 +00:00
Nikolai Kosjar
6b2270e178 CppTools: Clean up indentation in CppTools.mimetypes.xml
Change-Id: Ibe8c8b32f659156d9bfba7ec26e0ee2cd5b04f94
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-07 14:35:02 +00:00
Nikolai Kosjar
8916e81c4e CppTools: Make objective c extension *.m unambiguous
...and thus avoid reading the file.

The other candidate was "text/x-matlab".

Change-Id: Ifb36b817cda654bcda37b7d675c2df4e60525a2b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-07 14:34:57 +00:00
Nikolai Kosjar
a80273edf0 QbsProject: Adapt assert
It fails now because with

    commit 521423b433
    CppTools: Call ProjectInfo::finish when we get it

the ProjectInfo is always changed.

Change-Id: I2c57cca330f42326d068e5077fc303d172b1be62
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-12-07 13:33:17 +00:00
Tobias Hunger
732b832973 AbstractProcessStep: Clean up code
Change-Id: Iae3d1e7cbd02d34da5cebbf0291948dbdd2e95df
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 13:17:59 +00:00
Tobias Hunger
83028f76a8 ProjectExplorer: Simplify code in AbstractProcessStep
Change-Id: Ief747c8f0332041f964106d3bc71919b9924efd1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 13:17:54 +00:00
Tobias Hunger
d44bc75f72 ProjectNodes: WS only change
Change-Id: I2b62fefcba4c8a64472b3e88904134903aec47c4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 12:36:32 +00:00
Alessandro Portale
572396773b ios: Fix the default device icons
In 4.2 the IDevice constructors need to set the device icon, and I
missed a few constructors. This should fix it.

This patch will not apply to master, and should be skipped when merging.

Change-Id: I66cf529dfe539a90a753dd15e8f069e1f11e8176
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-07 12:14:25 +00:00
Marco Bubke
3070a28422 Clang: Filter generated files
Generated files are not available, so clang will stop with an fatal error.

Change-Id: I80754015a1daf48cbf2ce8e06526c75b05b2901c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 11:41:01 +00:00
Marco Bubke
e8960b9bd3 Clang: Connect alive timer
You had to set the no alive timer environment variable.

Change-Id: I1994087a68d8293963f9f48fa1632f7c6822b146
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 11:40:55 +00:00
Marco Bubke
cf885a138c Clang: Clean up SourceRangeExtractor::findStartOfLineInBuffer
Change-Id: Ic0b5e44756f0364f583c72b5b05795764718a6e8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 11:40:47 +00:00
Marco Bubke
6f362072d6 Clang: Workaround missing std::make_reverse_iterator
Because of the ancient compiler support we cannot use
std::make_reverse_iterator. If we support newer compilers we can revert
this patch.

Change-Id: I9b20ab1e53a0e9784b0455eafbbfd966797ad91e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 11:40:30 +00:00
Marco Bubke
15de02ea0c Clang: Add refactoring support for unsaved content
We need the generated UI header but we don't have a build directory. So we
provide clang with in memory represations of the file.

Change-Id: Ie9db97bbea2222b0203a0457baa1f1fc7ad97213
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 11:39:11 +00:00
Marco Bubke
636eea99f4 Clang: Call the finishProcess() in ~RefactoringConnectionClient
Otherwise we call virtual function in the base class.

Change-Id: I35a3d9a59dc6558b9386ccfa7169cef5f2e15e10
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 11:38:56 +00:00
Marco Bubke
5735b3d3b3 Clang: Use std::unique_ptr instead of QScopedPointer
std::unique_ptr is in the standard and QScopedPointer maybe gets
depreciated in futur. So lets use std::unique_ptr instead so we don't have
to change to much code later.

Change-Id: Id479b0e80adaf3da4e408198d43c5dfd09a8c66d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 11:38:51 +00:00
Marco Bubke
105a628255 Clang: Improve ClangRefactoringPlugin initializing
Change-Id: I2e45d588e7a8c50b61b401c6dea9f3cf8db45611
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 11:38:46 +00:00
Marco Bubke
f02dddb6c8 Clang: Add flag to disable Clang LibTooling
Because of C++ linking problems we introduce QTC_NO_CLANG_LIBTOOLING as a
workaround to disable Clang LibTooling. Use QTC_NO_CLANG_LIBTOOLING=something
to disable it.

Change-Id: I2dc9947d69d94292e08dacb1558bef56f5ebbbe3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 11:38:37 +00:00
Tim Jenssen
d2f615dca5 Clang: Use llvm_config --cxxflags
Using llvm_config --cxxflags can be potential dangerous. We should test
every configuration if it is compiling. It has the advantage that we don't
need to care anymore about incompatible flags to the used clang version.

Change-Id: I3bbddb1935dca9896c64ebafd1fbe72840db8bd4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-07 11:38:17 +00:00
David Schulz
762490e9ef Debugger: Remove deprecated TODO items
Change-Id: I7c5f98c9ecdc72929d3d3c82d182d6f343b3d29c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-07 11:34:52 +00:00
David Schulz
aae9af60fe Debugger: Remove duplicated code
Change-Id: I40b4a2fb511ede41aa64d6e18af51d8f87d4e1f4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-07 11:34:41 +00:00
David Schulz
831e013491 Debugger: Disable python type debugging by default
Change-Id: I6b2b997cd4c2c44267b3d7846b46c14fe8de5581
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-07 11:34:29 +00:00
Nikolai Kosjar
52ed363594 CppTools: Display header paths as view in code model inspector
Change-Id: I418cbc7200d9aee0862a484bb11cd23a632828b3
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-07 11:30:07 +00:00
Nikolai Kosjar
e7d74e1608 CppTools: Show file kind in code model inspector
Change-Id: I5cdc6ec672a970a6fcfa52dfa14c2f515cf27f6d
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-07 11:30:02 +00:00
Marco Benelli
f78dd2be64 QmlJs: disambiguate help lookup
The help system used to be confused by types from QtControls2, since
they have often the same name and version as the ones in QtControls.
This patch resolve the issue by looking for a number in the module
name, and then using the url found as helpId.

Task-number: QTCREATORBUG-16851
Change-Id: I48196d90b0fea5edf50751900864a39075894866
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
2016-12-07 10:50:07 +00:00
BogDan Vatra
52b14f24f1 Add API 25 to known APIs
Change-Id: Ia06bd8638c8939918383b8274f06fc73d9c86122
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-07 09:54:20 +00:00
Orgad Shaneh
ad04908a52 Debugger: Remove shadow variable
Change-Id: Ia2e8ad88429a682f8569070eb8c12544f929d2a2
Reviewed-by: hjk <hjk@qt.io>
2016-12-07 09:02:07 +00:00
Tobias Hunger
86ef27d702 Qmake: Rework librarydetailscontroller to use HostOsInfo
This fixes a broken switch statement by removing it completely.

Change-Id: I3d0184bb408125eecb6a8e728fabe593233115c3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-07 08:39:46 +00:00
Tobias Hunger
ab20b08d6d Android: Initialize all members
Change-Id: Id10174da9c8b6e2cf34ac3465f0bf57361990e7e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 08:39:36 +00:00
hjk
f1a05dfb35 Debugger: Suppress putting full environment contents into logs
People are known to put things like passwords into environment
variables, and we pass the environment hexencoded to the debugged
process, so it might be overlooked when logs passed around.
Better not have the data in the log to start with.

Change-Id: If93a42a291b8b62c38d01e606cc0e49b8f2e3e95
Reviewed-by: Filipe Azevedo <filipe.azevedo@kdab.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-07 07:40:33 +00:00