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

Incorrect code generation for package with '.' in it's name #13

Open
Marina-Sh opened this issue Apr 8, 2020 · 1 comment
Open

Incorrect code generation for package with '.' in it's name #13

Marina-Sh opened this issue Apr 8, 2020 · 1 comment

Comments

@Marina-Sh
Copy link

Type names from package with name like config.settings is converted to code like config.settings::TypeName& while config and settings should be converted as namespaces

@leetNightshade
Copy link

leetNightshade commented Oct 4, 2021

Updating the class CppNamespace.java seemed to work for me, upon initial tests. Instead of assigning "com.orgName.projectName", replace them with :: then assign to name.

Old:

public CppNamespace(final String name)
{
    this.name = name;
}

New:

public CppNamespace(final String name)
{
    this.name = name.replace(".", "::");
}

image

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

2 participants