Commit Graph

50929 Commits

Author SHA1 Message Date
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
e0ca3be406 Clang: Fix test
Fix corresponding project file types.

Change-Id: I8758e90a2d0e3cf877b5c4bf72d91fb63f8a7f8b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-07 11:41:08 +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
hjk
2497f5ea1d Debugger: Remove unused createBitfieldValue function
Change-Id: Ie439d9cd551c33e9c5db6c16e8d221d2c75a7218
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-12-07 10:17:47 +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
hjk
d98d9025b8 Debugger: Fix environment passing with LLDB
Change-Id: Ic51a5ee1b9ef69b60279f045175be6d59b53582b
Reviewed-by: Filipe Azevedo <filipe.azevedo@kdab.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-07 07:39:44 +00:00
Christian Stenger
edc55eb7df UnitTest: Fix compile with gcc 4.8
Change-Id: Id620b803bfff7b677d7552c1a7e9aba78e17802f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-12-07 05:38:46 +00:00
Leena Miettinen
fb147ef27b Doc: Update info on Beautifier options
Clang Format options differ somewhat from the Artistic Style
and Uncrustify options.

Also, the "Format entire file if no text was selected" is enabled
by default and also applies to Uncrustify.

Change-Id: I19d6badbd71275a185894e8c5dff96826d378afb
Reviewed-by: Lorenz Haas <lorenz.haas@histomatics.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-12-06 16:15:05 +00:00
Leena Miettinen
5d95c50bd9 Doc: Update Valgrind screenshots
The icons have changed.

Change-Id: I93150735a15228a9a21bd5586b5a633ca7f94fbc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-06 14:46:32 +00:00
Nikolai Kosjar
521423b433 CppTools: Call ProjectInfo::finish when we get it
No need to require the project managers to do this. Also, it is easy to
forget.

Change-Id: I96f7a5e5547418678af9653e5753c372f0880e5a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 14:34:39 +00:00
Nikolai Kosjar
d006fc4149 QMakeProjectManager: Clean up updateCppCodeModel()
Change-Id: I083a6ed91d78ee278977128ec0f19ed28d0eeae4
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 14:34:33 +00:00
Leena Miettinen
71b27b0d8b Doc: Describe the Import button in Projects mode
Update screenshots.

Change-Id: I9bffcb3689ef4d4a4cd55161bb73ba6d25224710
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-06 14:15:29 +00:00
Tobias Hunger
81dbec7c50 Qmake: Add some breaks so that the expected OS is selected
Change-Id: I3d0184bb408125eecb6a8e728fabe593233115c2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-12-06 13:59:13 +00:00
Nikolai Kosjar
458e775f88 QMakeProjectManager: Remove unused function
Change-Id: I47f598f5de364f8039de910894747b2d66ceba0e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 13:55:18 +00:00
Tobias Hunger
9c93e757e6 Core: Fix potential nullptr access
Change-Id: Idabb3b438f7b8279821b5cb0075f5e23170a95e0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-06 13:37:37 +00:00
Orgad Shaneh
6dc5699423 Update qbs submodule
To HEAD of 1.7 branch.

Change-Id: I882be8dad05ffcd9a2f3f0c78b278bb5d94b985b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-12-06 12:51:04 +00:00
hjk
98e0b4b0b5 ProjectWindow: Add a buttons to import builds to project tree
... to a shortcut to the Kits setup page.

This duplicates the functionality from the context menu but can
be directly spotted.

Change-Id: Ia5c2e1208346dc7191a04fbb9c2569ccab9aab31
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-12-06 11:53:15 +00:00
Tobias Hunger
a816228f87 Qnx: Remove unnecessary nullptr check
Change-Id: I164d68814a685060782eacc644dfdc114f60d688
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 10:21:15 +00:00
Tobias Hunger
4c86cd6f5c Qnx: Fix inverted logic
Change-Id: Ie92720a7bf6730f0d767ab69da5672074d870449
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 10:21:06 +00:00
Tobias Hunger
de0cf4e92c Android: Simplify code and make sure all members are initialized
Change-Id: I873737d39865f9a920a5893c9630430e6803a6ee
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2016-12-06 10:18:54 +00:00
Tobias Hunger
c7f19dc0a6 TextEditorWidget: Simplify code
* Prevent potential nullptr access while at it.

Change-Id: Icee9e711b8a09b11e5644b0643d4751909b96101
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-12-06 10:18:43 +00:00
Tobias Hunger
5a58e96237 Process_stub: Make sure strings are \0 terminated
Change-Id: Ic3d431e850cb09627359aae0e0c755f02b4835c0
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 10:18:10 +00:00
Tobias Hunger
8b48f47d12 Designer: Remove dead code
Change-Id: I8f930ffff178e9a1c4547331a1e92609657dbc00
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2016-12-06 10:11:51 +00:00
Ulf Hermann
fcbe75f9e4 QmlProfiler: Unify conditions in binding loop render pass
Invalid events with binding loops could trigger a null pointer access
as the the check for creating the nodes for the binding loops render
pass was somewhat stricter than the check for populating them.

This is largely an academic problem, though, found by coverity.

Change-Id: I7f2681960f23e4a31977faa0d538bc257fa4cf2c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 09:28:07 +00:00
Leena Miettinen
73e4859c00 Doc: Remove descriptions of Qt Quick Controls 1
Support for the Qt Quick Controls 1 has been removed.

Change-Id: I6fc64cea94ee64cabb19935124bb9e8fdc3d1089
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-06 09:10:39 +00:00
hjk
e351c693c6 Debugger: Add a test to check the automatic expansion of 'this'
Change-Id: I90fad62442d677ba441e2e61b660cae7ebea52ea
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-12-06 06:16:08 +00:00
Tim Jenssen
4d8d0f01d8 QmlDesigner: reduce some warnings
Change-Id: Ied3597d32dc5c29de0d4caee78662342d28445cc
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-12-05 20:36:23 +00:00
Tim Jenssen
f061c8a53a Utils: Initialize all members of ShellCommandPage
Change-Id: I6f6d06f4e6be8b6a8c3b5f7c4b2072660b099699
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 19:04:02 +00:00
Tobias Hunger
c163240611 QmlDesigner: Prevent possible nullptr access
Change-Id: I90f131526f97fa879cf9e6428547e6e8ed9aa936
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-12-05 18:59:15 +00:00