Error parsing multi line non #define statements
Brought to you by:
senexcanis
CODE:
from CppHeaderParser import CppHeader
code = """
enum Me
{
NAME = ('B' << 24 | \
'R' << 16 | \
'A' << 8 | \
'D')
};
"""
cppheader = CppHeader(code, argType="string")
print "Good"
cppheader = CppHeader("EmptyEnumTest.h")
OUTPUT:
Good
[1015] WARN-enum: empty enum ['enum', 'MsCrIcI2cMapCtlrType', '{', 'MS_CR_IC_I2CMAP_CTLR_TYPE_AMCC', 'M', '<', '<', '16', 'C', '<', '<', '8', 'C', ')', '}']
Fixed in commit 98:fe1e577c467e