aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nim
Commit message (Collapse)AuthorAgeFilesLines
* Make some qHash and comparison operators overloads hidden friendshjk2021-12-062-7/+6
| | | | | | | Restricts lookup scope more to necessary bits. Change-Id: Ia42c95aaa70534843b7f6a90bfc56d2a1202c612 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Add missing "emit"sAlessandro Portale2021-11-111-3/+3
| | | | | Change-Id: I88a7397c7689b1e72cdd0e52077f8097443963c0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: FilePathify Environment::{ap,pre}pendOrSetPath etchjk2021-11-102-2/+2
| | | | | Change-Id: Idfa5ec247337570936b0236cab9d3a5669792ca0 Reviewed-by: David Schulz <david.schulz@qt.io>
* Use QtcProcess in NimSuggestServerJarek Kobus2021-11-092-22/+14
| | | | | Change-Id: If4e67a06cfb44c4ae94a78930745d29fb2330b9a Reviewed-by: hjk <hjk@qt.io>
* Use QtcProcess in NimToolChainJarek Kobus2021-11-051-4/+5
| | | | | Change-Id: If45fe607cb17387692f9350166d1382090a9a50a Reviewed-by: hjk <hjk@qt.io>
* Remove unneeded includes of QProcess from cpp filesJarek Kobus2021-11-011-1/+0
| | | | | | | | QProcess wasn't used in these files. Change-Id: I24900bcf312eb6ea1ca3bc0c753cebb505ec552b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* Editor: pass AssistInterface to createProcessorDavid Schulz2021-09-162-2/+2
| | | | | | | | | The interface can be used for checking the context of a codeassist request to determine the correct processor that has to be created. Change-Id: I47ddb05c46399566e27bae21711f11a3a4132c3f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove unused includes of QThread from cpp filesJarek Kobus2021-09-131-1/+0
| | | | | | Change-Id: I61b8e9182bf03fa96d2aabe399a6c93964fc8d03 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* Replace some PathChooser::setFile with setFilePathhjk2021-09-131-2/+2
| | | | | Change-Id: I9a135e27d97b6706ea199b60a0b0b28838c77dcc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Give build systems a nameChristian Kandeler2021-09-092-1/+2
| | | | | | | | ... and make it accessible through a variable. Fixes: QTCREATORBUG-26147 Change-Id: I0601c09a74360b91fe8421876207a8f4ae9d75b6 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Streamline access to buildDirectoryTemplate datahjk2021-08-242-13/+3
| | | | | | | There's only one kind of use, in the context of BuildConfiguration. Change-Id: I09628ff443ef08e28738125a614c17d5d979189b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Nim: Proliferate FilePath use in NimbleBuildSystemhjk2021-08-241-17/+14
| | | | | | Change-Id: I1c5d5a6fed96ba189cd5e9f4f45cf103f991df46 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
* Replace some uses of HostOsInfo::withExecutableSuffix with FilePathhjk2021-08-172-2/+2
| | | | | Change-Id: Id72e9fd04dd4995ff2775ee919f747018cbcc339 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Introduce a FilePath constructor from char arrayshjk2021-08-171-1/+1
| | | | | | | | | | | | Similar to QT_RESTRICTED_CAST_FROM_ASCII to avoid the need for decorations in user code. At the same time, drop some convenience constructors and functions in CommandLine and Icon essentially serving the same purpose. Change-Id: Ida4e5ac19c2da0a4298a97b2a8e1511d56bbb79d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Use FilePath for ProjectNode::{path,directory}hjk2021-08-061-1/+2
| | | | | | | ... and let the fallout trickle down a bit. Change-Id: I1a2f79e281725c4a121cc2fbbc0377e881616ce5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Use FilePaths in project tree nodeshjk2021-07-164-20/+20
| | | | | Change-Id: I31b15c428d9b962333947b1e32641fd80f61d069 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Change semantics of FilePath::onDeviceSearchInPath()hjk2021-07-081-1/+1
| | | | | | | | | | ... and rename it to searchOnDevice(). We need to handle additional search directories anyways, so its more uniform to always pass a list all of them. Change-Id: I46c7860b51d11c26db58045ff3ab922148af021f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* fix msvc Qt6 dev buildsTim Jenssen2021-07-071-0/+1
| | | | | | Change-Id: I4264a15c5033b9123c4e97caa86a909e654cef34 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Nim: Use remote device when searching compilers therehjk2021-07-061-3/+4
| | | | | Change-Id: Iab1cb1dbaaf789d2ad328ab70c3dec8839d4ffcc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CMake: Do not create file system node in main threadEike Ziller2021-06-231-1/+2
| | | | | | | | | | | | | The file system scanning was already in a thread, but creating a tree from the flat list of file nodes was still done in the main thread. Creating the tree looks for and creates folder nodes as needed for each file node, which is not that big of a deal but still takes 1/3 of a second for the Qt Creator source tree. Task-number: QTCREATORBUG-25783 Change-Id: I28948ed3ff5233f6fc4b86e93da94d882b81e231 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Core: filepathify file renamingDavid Schulz2021-06-174-6/+6
| | | | | | Change-Id: I3d4f39e34e65cde3df7b7c19570e3a54d0625d53 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* Utils: add FilePath::completeBaseNameDavid Schulz2021-06-042-2/+2
| | | | | | | Removing some FilePath::toFileInfo() calls again. Change-Id: I6610beebf2c30754fde525b71f4c4a34ceb5e30b Reviewed-by: hjk <hjk@qt.io>
* Utils: add FilePath::baseNameDavid Schulz2021-06-031-1/+1
| | | | | | | Removing some FilePath::toFileInfo() calls Change-Id: I49be2ef260f225e07b64ee8ace6a8cd47a9d8bb2 Reviewed-by: hjk <hjk@qt.io>
* Utils: filepathify LinkDavid Schulz2021-05-251-1/+1
| | | | | Change-Id: Ie62500bde139158e776f9698ee0ea00c2a113f93 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Move process arguments class out of QtcProcesshjk2021-05-111-1/+1
| | | | | | | | | | | | The main QtcProcess interface is nowadays a CommandLine, with no explicit references left to QtcProcess::Arguments and related static helper functions, so it only clutters the QtcProcess class interface So move these items out of QtcProcess, later potentially to a separate file pair. Change-Id: I45c300b656f5b30e2e2717232c855fdd97c2d1d7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Pass device to ToolChain::autodetecthjk2021-04-282-2/+5
| | | | | | | | Currently unused, will be useful to detect toolchains in docker containers. Change-Id: I0fd7643969ab02c05839332a436147ffb242635d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Nim: Adapt to new AspectContainer base classhjk2021-04-011-1/+1
| | | | | | | AspectContainer is now based on QObject already. Change-Id: Ic4c10ed3ed8ca8f7f1f1c5a43a8f8cdb8d97febf Reviewed-by: hjk <hjk@qt.io>
* Nim: Aspectify NimSettingshjk2021-04-0110-299/+59
| | | | | | Change-Id: I3954bec762fb3f5d3426663108ff493f140f1b5e Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
* Utils: Use a full layout row for an aspect for Columns and Formshjk2021-03-251-1/+1
| | | | | | | | | | Avoids some boilerplate on the user code side. This seems to be the only existing case. If there'd ever be a case where this is not appropriate, an extra Row { ... } would solve it. Change-Id: I1ae1102e895640c0acc03b4949e3baabecfcdc49 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Nim: Pass on parse errors to issues paneChristian Stenger2021-03-183-0/+21
| | | | | | | | | When parsing the config of a nim project we may have parser issues that might be of interest for the user. Change-Id: Iefec8194fe625110579cda8cf840e03945e677b9 Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: hjk <hjk@qt.io>
* Nim: Simplify NimbleBuildStep implementation a bithjk2021-03-171-33/+12
| | | | | Change-Id: Ifc5a2bee0ac2fc2e9e7d5a474c0453ec49ae733f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Avoid intermediate widgets when using LayoutBuilderhjk2021-03-161-6/+6
| | | | | | | | | | | | In most cases, the layout constructed in the builder was set on a widget which in turn was put into a vbox in the actual widget. This is not necessary, but needs some re-ordering. Also make sure that using not-yet-parented widgets during layout construction does not cause visible artifacts. Change-Id: I75727a571da093d3131ea6fba467c2c646cdb6f1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Use qAsConst with non-const Qt containers in range-loopsAlessandro Portale2021-02-172-7/+11
| | | | | | | ... in various places Change-Id: Ic6c0c1b9437a1ed402105c7a14a1f5f9454a68d4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Nim: Resolve duplicate codeBernhard Beschow2021-02-037-146/+182
| | | | | | | | | Both NimParser implementations were exactly the same code but only one got tested. Change-Id: Icdd8badfe60c8d2d8d3184b8307bd3ab67aee95e Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Provide a ToolChain::isValid() base implementationhjk2021-01-062-10/+0
| | | | | | | | | | | It checks for an executable compilerCommand(). This was used in Gcc, Clang and Nim before. MSVC still overrides with a different test. The formerly unconditional 'return true' for Keil/IAR/Sdcc uses that check now, too. Change-Id: I433a5ac6784277dc77129b2671c28af6913327a7 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Nim: Fix some nimble pathsBernhard Beschow2021-01-042-4/+2
| | | | | Change-Id: I78a66d17931316d9baec5f2857cae12a6a62ab2c Reviewed-by: hjk <hjk@qt.io>
* Nim: Remove unused methodBernhard Beschow2021-01-042-10/+3
| | | | | | | ... and its associated attribute along the way since it is not needed any longer. Change-Id: I25a8c5fd9ee45de10b3764805c4df0500a5fd6cf Reviewed-by: hjk <hjk@qt.io>
* Nim: Fix include pathBernhard Beschow2020-12-141-1/+1
| | | | | Change-Id: Iff5ecf8a006f76c35ee1ae8bc3f6f16a71daff58 Reviewed-by: hjk <hjk@qt.io>
* Merge remote-tracking branch 'origin/4.14'Eike Ziller2020-11-302-15/+0
|\ | | | | | | | | | | | | Conflicts: src/plugins/projectexplorer/gcctoolchain.cpp Change-Id: I2136ba89d3aa3c4c2a0e7a4f9d8ba9cec32924ce
| * ProjectExplorer: Remove unused virtual Toolchain::builtInHeaderPaths()Christian Kandeler2020-11-302-9/+0
| | | | | | | | | | Change-Id: I684b4b7fba9b74baf0834e7d5a0815673c666112 Reviewed-by: hjk <hjk@qt.io>
| * ProjectExplorer: Remove unused virtual Toolchain::predefinedMacros()Christian Kandeler2020-11-302-6/+0
| | | | | | | | | | Change-Id: I24e515ba1767c72cbf43ae250908f571f0229e9f Reviewed-by: hjk <hjk@qt.io>
* | Nim: Remove unused codeBernhard Beschow2020-11-306-77/+0
| | | | | | | | | | | | Change-Id: I989b951c0fa3a7bc732105c5b3985ea6b61a2fab Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
* | Nim: Remove unneeded wrapper methodBernhard Beschow2020-11-302-7/+1
| | | | | | | | | | | | Change-Id: I12b6a42a0611342644b2ff448cd33cedd3eb6ec8 Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: hjk <hjk@qt.io>
* | Nim: Remove unused attributeBernhard Beschow2020-11-301-1/+0
| | | | | | | | | | Change-Id: If8961425f658cac96f49e1d78f083c20aed6d818 Reviewed-by: hjk <hjk@qt.io>
* | Add missing "final" to unexported/unshared classesAlessandro Portale2020-11-181-1/+1
| | | | | | | | | | Change-Id: I84d5fc39d7ef5588a20545854d0cfd0b993db090 Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/4.14'Eike Ziller2020-11-131-1/+0
|\| | | | | | | | | | | | | Conflicts: src/plugins/mesonprojectmanager/project/mesonprojectparser.h Change-Id: Id38d20ce20981dcdc322fe5d1d7647f4bec89d8a
| * Remove unneeded includesJarek Kobus2020-11-121-1/+0
| | | | | | | | | | Change-Id: I67fee9303509b7080e123a2a5826e200ce498ce2 Reviewed-by: hjk <hjk@qt.io>
* | ProjectExplorer: Consolidate *ToolChain::compilerCommand() implementationshjk2020-11-133-29/+6
| | | | | | | | | | | | | | | | | | | | | | All ToolChains had an compiler command member one way or the other, so have one in the base class and drop all others. ClangClToolChain is quirky insofar as it diverts the compilerCommand() to the additional m_clangPath member. This is left for a later patch. Change-Id: Ic8b5da17a4b7050966d0c37573edb0706fac2ecf Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | ProjectExplorer: Consolidate *ToolChain::target() implementationshjk2020-11-112-6/+1
|/ | | | | | | | | All ToolChains had an Abi member one way or the other, so have one in the base class and drop all others. Change-Id: Ic4ed47b77f51c2c53d5692c66e6103c6bb23277e Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix lupdate issuesEike Ziller2020-11-091-0/+1
| | | | | | Change-Id: I1971f74a54e4afe2d106c105f6b38f415bef488f Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>