Skip to content

Add support for methods in namespaces #51

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

Open
Discusser opened this issue May 12, 2025 · 0 comments
Open

Add support for methods in namespaces #51

Discusser opened this issue May 12, 2025 · 0 comments

Comments

@Discusser
Copy link

When using TSCppDefineClassFunc on a method inside of a namespace, the function should be defined with the namespace.
Example header file:

namespace A {
void b();
class C {
  void d();
  C e(C param);
};
}

Expected output when using TSCppDefineClassFunc:

void A::b() {}
void A::C::d() {}
A::C e(C param) {}

Currently, this just outputs the following (notice the lack of namespaces):

void b() {}
void C::d() {}
C C::e(C param) {}
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

1 participant