robotpy / robotpy-cppheaderparser

DEPRECATED: use cxxheaderparser instead
Other
123 stars 39 forks source link

Problem with recognizing struct #70

Closed aj-d2020 closed 3 years ago

aj-d2020 commented 3 years ago

Recignize struct as class and don't recognize following class at all Example:

struct s1
struct Struct1
{
  virtual HRESULT fun1r(My_UINT_PTR val, DWORD error) = 0;
  virtual void fun2(My_UINT_PTR val) = 0;
};

class Unrecognized_Class:
  public class1,
  public class2
{
 ....
}

class Recognized_Class:
  public class1,
  public class2
{
 ....
}

Unrecognized_Class is not recognized at all

virtuald commented 3 years ago

cppheaderparser will only correctly parse valid C/C++ code, the code you posted is invalid:

Please validate your code with a real C++ compiler and let me know if CppHeaderParser still has issues.