#53 CppHeaderParser chokes on complex static asserts

v1.0 (example)
closed-fixed
nobody
None
5
2013-07-02
2012-12-30
someone
No

CppHeaderParser chokes on complex static asserts such as some C_ASSERT in various windows headers on the semicolon token that follows them

Example:
C_ASSERT((sizeof(XSAVE_FORMAT) & (XSAVE_ALIGN - 1)) == 0);

CppHeaderParser 2.3
PLY 3.4
Python 2.7.3

Discussion

  • Jashua Cloutier

    Jashua Cloutier - 2013-04-04

    Could you please provide an example .h file

     
  • Jashua Cloutier

    Jashua Cloutier - 2013-07-02

    This can be resolved by adding the following line of code before parsing using the latest code in hg
    CppHeaderParser.ignoreSymbols.append("C_ASSERT()")

    An example of this can be found in the FilterMagicMacro_TestCase test case

     
  • Jashua Cloutier

    Jashua Cloutier - 2013-07-02
    • status: open --> closed-fixed
    • Group: --> v1.0 (example)
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks