summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | C++: Make cplusplus-update-frontend generate "nullptr"Nikolai Kosjar2020-05-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The commit 2e14df7561ee10c7a408bd3ebb4944016ecdd1f4 replaced some "0" by "nullptr" on e.g. the generated ASTClone.cpp. Running cplusplus-update-frontend reverts the changes for the generated files again, so adapt cplusplus-update-frontend to generate "nullptr" instead. Change-Id: I16750da0df57692405c5b33462f1f63f05c175c1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | CMake build: Move documentation functions to re-usable locationEike Ziller2020-05-256-308/+331
| | | | | | | | | | | | | | | | | | | | | | Removes "install_..._docs" and "clean_docs" special targets. Instead install documentation with "--install . --component qch_docs" and "--install . --component html_docs" which have the advantage that the install prefix can be specified later on with --prefix. Also removes export of IDE_SOURCE_DIR, which is not used. Change-Id: I4fce0b9aa8c7fc40b7e94e065777ddf4c0b76c41 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | Android: add service editor to manifest editorVille Voutilainen2020-05-258-8/+805
| | | | | | | | | | | | Task-number: QTCREATORBUG-23937 Change-Id: Iec0435721504df744ec985bd3e5cefcc0700e852 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* | Debugger: Drop 'set print object on' for GDBhjk2020-05-252-2/+0
| | | | | | | | | | | | | | | | | | This does not seem to affect the code paths we are using through Python. Task-number: QTCREATORBUG-23965 Change-Id: I2e20d6d3c1937d56293e81b74c453e83a92ddc4c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | C++: Do not mis-align function arguments that are initializer listsChristian Kandeler2020-05-251-0/+1
| | | | | | | | | | | | Fixes: QTCREATORBUG-24035 Change-Id: I93598ff64fc6fd74008c942b8755da5e481c63c7 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* | C++: Fix wrong formattingChristian Kandeler2020-05-251-1/+1
| | | | | | | | | | | | | | | | ... when using a shift operator inside an initializer list. Fixes: QTCREATORBUG-16977 Change-Id: I8992162c05345b713c665e3601ae593af5007211 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* | Doc: Fix naming of .index filesEike Ziller2020-05-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | Qt Creator Manual and Extending Qt Creator had the same project name, and therefore the same index file name. Also qdoc's "depends" configuration requires the index file to have the same name as the directory. Adapt the project names accordingly. Change-Id: Ie1ec8ede360e19e3ffd5c7dbea44344f0a631f68 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | LSP: Do not accumulate connections during signal emissionhjk2020-05-252-4/+8
| | | | | | | | | | | | | | | | | | | | | | Amends cdeac76df3. During the execution of updateProject() triggered by a fileListChanged() emission new connections to the fileListChanged() were added, effectively making the emit never return and gobbling up all available memory. Change-Id: I18a1ab9b32c2e797e990449385a5353782211560 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Android: allow sdkmanager to parse all generic packagesAssam Boudjelthia2020-05-223-1/+55
| | | | | | | | | | | | Task-number: QTCREATORBUG-23829 Change-Id: I29bd70a6703b9537e4a884e5acc53e2e2dd020cb Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Clang: Disable a clangformat test for vanilla clangNikolai Kosjar2020-05-221-1/+8
| | | | | | | | | | | | | | ...that requires a custom patch to work. Change-Id: I954286f47112b660dc6ee681dac2250a9e8da0df Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Clang: Disable a completion test for LLVM/Clang 10Nikolai Kosjar2020-05-223-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the case struct Foo; void f(Foo *foo) { foo->/*COMPLETE-HERE*/ } no completions are expected as "Foo" is only forward declared. This seems to be handled correctly in current LLVM/Clang master (upcoming version 11), but wasn't with previous versions as pointless non-member-completions were returned. As our workaround is not applicable anymore with LLVM/Clang 10, disable the corresponding test for that version as we cannot do anything about it. Change-Id: Ia02696175d0d532e16bc16a1010821b4aed20f8b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Utils: Rename FilePath::rawFileName to rawFilePathhjk2020-05-223-5/+5
| | | | | | | | | | Change-Id: Idf8cad2b18087f511aa1efe54adbb5a427660016 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | QmlJS: Add workaround for missing imports in Qt >=5.15.0Christian Kamm2020-05-212-4/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The QtQuick module plugins.qmltypes in Qt 5.15.0 do not contain QML types like QtObject. Instead, they are found in the QtQml module. Something similar applies to QtQml and QtQml.Models and QtQml.WorkerScript. As Qt 5.15 can't use the "import" command in the qmldir file, this code instead detects the 5.15 QtQuick and QtQml modules and adds the dependent imports manually, as a workaround. Change-Id: I982e349298eb7200372390dfc384fb43a762b253 Task-number: QTCREATORBUG-23986 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | QmlJS: Use "import" commands from qmldir filesChristian Kamm2020-05-2115-12/+749
| | | | | | | | | | | | | | | | | | | | | | | | | | | | qmldir files can have lines like "import QtQml". These were already parsed, but not stored in LibraryInfo. Store them. When imports are resolved in Link and a library has such an import, also load the module it refers to, with the same version and "as" scope. Add a test to verify the behavior works. Change-Id: I80b260bfaa36a9e5de0849fa5632b3361077ef01 Task-number: QTCREATORBUG-23986 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | QmlJS: Scan import paths, even if there is only oneChristian Kamm2020-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | Previously a single QML import path would not be scanned. This did not usually happen to users, as there's almost always more than one path. But it could lead to unexpected behavior in tests that explicitly controled import paths. Change-Id: I015f44f183ad484c333ab7a4e5e98b87098620a7 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | QmlJS: Track futures to allow testingChristian Kamm2020-05-214-14/+48
| | | | | | | | | | | | | | | | | | Tests often want to wait for all async tasks to finish before progressing. Change-Id: I61738df730ca341b5c9d227569d961cd1991b296 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Philip Van Hoof <philip@codeminded.be>
* | QmlJS: Fix loading builtin library infoChristian Kamm2020-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | The condition was always false, since projectInfoForPath always returns an empty project member. This meant the the fallback builtins that ship with Qt Creator were used, instead of the builtins that shipped with the Qt version. Change-Id: I9c3bf949d0046bcf687c913e32ddac95734f6c43 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | Wizards: Fix typoChristian Stenger2020-05-201-1/+1
| | | | | | | | | | | | | | Amends 829faf7eefbf. Change-Id: Id09b5eca3a2c6a4a90d4402383723b8a03a59594 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Avoid qmake error when using MinGWChristian Stenger2020-05-201-1/+1
| | | | | | | | | | | | | | ...or if failing to detect cdb. Change-Id: I479e82064bfb95189c9fd608519226bbf38859fc Reviewed-by: David Schulz <david.schulz@qt.io>
* | Android: Settings widget code shuffling and cosmeticshjk2020-05-201-94/+92
| | | | | | | | | | | | | | Avoid a few casts, consts, #include Change-Id: I803d0b728ce6f7502893d07679f638c2504629e3 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* | LanguageClient: Use a new ListModel convienience functionhjk2020-05-201-2/+2
| | | | | | | | | | Change-Id: I5cf806f40264b5c10bb3b31c153a52760346d40d Reviewed-by: David Schulz <david.schulz@qt.io>
* | Android: Settings widget code cosmeticshjk2020-05-203-201/+188
| | | | | | | | | | | | | | unnecessary indirections, const, namespaces, ... Change-Id: I7955a81eafdce3fbb14646a57ce8436b00045278 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* | Android: Use Utils::ListModel for AvdModelhjk2020-05-201-71/+26
| | | | | | | | | | Change-Id: Iebbe137658288e60954bc63a97ddda948736fb09 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Android: Fix AvdModel::indexForAvdNamehjk2020-05-201-1/+1
| | | | | | | | | | | | | | | | This was using serialNumber instead of avdname, whereas the reverse function avdName() actually used avdname. Change-Id: Ieb91f97323f2adcf9306c90c91b145e494f177c0 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Utils: Rename ListModel::forItems to ListModel::forAllDatahjk2020-05-202-2/+2
| | | | | | | | | | | | | | | | | | This is more consistent with allData() and setAllData(). Adjust its only user. Change-Id: Idd5cea3f37c6a84d052bd56a4a413a35d80289ad Reviewed-by: David Schulz <david.schulz@qt.io>
* | Python: Use new ListModel convenience functions for interpreter modelhjk2020-05-201-8/+4
| | | | | | | | | | Change-Id: I98cbfd255fe35a9a9dd23f6c09c472c505ed271e Reviewed-by: David Schulz <david.schulz@qt.io>
* | Utils: Add some convenience functions to ListModelhjk2020-05-201-0/+22
| | | | | | | | | | | | | | allData(), setAllData(), and findIndex(<predicate>) Change-Id: I1f43e3b5c3810f219057e7e09338e06a66e1858a Reviewed-by: David Schulz <david.schulz@qt.io>
* | Revert "Debugger: use correct environment for the cdb process"David Schulz2020-05-201-7/+7
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 4749550fbcd6f227407d5f8e71ae3bf2b08e02fa. Reason for revert: The debugger environment doesn't contain all path adjustments from the run settings in the project mode. Fixes: QTCREATORBUG-24045 Change-Id: Ic714e7b99d51d51f74297f916817f302e8c4e1bb Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Android: warn about essential packages not foundAssam Boudjelthia2020-05-193-1/+21
| | | | | | | | | | | | Task-number: QTCREATORBUG-23829 Change-Id: Ic3ebd606bfde48b0f7152869a437f2f711ce1d03 Reviewed-by: hjk <hjk@qt.io>
* | LanguageServerProtocol: Compilation fix for MinGW 8.1Cristian Adam2020-05-191-4/+4
| | | | | | | | | | Change-Id: I5b7d643e529217a1077777ee542a48a237fa42b3 Reviewed-by: hjk <hjk@qt.io>
* | BareMetal: Save 'platform codegen flags' for Keil compilerDenis Shienkov2020-05-191-0/+3
| | | | | | | | | | | | | | | | Previous commit 071f998 skipped {re}storing of the platform codegen flags in the Keil compiler. Change-Id: I483f92a15017ba0471691d25685a2a8e9bd7d93c Reviewed-by: hjk <hjk@qt.io>
* | BareMetal: Tune IAR compiler using 'platform codegen flags' featureDenis Shienkov2020-05-192-9/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously we did a predefined macros generation for a some default target CPU, which is hardcoded in a compiler. Right now we have added the new text field in the IAR compiler settings page, called "Platform codegen flags". In this field we can specify the desired CPU or FPU target flags to generate an appropriate predefined macros (e.g. such as --cpu=, --core= and so forth). Change-Id: Ie38e077d8bac1851957085cde32661bcd189ddd2 Reviewed-by: hjk <hjk@qt.io>
* | BareMetal: Auto-detect IAR toolchain for Renesas M32C architectureDenis Shienkov2020-05-191-2/+6
| | | | | | | | | | | | | | | | | | | | This patch implements auto-detection for the M32C toolchain, provided by IAR Systems: * https://www.iar.com/iar-embedded-workbench/#!?architecture=M32C Change-Id: I0d983f82436dc527af7cb8550e0ebe745316c698 Reviewed-by: hjk <hjk@qt.io>
* | BareMetal: Add support for Renesas M32C architecture in GCC toolchainDenis Shienkov2020-05-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for the M32C atchitecture: * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html using GCC toolchains. Tested auto-detection on Windows using the GCC v4.7.3 toolchain provided from the following URL: * https://gnutoolchains.com/m32c-elf/ Change-Id: Iaddd69e3109a4bd81d094dcb4edab29c8b398f01 Reviewed-by: hjk <hjk@qt.io>
* | ProjectExplorer: Add support for new M32C architectureDenis Shienkov2020-05-192-0/+5
| | | | | | | | | | | | | | | | | | | | This commit adds new ProjectExplorer::Abi::M32CArchitecture entry for the Renesas M32C architecture: * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html Change-Id: Ic6ab278e5da6992824a1427ac86a470768fcdb1f Reviewed-by: hjk <hjk@qt.io>
* | Move splitString() method to base ToolChainConfigWidgetDenis Shienkov2020-05-196-34/+18
| | | | | | | | | | Change-Id: I382b5ad33e167356be19260454934940ae6d2d96 Reviewed-by: hjk <hjk@qt.io>
* | Revert "Android: Also install LLDB from SDK"Assam Boudjelthia2020-05-191-1/+1
| | | | | | | | | | | | | | | | | | This reverts commit 3e79c7da48b6add98ffa78b428c74121cddecd95. Reason for revert: sdkmanager no longer offers lldb packages (a recent change from Google) instead it's provided within the latest NDK ndk;21.1.6352462. Change-Id: If98ac86bb5086614d03f06e5f8c8e847bc65c0ed Reviewed-by: hjk <hjk@qt.io>
* | Android: AndroidManager code cosmeticshjk2020-05-192-77/+74
| | | | | | | | | | Change-Id: I228c29fb7dcf5d919bea3633ea235b5ae5a51a42 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Merge "Merge remote-tracking branch 'origin/4.12'"The Qt Project2020-05-1920-36/+59
|\ \
| * \ Merge remote-tracking branch 'origin/4.12'Eike Ziller2020-05-1920-36/+59
| |\ \ | | |/ | | | | | | | | | | | | | | | Conflicts: src/plugins/android/androidextralibrarylistmodel.cpp Change-Id: Ica69c24e83deff819e640dcb4c2682a554d8a2d2
| | * Squish: Remove pastecode.xyz from testsChristian Stenger2020-05-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Service is unavailable. Task-number: QTCREATORBUG-24002 Change-Id: I012681ec1ec1deb30387e1762fe72a877e56fa10 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
| | * Mcu: Remove unused functionshjk2020-05-191-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | Last and only users are gone with f08fe165ab586e61. Change-Id: Id5ff577ce3d1c8c47269536eca2140c9340c5b03 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
| | * Android: silence assert in AndroidExtraLibraryListModelv4.12.1Assam Boudjelthia2020-05-181-1/+2
| | | | | | | | | | | | | | | Change-Id: I57f2f8d6df3eb2b726b7056569d5e8f809e81177 Reviewed-by: hjk <hjk@qt.io>
| | * Android: make sure to remove the adb daemon logs from devices listAssam Boudjelthia2020-05-182-4/+7
| | | | | | | | | | | | | | | | | | Fixes: QTCREATORBUG-21797 Change-Id: I9153a5b2a0da4826179b436945fcc4616d65bb25 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
| | * Doc: Fix typo "sependencies" > "dependencies"Leena Miettinen2020-05-181-1/+1
| | | | | | | | | | | | | | | Change-Id: I1d3f3f0bbdcff3d557038d8feca5ffe234d58314 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
| | * Doc: Ensure QDoc finds Qt Design Studio examplesTopi Reinio2020-05-1811-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The name of the example project directory must match with the project file name and the \example command argument. This is case sensitive on platforms other than Windows. Change-Id: Ie6fa6934ee444b42f024ebf00d6a9b20dfd6abce Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
| | * Update change log for 4.12.1Eike Ziller2020-05-181-0/+39
| | | | | | | | | | | | | | | Change-Id: I25cce97a5a0a871e24c8898f3bb37e09199a9872 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
| | * Android: use latest ndk version instead of ndk-bundleAssam Boudjelthia2020-05-181-2/+2
| | | | | | | | | | | | | | | | | | Fixes: QTCREATORBUG-23903 Change-Id: Iae3561818d86952dad9209d55984c82498d07575 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
| | * Build script: Add option for passing arguments to build commandEike Ziller2020-05-151-1/+6
| | | | | | | | | | | | | | | | | | | | | So one can pass e.g. -j3 when locally testing while still doing other things Change-Id: I7a528884f19698290e49c372eb31030afe609d23 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | | Android: Shuffle debug server detection code a bithjk2020-05-193-43/+43
|/ / | | | | | | | | | | | | More in one place now. Change-Id: I974c9351246ea88d8d16bcf7fb45abf763b7b7e5 Reviewed-by: David Schulz <david.schulz@qt.io>