Menu

#48 Error parsing multi line non #define statements

closed-fixed
nobody
None
5
2012-09-23
2012-09-20
bgrupczy
No

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', ')', '}']

Discussion

  • bgrupczy

    bgrupczy - 2012-09-20
     
  • Jashua Cloutier

    Jashua Cloutier - 2012-09-23
    • summary: Not parsing enum with assignment --> Error parsing multi line non #define statements
    • status: open --> closed-fixed
     
  • Jashua Cloutier

    Jashua Cloutier - 2012-09-23

    Fixed in commit 98:fe1e577c467e

     

Log in to post a comment.