Commit Graph

43591 Commits

Author SHA1 Message Date
Robert Loehning
0a1ad894d5 CMake: Fix project tree displaying "." folders
Task-number: QTCREATORBUG-14994
Change-Id: Iea5a820083b8fc1974a749992f937965285370b6
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-01 13:37:21 +00:00
David Schulz
eec4014239 Cdb: Just print debug output when requested.
Change-Id: Ib0ecc41179e1adc7d0ccc7b026fbb0a454bb4c7a
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-01 11:58:10 +00:00
Marco Bubke
610ff191af TextEditor: Move constructor has now noexcept
Otherwise the copy constructor will be used too and we get an error
because it is private.

Change-Id: Ibfe70939ebe34fa9a524b9844a20d962eb09bd97
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-09-01 11:38:16 +00:00
David Schulz
1c06cb1e8a Debugger: Remove arg for a 0 hunk in disassembly.
Change-Id: If519893dfcf72b034a133954e01ebfcfdbf9253d
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-09-01 11:36:49 +00:00
Niels Weber
a760cddbe5 Fix typo in debugger doc
This certainly shouldn't say Designer but Creator.

Change-Id: I4bce6abf9744323eebb410db9d7fe45118acece1
Reviewed-by: Martin Smith <martin.smith@digia.com>
2015-09-01 11:31:57 +00:00
David Schulz
f6186e0c25 Cdb: Clear output buffer after assigning it to the response.
Change-Id: I35d5b47d4b56863bd5d24c2ee9c5c6bf115fb6d0
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-01 11:18:12 +00:00
Eike Ziller
5b28c52e5f Merge branch 'master' of git://code.qt.io/qt-creator/qt-creator
Change-Id: I6a443be7541d1f79ab8dabc1b5c4f1d88368fc87
2015-09-01 12:59:50 +02:00
Eike Ziller
3b1a966cc8 Merge remote-tracking branch 'origin/3.5'
Change-Id: Iebaabfc2f724cd493b7cab025406531cea5cd2dc
2015-09-01 12:57:51 +02:00
Eike Ziller
e1e7c542c6 OS X: Provide a setting for file system case sensitivity in preferences
Change-Id: Idaafb55ab4cf1fb1b525f3f911ecff291e035bb2
Task-number: QTCREATORBUG-13507
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-09-01 10:48:32 +00:00
Eike Ziller
2db21dc201 Split general settings page in two
It was too crowded to add anything to it. Split it into "interface" and
"system" related pages.

Change-Id: I2aa7984de4d672ca000e991b0cfb32a3f706c988
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-01 10:48:12 +00:00
Eike Ziller
f1e8aec7ac Decouple the big files warning from the other warnings
The reset warnings button is used for resetting all the warnings that
are not an explicit option.

Change-Id: I3650f206bc0475b85cad61af5c4fbc14e5c532c8
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-01 10:47:53 +00:00
Eike Ziller
fb73a87033 Clang: Fix compilation on OS X / clang
Change-Id: I7cc5738971b00dfcf012584d4b51f86914ec874b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-09-01 10:28:41 +00:00
Ulf Hermann
6a7a45881f Timeline: Don't add and remove batch roots
Every time a batch root is added or removed the whole scene is rebuilt.
Instead of using the "visible" property we can collapse items to a
height of 0 in order to make them invisible while keeping them in the
scene. This avoids the rebuilds.

Change-Id: Icc6dddb8c8f892a37ef4ed5bced501e5f1658d80
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:23:33 +00:00
Ulf Hermann
b054fd8542 QmlProfiler: Clean up the state widget
Ultimately we want this as jobs for the progress manager, but let's
get the logic right before. The state widget should not estimate
profiling times and it doesn't have to keep local copies of all the
state the model and state managers already have. Also, we need an
additional indication for "waiting for application to send data", as
that can take significant time.

Change-Id: I3677dea4b0561bc83a7bc3c196ce0854c5624f12
Task-number: QTCREATORBUG-12958
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:17:22 +00:00
Ulf Hermann
1caa899b8d QmlProfiler: Make sure timeChanged() signal is queued when needed
It can be triggered from a thread loading trace data. This triggered
the warnings about QObject::startTimer and QObject::killTimer and was
generelly unsafe.

Change-Id: Iee1f5f29a49147a20b1f5c826f85b6713fcb8a45
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:17:17 +00:00
Ulf Hermann
599c5a034a QmlProfiler: Avoid overflowing the progress range when loading
The ProgressManager can only deal with at most (1 << 31) / 100.

