cross-language-cpp / djinni-generator

Command-line tool that generates gluecode from a djinni-IDL file
https://djinni.xlcpp.dev/djinni-generator/setup
Apache License 2.0
94 stars 19 forks source link

feat(deprecated): generate language specific deprecation markup #156

Closed eakoli closed 1 year ago

eakoli commented 1 year ago

If @deprecated is present in a comment, a deprecation marker will be generated.

@deprecated is expected to be at the start of a line, any text following it on the same line is added as the ‘message’ text where supported

This applies to records/attributes/constants, interfaces/methods/constants, enums/values, flags/values

Supports C++, Java and ObjC generators

a4z commented 1 year ago

Wow, this is nice! Thank you so much!!

jothepro commented 1 year ago

Could be nice if this would also support setting the ObsoleteAttribute in C++/CLI! @eakoli would you be interested in adding it in this PR or should I open a separate issue for it?

a4z commented 1 year ago

If no other comments are made, I will soon merge this PR, and we will handle eventual ideas and additions, like docs, as extra issues.

a4z commented 1 year ago

Thanks a lot! This requires a new release, which will follow soon