Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem parsing brace-or-equal initializer for class members #24

Open
KevFri opened this issue May 16, 2022 · 3 comments
Open

Problem parsing brace-or-equal initializer for class members #24

KevFri opened this issue May 16, 2022 · 3 comments

Comments

@KevFri
Copy link

KevFri commented May 16, 2022

Hello, thanks for this great tool!
I found the following error while using the C++ brace-or-equal initializer

Code:

private:
  int a;
  int b{0};
  int c = {0};
  int d = 1;
};

Output:

@startuml

/' Objects '/

class A {
        -a : int
        -d : int
}

/' Inheritance relationships '/

/' Aggregation relationships '/

/' Dependency relationships '/

/' Nested objects '/

@enduml
@thibaultmarin
Copy link
Owner

robotpy-cppheaderparser (the package which does the actual parsing) does not seem to parse these (possibly related to robotpy/robotpy-cppheaderparser#63). I will see if we can move to cxxheaderparser which may fix that (and support other modern c++ constructs).

@ejalaa12
Copy link

Hi !
Thank you again for this great tool.
Any news on this issue ?

@thibaultmarin
Copy link
Owner

Unfortunately I have made no progress on this. This is near the top of the list, but things move slowly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants