forked from qt-creator/qt-creator
Process the enumerator initializers.
This commit is contained in:
@@ -400,7 +400,9 @@ bool CheckSpecifier::visit(EnumSpecifierAST *ast)
|
||||
continue;
|
||||
const NameId *enumeratorName = control()->nameId(id);
|
||||
Declaration *decl = control()->newDeclaration(enumerator->firstToken(),
|
||||
enumeratorName);
|
||||
enumeratorName);
|
||||
|
||||
FullySpecifiedType initTy = semantic()->check(enumerator->expression, _scope);
|
||||
e->addMember(decl);
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user