Change-Id: I03c61839fa5b9dab56b99f98a63ed7ab8b340c09
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:17:12 +00:00
Ulf Hermann
0a34352473 Timeline: Make all the colors in the selection range alpha blended
Changing an item from alpha blended to solid or vice versa forces a
full rebuild. The difference between solid and 0xfe alpha won't be
visible.

Change-Id: I4da47870fc465449f0354a18fc87717c569be812
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:14:21 +00:00
Ulf Hermann
ce092d3f30 Timeline: avoid rebuilding of text nodes
Using an array of strings as model has the unfortunate effect that all
text nodes resulting from it are rebuilt whenever anything in the
array changes. Using a number as model only triggers a rebuild of
everything when the number changes.

Change-Id: I8a762e78eb75b282f46641a6cba6eff43c8ebfd5
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-01 10:14:13 +00:00
Marco Bubke
e8e45ca102 Clang: Don't show a warning for unused macros anymore
Change-Id: Ia816476ed577d7060d752e74e5be2c2f1ebb7f12
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-09-01 10:04:19 +00:00
Robert Loehning
a80f4d179b Squish: Verify shown filenames when adding C++ files
Change-Id: I1e6c944a70c4f44d4f1b3e5cb7b6b6c8421ba453
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-01 09:44:41 +00:00
Robert Loehning
652ff8efeb Squish: Add test for creating new C++ class
Task-number: QTCREATORBUG-14949
Change-Id: Ie42471f174eaacab2810eec12c2af4201a9374fe
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-01 09:44:28 +00:00
Orgad Shaneh
15578266e4 ProjectExplorer: Add missing tooltips for zoom buttons
Change-Id: I3d4aa81f8b1e39b89954fa36e8352c06bbef4e9a
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-01 08:58:48 +00:00
Orgad Shaneh
9e60bec3a2 Core: Fix scrolling with the mouse wheel for zoom-enabled panes
Change-Id: I2961b386c84391851c1b4f140e3f0153f9cc299f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-01 08:33:58 +00:00
hjk
cfb2b2186e Debugger: Fix removal of breakpoint marks in disassembler view
Task-number: QTCREATORBUG-14973
Change-Id: I6dfceefe6d8b1404c2a553dbeebd7dccefa1a624
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-01 08:16:53 +00:00
Eike Ziller
44a8e937e3 Provide a way to override file name case sensitivity.
Change-Id: I47ed4f590e5f25380c2052fa77eae3f0d315c5d3
Task-number: QTCREATORBUG-13507
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-01 08:12:17 +00:00
Eike Ziller
701f939092 OS X: Make file system be handled as case insensitive by default
Task-number: QTCREATORBUG-13507
Change-Id: Ia524950646ae1ff9d177876728c306b2bb909215
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
2015-09-01 08:12:01 +00:00
Christian Stenger
e10ba2e289 Clang: Fix missing includes and compiler warnings for MSVC2013
Change-Id: I88d371a5997576bfd29aedc38353df9ea3a3faeb
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-09-01 07:22:46 +00:00
hjk
cda1f94b18 Debugger: Remove queued commands in GDB engine
Instead, always pipe them into the GDB process, even if the inferior
is not stopped. The original need to hold back commands until
the inferior is stopped seems to be long gone.

Change-Id: I234fdd067d78966c9896f1fa85a134900bf6dec7
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-09-01 06:57:29 +00:00
David Schulz
ba2b210b83 Debugger: Fix crash when attaching to already running application.
Change-Id: Ie6b28d14c6e8c49b9d8307c528807add82d3a57b
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-09-01 06:37:51 +00:00
David Schulz
d5c29ada95 Clang: Add QDataStream includes to ipc container.
Change-Id: I6f73a1daa3e8b934896ceb6fd0c1185e24d60236
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-09-01 05:45:35 +00:00
Daniel Teske
780e70b757 QmakeProject: Show a better error message than just "Incompatible build"
Change-Id: I003e856dd5b222348bacd5acbdf9da4725864b35
Task-number: QTCREATORBUG-14021
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-08-31 15:22:05 +00:00
Marco Bubke
9e25fa9a66 Clang: Disable ClangCodeCompletionTest::testUpdateBackendAfterRestart
The integration test has to be rewritten!

Change-Id: Id06f9a3ceb54cf6836f4ca1a745e20fefc6a5391
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:40 +00:00
Marco Bubke
d6b75cfd47 CppEditor: Slow down processor timer for clang
The timeout was too fast so we reparsed the document far to often.

Change-Id: Ib168d3e52b48dd2325accafb340872b55e71e42e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:34 +00:00
Marco Bubke
09a107ccdf Clang: Change Diagnostic timer
Change-Id: Ie43d922596423e0f7507f06bfec5be4e9f5f484a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:26 +00:00
Marco Bubke
7eee8061f6 Clang: Add unsaved files messages
We have auto generated buffers from ui files which are not open but have no
file representation. So we need to provide them as unsaved files only.

Change-Id: I48a426c18e06eeda2fa707864f32f293e17ac651
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:19 +00:00
Marco Bubke
3114780e55 CppTools: Add CppModelManager::isManagedById
Change-Id: Ica1a33b2619f64746b8671bff2856503775a40bf
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:11 +00:00
Marco Bubke
6e14eb6940 Clang: Rename ForCodeCompletion in ForEditor
It reflects that the translation units and projects have a tied
relationship with an editor.

Change-Id: I3c01d5776980fe079af1fdef82feded83fdf5463
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:02:02 +00:00
Marco Bubke
8ad7616420 Clang: Reparse for removed files too
Change-Id: Ibe8a3fa46bead6018a4279c3a270cb2535a7b296
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:43 +00:00
Marco Bubke
053e9597af Clang: Fix CodeCompletionsExtractor.BriefComment test
Change-Id: Ic01f3c361a5c81cfb96c51d6111ed6d589a76563
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:37 +00:00
Marco Bubke
4e18e9cdd5 Clang: Only get one diagnostic for a time out
Otherwise we can stall the backend process.

Change-Id: I854d117546ad08026be8a42854739cabad8b67fd
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:31 +00:00
Marco Bubke
283ddb8df3 Clang: Use timer in ClangIpcServer in the file watcher to send diagnostics
One mechanism for all diagnostic updates is better to maintain.

Change-Id: I774577bfa343162ded362977a0727a12379d1eab
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:25 +00:00
Marco Bubke
0267f2861d Clang: Send the diagnostics delayed
Change-Id: I6065e51d38c262cf59d977c11c6453dec85a6dfe
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:18 +00:00
Marco Bubke
aa300e363f Clang: Adds needs reparsing test
Change-Id: Id58a831ac7ae389f225e3eac5d376dbf78a07772
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:01:10 +00:00
Marco Bubke
d4976e1109 Clang: Avoid double reparsing
The document is now always reparsed after a change.

Change-Id: Iad1d9f78d98f75d5e873de35ac487a8dabc4fc4e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:00:48 +00:00
Marco Bubke
1a5e7b778d Clang: Send document revision with the completion request
The sent text should always accompanied by the document revision to avoid
useless the reparsing of the translation unit.

Change-Id: I4af50f277f9352f4af0cdda8a32ad76c44c1935f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:00:24 +00:00
Marco Bubke
dc31e3742a Clang: Don't replace text if the original text is equal
A replace is changing the document revision which is triggering a reparse
of the translation unit.

Change-Id: I73863af650dd8e6d3fb3e5ab4112609ced201614
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:00:18 +00:00
Marco Bubke
f2b7371af1 Clang: Reparse only if files are changed
Includes are now watched by a file watcher. Unsaved file changes are
watched too. If they are changed the translation units which depend on
them are set to a state which require a reparse. Later the diagnostics
of this units are collected and send back to creator.

Change-Id: I2fb5c7dd6644687f22399edd8d18edd6215c9505
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 15:00:07 +00:00
Marco Bubke
aa6aaee510 Clang: Add brief comment support
Change-Id: I5af23b6694d3d0bf45ed0a30b4d91b350f0515df
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 14:59:50 +00:00
Marco Bubke
b278dc87ca Clang: Add diagnostics
Diagnostics are now moved to the clang backend process. Fixits are
supported too.

Change-Id: I20faacf466bbf78dec479220c3d7b336a47bc453
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 14:59:16 +00:00
Daniel Teske
8dfa9a5dab ZOOOOM for CompileOutputWindow and AppOutWindow
Implement zooming for the compile output and app output panes.
Those windows can be zoomed by toolbar buttons or ctrl+mousewheel.
The zoom factor is synced between app output panes, but not between
compile and app output. The scroll wheel zoom can be disabled
in the settings.

While at it, fix that the AppOutputPane did not update its font
on changes to the fontsettings.

Task-number: QTCREATORBUG-12476
Change-Id: I8a1639ab3d39c24a5fc21ed82f558f3d10efc02d
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-31 14:59:03 +00:00