Incorrect error?
fire-eggs opened this issue · 2 comments
fire-eggs commented
I had a syntax error in my struct as so:
struct Foo {
enum Bar _bar;
};and the error code in json-cpp-gen trying to parse this was "INVALID_STRUCT_SYNTAX". Should that be "INVALID_ENUM_SYNTAX"?
[HeaderParser.cpp, parseEnum(), line 242]
Chlumsky commented
C-style variable declarations such as struct Foo x; are currently not recognized, so the program thinks it is the beginning of the definition of a new enum / struct. I will fix this, but I don't see a problem with the reported error type as it occurred while parsing the structure definition, and not an enum definition.
fire-eggs commented
Understood!