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

User-defined attributes? #39

Open
DethRaid opened this issue Sep 9, 2020 · 1 comment
Open

User-defined attributes? #39

DethRaid opened this issue Sep 9, 2020 · 1 comment
Labels
enhancement New feature or request PR Welcome Extra attention is needed

Comments

@DethRaid
Copy link

DethRaid commented Sep 9, 2020

Does this library supports parsing user-defined C++11 attributes? I was hoping to annotate some of my C++ code with them and generate C# bindings from classes with specific attributes. I just ran a quick test on my code and this library reports no attributes.

https://github.com/DethRaid/SanityEngine/blob/trunk/SanityEngine/src/sanity_engine.hpp#L21 is the class I'm trying to generate bindings for, https://github.com/DethRaid/SanityEngine/blob/trunk/SanityEngine.Codegen.NET/CodegenProgram.cs#L45 is where I'm checking for my attribute.

I've inspected the CppAst.ClassCompilation for my class in the Visual Studio debugger - there's no attributes, or really much of anything. Is there something that's making my class really hard to parse?

@xoofx xoofx added the enhancement New feature or request label Sep 9, 2020
@xoofx
Copy link
Owner

xoofx commented Sep 9, 2020

I don't think that we are parsing attributes for C++ class so they are not reported. They are parsed for methods and arguments afair. I have no personal time to work on this but a PR is welcome.

@xoofx xoofx added the PR Welcome Extra attention is needed label Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR Welcome Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants