CppEditor: Add curly braces for more control statements

Fixes: QTCREATORBUG-24542
Change-Id: I3e0893e1c736730d94e2c9ab2baa0aa580393fe4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Christian Kandeler
2024-02-07 14:12:11 +01:00
parent 10e2ff5362
commit 837e951b29
4 changed files with 166 additions and 46 deletions

View File

@@ -287,7 +287,7 @@ public:
};
/*!
Add curly braces to a if statement that doesn't already contain a
Add curly braces to a control statement that doesn't already contain a
compound statement. I.e.
if (a)
@@ -297,9 +297,9 @@ public:
b;
}
Activates on: the if
Activates on: the keyword
*/
class AddBracesToIf: public CppQuickFixFactory
class AddBracesToControlStatement : public CppQuickFixFactory
{
public:
void doMatch(const CppQuickFixInterface &interface, QuickFixOperations &result) override;