Loading scripts/qapi/common.py +5 −0 Original line number Diff line number Diff line Loading @@ -1759,6 +1759,11 @@ class QAPISchema(object): # because they're liable to clash in generated C. other_ent = self._entity_dict.get(ent.name) if other_ent: if other_ent.info: where = QAPIError(other_ent.info, None, "previous definition") raise QAPISemError( ent.info, "'%s' is already defined\n%s" % (ent.name, where)) raise QAPISemError( ent.info, "%s is already defined" % other_ent.describe()) self._entity_dict[ent.name] = ent Loading tests/qapi-schema/redefined-command.err +3 −1 Original line number Diff line number Diff line tests/qapi-schema/redefined-command.json: In command 'foo': tests/qapi-schema/redefined-command.json:3: command 'foo' is already defined tests/qapi-schema/redefined-command.json:3: 'foo' is already defined tests/qapi-schema/redefined-command.json: In command 'foo': tests/qapi-schema/redefined-command.json:2: previous definition tests/qapi-schema/redefined-event.err +3 −1 Original line number Diff line number Diff line tests/qapi-schema/redefined-event.json: In event 'EVENT_A': tests/qapi-schema/redefined-event.json:3: event 'EVENT_A' is already defined tests/qapi-schema/redefined-event.json:3: 'EVENT_A' is already defined tests/qapi-schema/redefined-event.json: In event 'EVENT_A': tests/qapi-schema/redefined-event.json:2: previous definition tests/qapi-schema/redefined-type.err +3 −1 Original line number Diff line number Diff line tests/qapi-schema/redefined-type.json: In enum 'foo': tests/qapi-schema/redefined-type.json:3: struct type 'foo' is already defined tests/qapi-schema/redefined-type.json:3: 'foo' is already defined tests/qapi-schema/redefined-type.json: In struct 'foo': tests/qapi-schema/redefined-type.json:2: previous definition Loading
scripts/qapi/common.py +5 −0 Original line number Diff line number Diff line Loading @@ -1759,6 +1759,11 @@ class QAPISchema(object): # because they're liable to clash in generated C. other_ent = self._entity_dict.get(ent.name) if other_ent: if other_ent.info: where = QAPIError(other_ent.info, None, "previous definition") raise QAPISemError( ent.info, "'%s' is already defined\n%s" % (ent.name, where)) raise QAPISemError( ent.info, "%s is already defined" % other_ent.describe()) self._entity_dict[ent.name] = ent Loading
tests/qapi-schema/redefined-command.err +3 −1 Original line number Diff line number Diff line tests/qapi-schema/redefined-command.json: In command 'foo': tests/qapi-schema/redefined-command.json:3: command 'foo' is already defined tests/qapi-schema/redefined-command.json:3: 'foo' is already defined tests/qapi-schema/redefined-command.json: In command 'foo': tests/qapi-schema/redefined-command.json:2: previous definition
tests/qapi-schema/redefined-event.err +3 −1 Original line number Diff line number Diff line tests/qapi-schema/redefined-event.json: In event 'EVENT_A': tests/qapi-schema/redefined-event.json:3: event 'EVENT_A' is already defined tests/qapi-schema/redefined-event.json:3: 'EVENT_A' is already defined tests/qapi-schema/redefined-event.json: In event 'EVENT_A': tests/qapi-schema/redefined-event.json:2: previous definition
tests/qapi-schema/redefined-type.err +3 −1 Original line number Diff line number Diff line tests/qapi-schema/redefined-type.json: In enum 'foo': tests/qapi-schema/redefined-type.json:3: struct type 'foo' is already defined tests/qapi-schema/redefined-type.json:3: 'foo' is already defined tests/qapi-schema/redefined-type.json: In struct 'foo': tests/qapi-schema/redefined-type.json:2: previous definition