Skip to content

CPP: modify package namespace to split on dot#838

Merged
rodaine merged 4 commits intobufbuild:mainfrom
adisuissa:cpp_namespace_dot
Mar 15, 2024
Merged

CPP: modify package namespace to split on dot#838
rodaine merged 4 commits intobufbuild:mainfrom
adisuissa:cpp_namespace_dot

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 <adip@google.com>
@CLAassistant
Copy link

CLAassistant commented Apr 12, 2023

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@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 😁

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@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
@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