You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using libclang to parse a C headerfile containing several enum definitions, all Enums as well as all their respective variants are contained in the AST. However, parsing the file with -x c flag only finds a PARM_DECL and TYPE_REF node for each enum variant definition.
Changing the flag to -x c++ correctly detects a ENUM_CONSTANT_DECL node for each variant.