-
Notifications
You must be signed in to change notification settings - Fork 23
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
Improve cpp code generation #51
Conversation
- Properly generate field and methods with the right level of privacy (public/private/protected). - Generate .h file instead of .cpp - Add #include statement for other class in the puml file - Protect against multiple inclusion with preprocessor
…ss are not handled)
Added modification to handle template type: issue #52 |
…nnector with direction
…nnector with direction
# Conflicts: # src/parser/plantuml.pegjs
Thanks for PR. There is generated test for each language which just verify generated output: Line 45 in eaa9e99
you should update this table: Line 123 in e2ad307
which map generated file extension for each language. and update&rename this file: https://github.com/jupe/puml2code/blob/master/test/data/car.cpp.cpp I just activated CI for PR so we can see when everything is ready for merging :) |
Changes
Add the following effect during cpp code generation:
Does not change anything for other language.
Tests
The cpp test is not passing anymore, let me know how to update the template, so I can fix that. However, the result for the car.puml file are correct.
Related issues
#50
Thank you for this great code base!
PS: js is not my primary language and I never used handlebars before... My code is based on what is done for ECMAScript6.