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

Skip whole operator/function from parsing #377

Closed
homiodev opened this issue Feb 10, 2017 · 4 comments
Closed

Skip whole operator/function from parsing #377

homiodev opened this issue Feb 10, 2017 · 4 comments
Labels

Comments

@homiodev
Copy link

Hi,

i'm trying parse header files and want skip some function i..e
custom.h
....
operator Labels const&() const {
...
}
But can't figure out how to do this.
Could anyone help?

P.S. Generated java file contains:
public native @ByRef @name("operator somenamespace::sub::Labels&") Labels asLabels(); <<--Don't want generate it at all

JNI cpp file generates with errors:
error: 'struct somenamespace::sub::ChangableLabels' has no member named 'operator somenamespace::sub::Labels&'
rptr = &ptr->operator somenamespace::sub::Labels&();

@saudet
Copy link
Member

saudet commented Feb 10, 2017

Something like new Info("operator somenamespace::sub::Labels&").skip() should work, but if it doesn't please provide some small sample code I can debug here. Thanks!

@homiodev
Copy link
Author

After debuging parser, found that need write new Info("operator somenamespace::sub::Labels()").skip().
Thanks for answer

@saudet
Copy link
Member

saudet commented Feb 13, 2017

Great! Thanks for the feedback. It should also accept it with the & though, so let's leave this open so I don't forget to fix this.

@saudet saudet reopened this Feb 13, 2017
@saudet saudet added the bug label Mar 8, 2017
saudet added a commit to bytedeco/javacpp that referenced this issue Dec 17, 2018
saudet added a commit to bytedeco/javacpp that referenced this issue Dec 17, 2018
@saudet
Copy link
Member

saudet commented Dec 17, 2018

Finally, I've fixed this! Something like either
new Info("operator const somenamespace::sub::Labels&").skip() or
new Info("operator const somenamespace::sub::Labels&()").skip()
now both work. Thanks for reporting!

@saudet saudet closed this as completed Jan 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants