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

CPP: modify package namespace to split on dot #838

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

adisuissa
Copy link
Contributor

@adisuissa adisuissa commented Apr 12, 2023

Fixing C++ namespace to only use dot-notation splitting.

For example, a proto that is in a package: my_project will use the same C++ namespace, avoiding the conversion to my::project as is done prior to this PR.

Also updated protoc-gen-star to v2.0.4 @496ad1ac90a4 (ability to use SplitOnDot) using:
go get github.com/lyft/protoc-gen-star/v2@496ad1ac90a4

Fixes #822

Also updated protoc-gen-star to v2.0.4 @496ad1ac90a4 using:
go get github.com/lyft/protoc-gen-star/v2@496ad1ac90a4

Signed-off-by: Adi Suissa-Peleg <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Apr 12, 2023

CLA assistant check
All committers have signed the CLA.

@rodaine rodaine added Bug Reports and/or fixes a bug C++ C++ language support labels Apr 20, 2023
@elliotmjackson elliotmjackson changed the title cc: modify package namespace to split on dot CPP: modify package namespace to split on dot May 8, 2023
@rodaine rodaine changed the base branch from main to v1 May 19, 2023 18:07
@rodaine rodaine changed the base branch from v1 to main May 19, 2023 19:47
@rodaine rodaine closed this Dec 19, 2023
@rodaine rodaine reopened this Mar 14, 2024
@adisuissa
Copy link
Contributor Author

Hey @rodaine I see that this was reopened.
I can probably update this PR and solve the conflicts sometime later today, if you think it is useful.

@rodaine
Copy link
Member

rodaine commented Mar 14, 2024

Hey @adisuissa! Yes, if you'd like to update it go for it. We realized today this was probably closed in error, which is why it was reopened. Let me know if you need anything from me 😁

@adisuissa adisuissa marked this pull request as ready for review March 14, 2024 21:01
@rodaine rodaine merged commit 7d833c1 into bufbuild:main Mar 15, 2024
4 checks passed
@rodaine
Copy link
Member

rodaine commented Mar 15, 2024

Thanks again for the patch! 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Reports and/or fixes a bug C++ C++ language support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C++: split namespace using dot-notation and not underscores
3 participants