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

[question] friend function defined within class? #86

Open
harsszegi opened this issue Oct 25, 2023 · 2 comments
Open

[question] friend function defined within class? #86

harsszegi opened this issue Oct 25, 2023 · 2 comments
Labels
question Further information is requested

Comments

@harsszegi
Copy link

Hi,
does CppAst support friend functions defined within the class itself? E.g. something like this:

class Foo
{
public:
friend bool operator==(const Foo & lhs, const Foo & rhs);
};

I fail to see the operator== function anywhere, neither within the class's functions (that's kinda obvious), nor between the functions in the namespace.
What do I miss here?
Thanks,

@xoofx xoofx added the question Further information is requested label Oct 25, 2023
@xoofx
Copy link
Owner

xoofx commented Oct 25, 2023

I fail to see the operator== function anywhere, neither within the class's functions (that's kinda obvious), nor between the functions in the namespace.

Dunno. CppAst.NET was initially not developed to support C++, so it might miss many stuffs like this. You would have to debug/add support for it in a PR.

@fangfang1984
Copy link
Contributor

Yes, friend functions is not contain in CppClass now, i try to add it in our local branch, it will be PR to master recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants