Commit Graph

45338 Commits

Author SHA1 Message Date
hjk
f1139b1d51 QmlProfiler: Remove some dead code in RunControlFactory::create
The check is covered by canRun().

Change-Id: Id2360a5d2cb2fd915e164a6b5a533f008fe670f1
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-02 14:00:19 +00:00
Christian Kandeler
1931987ac3 TextEditor: Fix qbs build
Change-Id: Iaf2145047fd7901472f6b5af205572cf0db2ccbc
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-02 13:11:51 +00:00
Tobias Hunger
96fa09bb4f Qmake: Set a rootProjectNode early.
This one covers the time between a QmakeProject being constructed and
has its settings read or is being parsed.

Change-Id: I64d6a9d39b1e188d2af10c58135ab9174af8d701
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-02 13:02:59 +00:00
hjk
0ffbb5a041 Valgrind: Postpone the decision on whether its a local run
The decision is wrong anyway, no harm done. Move it closer to a
location where it can be done correctly.

Change-Id: I92de8ffec92cae6b3de3322d5045b696ae62932f
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-02-02 12:33:18 +00:00
Tim Jenssen
678d142497 QmlDesigner: add scrolling via space + mouse
Change-Id: Ia6377114267fe0f708826b5a9ea43d7c46998a17
Task-number: QTCREATORBUG-11321
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-02-02 12:31:25 +00:00
Tobias Hunger
c0e00a05e6 Qmake: Do not soft-assert when a pro-file is not part of a project
This can happen.

Change-Id: Id8c077592ecc77b5d774cf60dc1faca4e5dbead5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-02 12:26:31 +00:00
hjk
7d46521e3a RunControl: Store a IDevice
Some information on where the thing is running is needed, IDevice
seemms to be the common denominator.

Change-Id: If6528e0deb118cedf5ccd06f6830b4afd3153473
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-02 12:25:05 +00:00
hjk
2fd286cc93 ProjectExplorer: Use runnable contents for appoutputpane re-use
Change-Id: I6dd4b9258321a23462bb6488b132aa9f3d1ed5c2
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-02 12:24:56 +00:00
hjk
e4dca97fc6 ProjectExplorer: Pimpl RunControl
It is a fairly central exported class, no need to expose storage
details to user code.

Change-Id: Ibe199969450bc30b46ab7500e04a22300c492f2c
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-02 12:23:34 +00:00
Thomas Hartmann
51661d4da9 Remove QmlDump source
QmlDump was replaced by qmlplugindump.

Change-Id: I553864756356f5cf591195b6b3f50f467ba53f59
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-02-02 12:20:17 +00:00
Christian Kandeler
40dfb0dcf3 sqlite: Fix qbs build.
Qt 5.6 no longer pulls in the pthread library.

Change-Id: I2059990ba55389e6f5cfe471e15bfc56920a7a5f
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-02 12:17:21 +00:00
Marco Bubke
cc1ed420c2 Clang: Break dependency to visible Core::EditorManager::visibleEditors()
Change-Id: I4157cd190a8c00b07c0e2f3eeeab18409f2405b7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-02 11:56:23 +00:00
Marco Bubke
e134dfcad4 Clang: Remove project part dependency in IpcCommunicator
Change-Id: I312f4a3721c045ae4b4ed4b72218201dbb38aa4b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-02 11:56:16 +00:00
Marco Bubke
07e8edb4fe Clang: Remove ClangEditorDocumentProcessor from ClangCompletionAssistProcessor
Change-Id: I15b0124b980b0df974cc4405b5834919659d6834
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-02 11:56:06 +00:00
hjk
f56363f07b ProjectExplorer: Avoid recently introduced crash when switching kits
LocalEnvironmentAspect needs to take care of being cloned.

Task-number: QTCREATORBUG-15700
Change-Id: Id040a2a150dbc1cd3e407aa3d7dfc2728d7bb3db
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-02 11:53:34 +00:00
Marco Bubke
f41c6b0c4b Clang: Remove TextEditorWidget from AssistProposalItemInterface
Change-Id: I0ac924f88c1347d1b0027c47118b7ed21daf4869
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-02-02 11:26:58 +00:00
Robert Loehning
8c13f2437e Squish: Increase timeout in tst_git_first_commit
Change-Id: Id65b729cd200bb37ad132b4071a263ab61bb3ed8
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-02 10:19:12 +00:00
Tim Jenssen
a0cc107b74 QmlDesigner: use changeCurrentToolTo everywhere
Change-Id: I1b30cc1e9a5b1d62441719d006aa9a9c3c991aa4
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-02-02 10:11:24 +00:00
Christian Stenger
1ab0a64089 AutoTest: Restructure settingspage
Change-Id: I6b5a0bcddd6243a8725d60aedebeba7bd86b137b
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2016-02-02 10:05:22 +00:00
Friedemann Kleint
bba4c33fe6 README.md: Add some Windows/Clang instructions.
Change-Id: I3c854d7a932951d8340507c4799591bbccb179ef
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-02 09:51:10 +00:00
Nikita Baryshnikov
f3ff4ba316 Clang: fix compile error
avoid adding -L/usr/lib to linker options. To avoid linker errors with
Qt from system and from own toolchain.

Change-Id: I291943e6b17c2bf17eb0700b0fc0cda435588ad5
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-02 09:28:58 +00:00
David Schulz
182bd0b34e Editor: Fix compiling of editor overlay.
Introduced by 0532c94758 .

Change-Id: Ia10c09a44012649ffab4fa35d0f1ac20d2233474
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-02-02 09:10:13 +00:00
David Schulz
0532c94758 Editor: Avoid using private text document handle.
Task-number: QTCREATORBUG-15238
Change-Id: I6c7636ac4762c48c53767beaa97b0ce567f87dd1
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-02-02 07:10:00 +00:00
Nikolai Kosjar
03e6b15532 TextEditor: Fix compilation with MSVC2013
Change-Id: I0392c6f0256acc4dfcd14c793f7791a9142edd79
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2016-02-01 16:01:16 +00:00
Nikolai Kosjar
984e82b525 Clang: Fix compilation with MSVC2013
Change-Id: Iac0a025c3cb5c59d0da4c83d4fd60794a2911ea4
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2016-02-01 16:01:12 +00:00
Orgad Shaneh
d67a855102 QmakePM: Enable "Run in Terminal" by default for console apps
Broken by be4aba7dc2.

Task-number: QTCREATORBUG-15632
Change-Id: Iccc7f03c3d0cf0295fd235c23240345e713c1b20
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-01 15:51:47 +00:00
Orgad Shaneh
048a5cb63b QmakePM: Factor out project node lookup
Change-Id: Ied97f86b7a39d9d680160ec7a0b8b6ea8d0330be
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-01 15:51:44 +00:00
Orgad Shaneh
15f8bb07ed ProjectExplorer: Use Qt5-style connects
The heavy lifting was done by clazy.

Change-Id: I619db09a79760186b72e7662490ed1205155c1a7
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-01 15:51:34 +00:00
Nikolai Kosjar
db8b9f9463 Clang: Fix variable name in test
Change-Id: Ief210920c62710786cf75fd6aea04897f4e2965e
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2016-02-01 15:17:11 +00:00
Eike Ziller
ef1203b75c Merge "Merge remote-tracking branch 'origin/3.6'" 2016-02-01 15:16:12 +00:00
Eike Ziller
5952165cf9 Merge remote-tracking branch 'origin/3.6'
Change-Id: Ic4d3d94feaaa588c6244509bb3dd14c5cb646fe7
2016-02-01 16:15:48 +01:00
Marco Bubke
ecca269292 Clang: Add ClangPreprocessorAssistProposalItem
Change-Id: Ifb27b9a21b9a2fe9a04496bbb70fa3fa07d1f89c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-01 14:38:31 +00:00
Christian Kandeler
e432c715dd TextEditor: Revert adaptation to reverted QTextCursor API change.
Change-Id: I1f778f6389adc6937330b727006ad89880328cb5
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-02-01 14:25:00 +00:00
Marco Bubke
bb3b7307ef Clang: ClangAssistProposalItem is now inheriting AssistProposalItemInterface
Change-Id: I781ba27659e852782292596fe590666b09d7253e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-01 14:01:44 +00:00
Marco Bubke
c903f4974f TextEditor: Introduce AssistProposalItemInterface
For unit test we need to break every dependency to the TextEditor
Widget etc.. With an abstract interface we can implement it in clang
without relying on unwanted dependencies. It makes it also easier to
compute the values deferred.

