Commit e4068bb8 authored by François Grisez's avatar François Grisez
Browse files

Bugfixes in and

* prevent metadoc.Translator.translate() from crashing when None
  is passed as argument.
* set the briefDescription attributes of enum values$
parent 9398d378
......@@ -593,6 +593,7 @@ class CParser(object):
valueName = EnumValueName()
valueName.from_camel_case(, namespace=name)
aEnumValue = EnumValue(valueName)
aEnumValue.briefDescription = cEnumValue.briefDoc
if cEnumValue.value is not None:
......@@ -56,6 +56,9 @@ class Description:
class Translator:
def translate(self, description):
if description is None:
return None
lines = []
for para in description.paragraphs:
if para is not description.paragraphs[0]:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment