forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user