aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppquickfixsettings.h
Commit message (Collapse)AuthorAgeFilesLines
* CppEditor: Add quickfixes/ subdirectoryChristian Kandeler11 days1-134/+0
| | | | | | | | | | | We'd like to split up the monster files cppquickfixes.cpp and cppquickfix_test.cpp by moving non-trivial quickfixes into dedicated files. Since there will be many of them, we want to have them in a separate directory. This patch prepares that. Change-Id: I1e78fab5cce25151662297482582c8043618332e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils, all: Standardize on QtcSettingshjk2023-09-271-5/+3
| | | | | Change-Id: Id222016f15b1c3bfe6710fe5d0297666d4565ef1 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CppEditor: Let user decide whether to use "auto"Christian Kandeler2022-09-221-0/+1
| | | | | | | | | ... in "Assign to Local Variable" quickfix. Fixes: QTCREATORBUG-28099 Change-Id: I3640ef3d1e069bb2cac4d78f0ae60726b131c4fe Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CppEditor: Make value vs const ref return type configurableChristian Kandeler2022-09-191-0/+1
| | | | | | | | | | | | ... in the quickfix settings. Also change the default: With mandatory RVO and move semantics, value return types are the right choice most of the time. Fixes: QTCREATORBUG-25790 Change-Id: I68fc6c616358478ba893101b3e04aa6bbbe79348 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Utils: Remove Utils::optionalEike Ziller2022-09-011-3/+2
| | | | | | | | | | Since we are now requiring macOS 10.14 we can remove our local implementation of optional and use std::optional for macOS too. Change-Id: I2bd018261b68da64f7f031a812045dd7784697e1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CppEditor: Default to .cpp for QuickFix creation of 1-line setter/getterAlessandro Portale2021-02-111-2/+2
| | | | | | | | | | | | | | | | Until Qt Creator 4.14, the QuickFix for setter/getter creation for simple members added the implementation in the .cpp file. The new QuickFix settings in Qt Creator 4.15 in theory keep the default like before, but the threshold of 2 lines is usually not reached, which causes the getter/setter implementations to now land in the header file. This change sets the default threshold to 1 to restore the previous default behavior. Fixes: QTCREATORBUG-25331 Change-Id: I570deaa8b81686dc31254e8261b59ddcf8731f91 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Cpp: Use new settings APIEike Ziller2021-01-221-0/+8
| | | | | | | | Avoid writing defaults to the settings. Task-number: QTCREATORBUG-24430 Change-Id: I8e1d5a5b8ca21ef96a68a4d71a7d97d138bd186b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* CppEditor: Introduce QuickFix settings and unify getter/setter generationLeander Schulten2020-10-141-0/+149
Introduces a QuickFix settings page where the generation of getters and setters can be customized. The settings can be saved into a file that can go into a VCS. All QuickFixes that generate getter/setter/signals/ Q_PROPERTIES now use the same backend. QuickFixes that generate getters/ setters are now extended to also generate signals and Q_PROPERTIES. Fixes: QTCREATORBUG-1532 Fixes: QTCREATORBUG-17941 Fixes: QTCREATORBUG-12678 Fixes: QTCREATORBUG-15779 Fixes: QTCREATORBUG-11620 Fixes: QTCREATORBUG-22707 Fixes: QTCREATORBUG-20157 Fixes: QTCREATORBUG-21804 Fixes: QTCREATORBUG-19814 Fixes: QTCREATORBUG-14622 Fixes: QTCREATORBUG-19803 Change-Id: I50ed2dad9b4a637fbd87b3e1f2856060ad0ad920 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>