- 20 Sep, 2017 1 commit
-
-
Tobias Hunger authored
Add an option to CMakeTools to force auto-creation of build directories. This does lead to cmake cluttering up the file system with directories, but does not force users to go through the oftentimes long configuration process twice (once in a temporary directory and once in the real location). Task-number: QTCREATORBUG-16794 Change-Id: I68d92fc58638ad0a0a7622b7ef1621e055c9f2a7 Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 19 Jul, 2017 2 commits
-
-
Claus Steuer authored
The dialog is shown when the cmake configuration changes. The user can either apply the changes or reject them. To determine the decision of the user the return value of the dialog is evaluated. This is wrong because the dialog uses custom buttons (see documentation of QMessageBox::exec). As a consequence the configuration is never applied. Use QMessageBox::clickedButton to determine the user decision. Additionally change the role of the apply button from AcceptRole to ApplyRole as this better matches its intention. Change-Id: I1d2d1fb7186dcc8d789c192c51bb34111eb84ee5 Task-number: QTCREATORBUG-18292 Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
Claus Steuer authored
When the cmake configuration changes, BuildDirManager checks whether the new configuration differs from the current configuration. In case of differences a dialog is opened and the user must decide if the changes shall be applied or rejected. When the user changes the cmake configuration in the projects page the dialog will open as well. This is unencessary since the user already decided to apply the changes. Let BuildDirManager not check for changes if the configuration was changed by the user via the projects page. Change-Id: I736ee7f4dee99fe707f2931c73b287231b1daa1d Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- 23 Jun, 2017 1 commit
-
-
Tobias Hunger authored
This triggers the logic in Project to show the top level project file in the project tree. Remove similar logic in CMake. Change-Id: I2bfdd3f5e3d4126910a3feb480cec5ef689954ed Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io> Reviewed-by:
Florian Apolloner <florian@apolloner.eu>
-
- 21 Jun, 2017 1 commit
-
-
Tobias Hunger authored
Broken by e42f3db9 from today:-/ Sorry. Change-Id: I4803039939de5aae893a701e2bd6399d3fbfae1f Reviewed-by:
Florian Apolloner <florian@apolloner.eu> Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 20 Jun, 2017 1 commit
-
-
Tobias Hunger authored
Make sure that build targets that get added explicitly are never reported by any of the readers, too. This makes sure entries will not show up twice in the UI. Task-number: QTCREATORBUG-18409 Change-Id: Id5039add262211fd87cd5c2884df2af0fcf24577 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 13 Jun, 2017 1 commit
-
-
Tobias Hunger authored
Always show a test target for cmake projects. This will show even if there are no tests in the project. But I think it is more annoying *not* to be able to run tests via the locator when tests are available than getting an error message when attempting that with a project that does not have tests. Task-number: QTCREATORBUG-18323 Change-Id: Iba85aa868cb9bfe6c3f44a7ffff620d081d3082f Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io> Reviewed-by:
Eike Ziller <eike.ziller@qt.io>
-
- 27 Apr, 2017 1 commit
-
-
Tobias Hunger authored
Report special utility targets like "all", "clean" and "install" from the BuildDirManager and update UI accordingly. Change-Id: I01d0dcfa23d5bddc124c8f9ee1040475184c9c1e Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 27 Mar, 2017 1 commit
-
-
Tobias Hunger authored
Block access to the BuildDirManager while one of its errors is processed. This prevents more errors being raised as part of error handling, which can trigger a loop. Task-number: QTCREATORBUG-17869 Change-Id: Ic6f8d9a3c3b4e63f27260c40f27ab09d20b62b3e Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 15 Mar, 2017 1 commit
-
-
Tobias Hunger authored
Change-Id: I6e68b971cf490b9b064a2866bd99865a7f4a7bd9 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 13 Mar, 2017 2 commits
-
-
Samuel Gaist authored
This patch adds the missing include statements for QRegExp. Change-Id: Ibb03b929940adb84ae190b5090cb6b88653cc14c Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
Tobias Hunger authored
Change-Id: I9a168dfd6eecbe5a4ba9c5c69d5c99e962708024 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 10 Mar, 2017 1 commit
-
-
Tobias Hunger authored
It is no longer necessary. Change-Id: Id044ace6f0861bc0fc659fb6d6823da1f0082bc9 Reviewed-by:
hjk <hjk@qt.io>
-
- 22 Feb, 2017 1 commit
-
-
Tim Jenssen authored
Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by:
hjk <hjk@qt.io>
-
- 20 Feb, 2017 1 commit
-
-
Nikolai Kosjar authored
${AnyProject}::updateCppCodeModel() did two potentially not that cheap operations in the ui thread: (1) Querying the MimeDatabase for the mime type for the source files of the project. In 99.9% of the cases no files need to be read for this as the file extension will resolve the type. The expensiveness comes from the sheer number of files that can occur. (2) Calling compilers with the "(sub)project's compiler command line" to determine the macros. While the caches avoid redundant calls, the number of the unique compiler calls makes this still a ui-freezing experience. These two operations are moved into a worker thread. For this, the expensive compiler calls are encapsulated in thread safe lambdas ("runners") in order to keep the "mutexed" data minimal. The original API calls of the toolchains are implemented in terms of the runners. While adapting the project managers, remove also the calls to setProjectLanguage(). These are redundant because all of the project managers already set a proper value in the constructor. Also, currently there is no need (client) to report back detection of C sources in project parts. This also keeps CppProjectUpdater simple. There is still room for improvement: * Run the compiler calls in parallel instead of sequence. * Ensure that the mime type for a file is determined exactly once. Change-Id: I2efc4e132ee88e3c8f264012ec8fafe3d86c404f Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- 10 Feb, 2017 1 commit
-
-
Tobias Hunger authored
The CMakeProjectImporter will need that in addition to the tealeafreader. Change-Id: I453a7a124b5303e163e9c85bc3fc215215617119 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 09 Feb, 2017 1 commit
-
-
hjk authored
One step closer to direct use of Utils::TreeNode. Change-Id: Icd0dfd2fa4d12c2572a68f61ae43c5e906956a0e Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- 27 Jan, 2017 1 commit
-
-
hjk authored
... and use them. Change-Id: I9f5237e5eac30715c2effbd3301dd2a70516d2a9 Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- 20 Jan, 2017 1 commit
-
-
Tobias Hunger authored
Both wrap the corresponding Qt class, but make sure all temporary files or directories are created inside a "master temporary directory". Change-Id: I55461be507c828c965224c02863ea5ed9bbf9498 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 19 Jan, 2017 1 commit
-
-
Tobias Hunger authored
Change-Id: Id9e707d7b07d35ade44959955db61810e34f7b30 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 21 Dec, 2016 2 commits
-
-
Tobias Hunger authored
Even if there was none found by the project reader. This can happen when the cmake binary can not be started at all with the server-mode reader. I wanted to avoid just creating this node as that does mess with the expansion state of the tree. But considering that we know that the tree is empty otherwise that should actually not be a problem. Change-Id: I5ae5ed3e2fa7eebdfc1f9b7d55d70417abfcd125 Reviewed-by:
Alessandro Portale <alessandro.portale@qt.io>
-
Tobias Hunger authored
This makes sure they need to copy whatever they need. Change-Id: I767ac0c5f54ca1f9f46acdefe4bd7fea35657312 Reviewed-by:
Alexander Drozdov <adrozdoff@gmail.com> Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 13 Dec, 2016 1 commit
-
-
Alexander Drozdov authored
Project source tree is a same for all build configurations so it is a good idea to keep it persistent between CMake runs, configurations switches and so on. It safes a lot of time for big projects. Move more operations to the scanner thread: - Nodes filtering: skip .user files on top level of the project, skip well-known extensions and octet-streams: In most cases these are not required to be shown in the project tree. - Nodes sorting Fix small memory leak: we have .user in the scanner result. After this node filtered out, but is not feed (old code at the BuildDirManager::generateProjectTree()). Now .user file skips during scan without memory allocation at all. Allow user manually rescan project tree by call Build -> Rescan project tree. It runs CMake and Tree Scanner together: in most cases only CMake run requires but time to time (VCS update) full rescan also required. Change-Id: I4a6e6c897202da557509291c79932dd7751860e5 Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- 05 Dec, 2016 1 commit
-
-
Tobias Hunger authored
Server-mode only used to clear the tasks for normal parsing. Change-Id: Ibbc3ac30f00afaff4874cb0682f5d7e8f1abafcd Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 02 Dec, 2016 3 commits
-
-
Tobias Hunger authored
This fixes saves memory and fixes some update issues with the cmake configuration, where the three layers of caches used to interfere with each other. Task-number: QTCREATORBUG-17360 Change-Id: I5564bbe46ca8de6b38dd710100bfc18fad98eac5 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
Tobias Hunger authored
The reader notifies us about the configuration being changed, so there is no need to tell it about those changes again. Change-Id: I458947babf1cd9c50a66ea7863f37d1e43d6c5f2 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
Tobias Hunger authored
According to the cmake developers this needs to be done. Change-Id: I85670da11be31a71dd22fe2ea8d9102e47cc6535 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 30 Nov, 2016 1 commit
-
-
Tobias Hunger authored
No need to have the builddirreaders to so. Change-Id: Ia7e38f6483b29d6a4f4b65baacc17bf184a3cb34 Task-number: QTCREATORBUG-17359 Reviewed-by:
Florian Apolloner <florian@apolloner.eu> Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- 14 Nov, 2016 5 commits
-
-
Tobias Hunger authored
Change-Id: I7a86169f4dd891c91295a7d6daadfd2bac8db751 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
Tobias Hunger authored
Change-Id: Ief884a76c1b4211501dd6515b17b6e88a8e881e5 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
Tobias Hunger authored
Always show the top level CMakeLists.txt file in the project tree, even when parsing failed. Change-Id: I42c844eb54b32fcb51131ad63a8fc372622636fc Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
Tobias Hunger authored
Change-Id: I06ed341a603f4062b41eabc91a90d6d8041aaa4b Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
Tobias Hunger authored
Change-Id: I226aeafe6800a84fe4bbf8cf6fd21b8237575a88 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 08 Nov, 2016 1 commit
-
-
Tobias Hunger authored
Do not run cmake on file changes if that was disabled in the CMakeTool. Task-number: QTCREATORBUG-17232 Change-Id: I478161aebe353ddc47e24dd8a7f2cec54822e7d0 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 07 Nov, 2016 1 commit
-
-
Tobias Hunger authored
This prevents stale tasks from piling up in the issues pane. Change-Id: I90f79e969b8929e5bb43e3964c01fcd10af2ea33 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 04 Nov, 2016 2 commits
-
-
Tobias Hunger authored
CMake is pretty poor with the data on which files are contained in a project. Run a filesystem scan of the project directory to find more files. Change-Id: I9cc3293a9faf9a967efa5f586c144c3e7773588b Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
Jaroslaw Kobus authored
Change-Id: Ie8d2c6761c87b358f0bc8691e529ba8144e267a4 Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@qt.io>
-
- 01 Nov, 2016 1 commit
-
-
Tobias Hunger authored
Change-Id: I1e66b4decd485edac9e3fb5508d5c0bb10d0554a Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 31 Oct, 2016 2 commits
-
-
Tobias Hunger authored
Change-Id: I2f309e38e99a7b5836c623995e71470e7161ee98 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
Tobias Hunger authored
Change-Id: I415dbf7ca79c909eea23ef3dc3a1d87438e9f261 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-