forked from qt-creator/qt-creator
Active the `split declaration' quickfix op only the declaration has a valid semicolon.
This commit is contained in:
@@ -173,6 +173,9 @@ public:
|
||||
|
||||
bool checkDeclaration(SimpleDeclarationAST *declaration) const
|
||||
{
|
||||
if (! declaration->semicolon_token)
|
||||
return false;
|
||||
|
||||
if (! declaration->decl_specifier_list)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user