Change-Id: I1b313a1625f4e80bd324ab4bf1a7c4f6b690abe9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-01 14:01:35 +00:00
Marco Bubke
e42bf6ebc6 CppTools: Remove all references to the tool chain in the project part
Change-Id: I5fd55eadf94c8a185c2082b93b27bf4432e5cabf
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-01 13:13:32 +00:00
Tim Jenssen
77b4b47915 QmlDesigner: add some overrides
Change-Id: I8000c34fd4cde879169983c45df05954c5c98a9d
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-02-01 12:57:35 +00:00
Friedemann Kleint
f38d291339 ClangBackEnd: Use QCommandLineParser.
Output a proper usage message instead of a cryptic "wrong argument
count" when launching it from the shell for testing.

Change-Id: Iedb6b1062c9d246a514aefb05220942e4a6341df
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2016-02-01 12:29:07 +00:00
Nikolai Kosjar
57877cc14d Clang: Workaround dot detection for arrow correction
...by explicitly checking for the dot in the source.

Task-number: QTCREATORBUG-15654
Change-Id: I4172e88a7fbb3015ef391daf13ded1f0002aab9c
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2016-02-01 12:20:58 +00:00
Nikolai Kosjar
da27ea4d42 Clang: Introduce UnsavedFile wrapper
This simplifies UnsavedFiles and makes TemporaryModifiedUnsavedFiles
useless.

Change-Id: I1896f971215ed22ce7aa7bf21b16381862b7469d
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2016-02-01 12:20:53 +00:00
Robert Loehning
7114ee9149 Squish: Run tst_CSUP01 on clang code model, too
Change-Id: Ic2424cc9d962feff06baadc23a5fdf121bf2a11d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-01 11:38:49 +00:00
Friedemann Kleint
a2342fa492 MsvcToolChain: Detect Microsoft Visual C++ Build Tools.
Check the standard installation location of the Microsoft
Visual C C++ Build Tools introduced with MSVC2015 for the
presence of the bat file and add the toolchains.

Change-Id: Ia2b7770ed50c51132c88330ff1448900b0b06c1e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-01 11:36:19 +00:00
hjk
7db379167f ProjectExplorer: Remove a shadow runnable in LocalApplicationRC
The one in the base class is completely sufficient.

Change-Id: I6e39ef856fb73377318df28e373f27d0a1c2c977
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-01 10:36:12 +00:00
Christian Stenger
14cf100fa9 AutoTest: Fix compile
Change-Id: I5564a0f86105dd327ddf79a63a9f880d22ae385c
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
2016-02-01 09:06:30 +00:00
Christian Stenger
992f9ed222 AutoTest: Use mark and sweep for parsing
This also removes caching from parser and the respective test info
files are gone now as well.

Change-Id: Ibcea68e446dea532d6addd2f16863738e497bca4
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-02-01 08:31:52 +00:00
Christian Stenger
fd4d1c801f AutoTest: Fix wrong copying of children
Change-Id: I1674ab75f7a019d4ea21ccc7449ba1f7b2c8e26f
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-02-01 08:31:48 +00:00
Christian Stenger
7a331b8c94 AutoTest: Provide mark and sweep functions
Actually they are not used, this is a preparation for later patches.

Change-Id: I25f43dd7dba06068ca9e39ccd4153361a7746304
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-02-01 08:31:43 +00:00
Christian Stenger
1caeb9bb63 AutoTest: Store referencing file inside test tree item
This duplicates (temporarily) the information for referencing files,
but the cache inside the parser will be removed within a later patch.

Change-Id: I7377864547f0d9ce074fa409b9c12067c4329d40
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-02-01 08:31:28 +00:00
Christian Stenger
3d5bb6d0bb AutoTest: Prepare parsing function to get referencing files directly
Change-Id: I53b8db50d286dccc8ec9764ddb9a2c08d52fffb5
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-02-01 08:31:16 +00:00
Christian Stenger
9a0941277b AutoTest: Simplify caching for test information
We only need the referencing file in some cases.
First step for refactoring the code parser and the test tree model.

Change-Id: I713212461e4992863ef11a0a634c5d8d786a72a9
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-02-01 08:31:02 +00:00