summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Core: Simplify MainWindow::init() signaturehjk2018-02-123-12/+7
| | | | | | | And adapt its only user. Change-Id: Ifc1f6c7857951d6e1a68f5bc909146e9689c5428 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ResourceEditor: Remove unneeded use of global object poolhjk2018-02-121-2/+1
| | | | | Change-Id: Ie293314c034d679dee82fc15f7d4a71a5bdbacb7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Remove a few explicit uses of the global plugin poolhjk2018-02-121-16/+0
| | | | | Change-Id: I8627af8fa132b727450ee703910a39485eea58ad Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Clang: Refactor TokenInfosIvan Donchevskii2018-02-1224-596/+394
| | | | | | | Remove code duplication. Change-Id: Ib1859f2c3a04f66d0f0b669b4e93a7fc06ab8e61 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Add support for nested namespaces (C++17)Colin Duquesnoy2018-02-096-2/+34
| | | | | | Task-number: QTCREATORBUG-16774 Change-Id: I3de3ac65810213e21c9a3bafef2474d252e191f7 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* RemoteLinux: Remove RemoteLinuxRunConfigFactory::canCreateHelper()hjk2018-02-092-6/+0
| | | | | | | | | | It's only called from RunConfigurationFactory::create() in a context where the possible option are restricted to availableBuildTargets(), i.e. the check always succeeds, and that's what the base implementation does. Change-Id: Ie05abb64da9e9c765afc8a61d83095a709bc5c68 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Remove BuildTargetInfo::displayNamehjk2018-02-094-6/+8
| | | | | | | | | | | This was previously intented to be used in the RunConfig Add... menu, but this role is now taken by RunConfigurationCreationInfo::displayName. This fixes also a regression for setups that relied on QmakeProject::buildTargets() and a fix up empty display names later. Change-Id: If75fc79efbdedc918a126e50c962fc188d7a3ebc Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Qnx: Remove run-time dependency on QmakeProjectManagerhjk2018-02-098-26/+18
| | | | | | | | | This re-uses what work in RemoteLinux. There's still a compile-time header dependency due to the QmakeProjectManager::Constants::KIT_INFORMATION_ID constant. Change-Id: I6d6b8bbaed8ec2e80d54afe62a5a6b7f84eb37ec Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* CppTools: Get OverviewModel from model managerIvan Donchevskii2018-02-098-1/+30
| | | | | | | | Move ownership and add the placeholder for future clang based OverviewModel. Change-Id: Ia44d2c1d0db59b40239d1f7934bf37a02e4b14e6 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Clang: Use more generic methods in OverviewModelIvan Donchevskii2018-02-097-80/+88
| | | | | | | | Do not return Document or Symbol. Instead use Link or LineColumn directly as return values. Change-Id: I1863d7c3b4985ffe2ae5454622227075ebdc2de7 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* CPlusPlus: CppEditor: refactor overview modelIvan Donchevskii2018-02-0911-145/+206
| | | | | | | | | | Introduce abstract model to be able to use clang based version of it in follow up patches. Fix warnings and modernize source code a little. Move OverviewModel to CppTools. Change-Id: Idcc9bf03cad047026a456bd01063597a1eb95147 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Beautifier: Re-organize internal interfacehjk2018-02-099-134/+100
| | | | | | | | | - pimpl BeautifierPlugin - apply "static" pattern - remove use of global object pool Change-Id: I7a4ab2493d5b29787aca258d1bc46ab00a697176 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* CppEditorPlugin: Partially pimpl and avoid use of global object poolhjk2018-02-093-77/+63
| | | | | Change-Id: I1e55848a9947ff0b4bffcdca717419db8f6f2fa5 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Glsl: Avoid use of global object poolhjk2018-02-093-122/+77
| | | | | | | Also, use the opportunity to re-organize and clean up a bit. Change-Id: I09d5635f48d98b450ffd1eb1a0e003a288cf6804 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Todo: Remove nowadays unneeded use of global object poolhjk2018-02-091-6/+3
| | | | | Change-Id: I3ff79f44dbb1fec19053949915a9d5ef71021ab2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QmlDebug: Fix missing includeChristian Stenger2018-02-091-0/+2
| | | | | Change-Id: I5004d1444f8106e1d557c2423eed73baca82a65d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Clang: Rename FileInformation in FileStatusMarco Bubke2018-02-0822-76/+76
| | | | | | | It's more near to the Unix convention and it has a plural too. Change-Id: I53f85911d8fcbaadba9947c70e9a375dc6995ed5 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* UnitTests: Fix printing warning for not handled enumerationMarco Bubke2018-02-081-0/+1
| | | | | Change-Id: Ie590fff1d7a18552fadb34319a1423a6e0855df3 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Remove export filtersMarco Bubke2018-02-082-13/+3
| | | | | | | Lets try to find a better way to do it later. Change-Id: I960abf65c910f639cc860b8e1291b0c235b7db07 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* QmlDebug: Allow retrieval of blocked engines from EngineControlUlf Hermann2018-02-082-11/+24
| | | | | | | | Also, don't accidentally add engines to the list on engineAdded() and engineRemoved(). Change-Id: Ida4362eb003b85282dad17afbf0116c82f024288 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* C++: Do not auto-insert '}' after class/struct/enum/unionNikolai Kosjar2018-02-082-1/+76
| | | | | | | | | | | | ...when typing the opening brace. This restores the initial behavior from version 4.3. Not auto-inserting the closing brace allows the user to press Enter to get "};" completed. Change-Id: I8c62a08433a947e28f0555338a5fb8eeeae11bea Task-number: QTCREATORBUG-18872 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* QmlProjectManager: Allow QmlProjectRunconfigurations on non-DesktopUlf Hermann2018-02-081-1/+0
| | | | | | | | This is an artificial restriction accidentally added by a previous commit. Change-Id: I6c3273ed3f0b9f223304ecce35e81ed6013ae275 Reviewed-by: hjk <hjk@qt.io>
* QtSupportPlugin: Pimpl partially to remove uses of global object poolhjk2018-02-082-18/+34
| | | | | Change-Id: I6c23d6220e8ca212f3785a7aff7915d7979f01eb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* UpdateInfoPlugin: Remove one unneeded use of global object poolhjk2018-02-081-1/+1
| | | | | Change-Id: If9e6f989de24c447fd33a1cfa3ed22d6fad6788d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QmlJSPlugin: reorganize setuphjk2018-02-088-87/+53
| | | | | | | Pimpl, remove use of global object pool, cosmetics, ... Change-Id: I9e1415b07d7ff8e95db0998c87ce7d75ca638a8e Reviewed-by: Marco Benelli <marco.benelli@qt.io>
* ScxmlEditor: Avoid use of global object poolhjk2018-02-084-27/+12
| | | | | | | Including some code cosmetics. Change-Id: I6d7f11404ea489020d0c74e43cbe25cdcaa48e85 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* DiffEditor: Remove unneeded used of global object poolhjk2018-02-081-2/+2
| | | | | Change-Id: I7b1cd980702313e3ef2501519aa64042d4483bb8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ImageViewer: Remove unneeded use of global object poolhjk2018-02-082-14/+6
| | | | | | | | Plus some code cosmetics. Change-Id: I4e10f1900a5a06bb37bc2d20f3dd776c7534011e Reviewed-by: Denis Mingulov <denis@mingulov.com> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: run vcvars bat in parallelDavid Schulz2018-02-082-13/+45
| | | | | | | | | | | Instead of collecting the environment differences for all MsvcToolChain when needed, start an async job at object construction. This reduces the blocking startup time depending on the Toolchain count up to 8 seconds. Change-Id: Ie004956f290d7555f88226c7f4d9f7eb37ec2261 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ClangStaticAnalyzer: Remove uses of global object poolhjk2018-02-072-40/+15
| | | | | Change-Id: I6cdfade5ecbfb48d714c6055fab733b8061369b4 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* QmlDesigner: Avoid use of global object poolhjk2018-02-074-35/+25
| | | | | | | Plus some code cosmetics. Change-Id: I6fde62da5a99e750131d20336d35565280ac7bef Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* RunSettingsWidget: Skip non-matching factoriesChristian Kandeler2018-02-071-0/+2
| | | | | Change-Id: I8dd924d1b29ec06cf0fdd8868a8678e47de687f1 Reviewed-by: hjk <hjk@qt.io>
* CodePaster: Avoid use of global object poolhjk2018-02-074-8/+6
| | | | | Change-Id: Ib81694d9dd3e8d040adc9ca12e9296e5cceb8208 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* C++: Check previous lines for auto insertion of closing braceNikolai Kosjar2018-02-071-65/+64
| | | | | | | | | | | | | If '{' is typed, we check whether '}' should be auto-inserted. Previously, we did this by only looking at the tokens of the current line. By using the BackwardsScanner we can easily look also at the previous lines, which fixes e.g. namespace N <CURSOR> // type '{' - no '}' should be inserted. Change-Id: Ib2c2989c33f87464431d45facf986bcbb2eff2f8 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* CPlusPlus: Add toLink method to the SymbolIvan Donchevskii2018-02-079-31/+30
| | | | | | | | Basically move it from CppTools to CPlusPlus to be able to use it there. Change-Id: I0af80f93bdc029824397ceafdf940cb86c4382b0 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* ProjectTree: Do not register action more than onceTobias Hunger2018-02-071-6/+8
| | | | | Change-Id: I9d9c86694cd8066ba4be2a065805a3b52bc272ff Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CppTools: Apply 'static' pattern to StringTablehjk2018-02-0713-105/+97
| | | | | | | | This also fixes a crash on loading (some?) projects introduced in 577bf7c08a. Change-Id: Ie35d466fa3b84b183118fe93f55393a4c59755de Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* CMake: Fix warning about unused parameterTobias Hunger2018-02-071-1/+4
| | | | | Change-Id: I008a9e6193503a2d2761675921b6bc673ea5333d Reviewed-by: hjk <hjk@qt.io>
* TextEditor: Modernize texteditor.{cpp,h}Nikolai Kosjar2018-02-072-89/+84
| | | | | | | | Apply some clazy and modernize fixes from clang tidy: mostly use of nullptr and removal of type duplication. Change-Id: Ibd9ee8f9b8a836a40d6f9be0b95acc91513a1a01 Reviewed-by: David Schulz <david.schulz@qt.io>
* QtSuppport: Remove unused static functionhjk2018-02-071-6/+0
| | | | | Change-Id: Ifa884a440581c77f6d99ad6ee0669b8e5eb4aeda Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CppToolsPlugin: Partially pimpl and remove use of global object poolhjk2018-02-072-29/+45
| | | | | Change-Id: Iee09bf2fc7c945b8dcf950edfe94889d35c63735 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Welcome: Detach Welcome page registration for global object poolhjk2018-02-071-6/+0
| | | | | | | We require individual pages to be provided in Plugin::initialize() Change-Id: I431112b523ed4cc803c07e5c6df8aa8d4ed1663b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CppTools: Remove an unused declarationhjk2018-02-071-4/+0
| | | | | Change-Id: I165f32678d61e3731fff68982bdb3f5c1791b1f0 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Merge remote-tracking branch 'origin/4.6'Eike Ziller2018-02-07119-596/+1211
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/coreplugin/locator/locator.cpp src/plugins/imageviewer/imageviewerplugin.cpp src/plugins/remotelinux/remotelinuxplugin.cpp src/tools/clangbackend/source/tokeninfo.cpp tests/unit/unittest/data/highlightingmarks.cpp Change-Id: I74cc3ba3a2836cb9d0e65d3380d8c4f88d720c67
| * UI text: Fix grammarLeena Miettinen2018-02-071-2/+2
| | | | | | | | | | Change-Id: I39fd5db51e3228de34c028993416f66fce9962da Reviewed-by: Robert Loehning <robert.loehning@qt.io>
| * Android: Fix empty output tab header and run configuration nameVikas Pachdha2018-02-072-7/+8
| | | | | | | | | | | | Task-number: QTCREATORBUG-19711 Change-Id: I5dc97129fa2e37360b9d74d99888703e049b9049 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
| * Heob: Fix UI textLeena Miettinen2018-02-071-17/+17
| | | | | | | | | | | | | | | | Fix issues in writing style and punctuation. Change-Id: I68da7960ccb5876ec8baf3b8eab1ab7e0d475a77 Reviewed-by: Hannes Domani <ssbssa@yahoo.de> Reviewed-by: hjk <hjk@qt.io>
| * Clang: Add environment variables for extra clang flagsIvan Donchevskii2018-02-073-5/+88
| | | | | | | | | | | | | | | | | | Different variables for clang code model and clang static analyzer. Task-number: QTCREATORBUG-19329 Change-Id: I64abdefb8c646a6f45f789a61abf75198e7ca3b8 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
| * CppTools: Remove unneeded #includeNikolai Kosjar2018-02-071-1/+0
| | | | | | | | | | Change-Id: I3b1dd5aa12ba8690ee5de98ccdef99644fff04f9 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
| * Utils: Do not blindly assume qmake* is an executableChristian Stenger2018-02-071-1/+1
| | | | | | | | | | Change-Id: Iec444d2883536a0140197af9e8b90e3050d8fc5b Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>