You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some C code may declare doc comments in the same line as the respective member with a special syntax for the effect.
enumColorSpace {
RGB=0, /**< red green blue */YBR_FULL, /**< YCbCr, full chrominance */XYB=2/**< LMS XYB */
};
This seems to be correctly interpreted, as bindgen is associating these comment blocks with the correct item. Removing < from the input would have resulted in the comments being linked to the subsequent item. However, the leading < character is retained in the Rust doc comment.
/* automatically generated by rust-bindgen 0.71.1 */#[doc = "< red green blue"]pubconstColorSpace_RGB:ColorSpace = 0;#[doc = "< YCbCr, full chrominance"]pubconstColorSpace_YBR_FULL:ColorSpace = 1;#[doc = "< LMS XYB"]pubconstColorSpace_XYB:ColorSpace = 2;pubtypeColorSpace = ::std::os::raw::c_uint;
Expected behavior
Since the < is part of the comment syntax, it should not be included in the doc string.
/* automatically generated by rust-bindgen 0.71.1 */#[doc = "red green blue"]pubconstColorSpace_RGB:ColorSpace = 0;#[doc = "YCbCr, full chrominance"]pubconstColorSpace_YBR_FULL:ColorSpace = 1;#[doc = "LMS XYB"]pubconstColorSpace_XYB:ColorSpace = 2;pubtypeColorSpace = ::std::os::raw::c_uint;
The text was updated successfully, but these errors were encountered:
Context
Some C code may declare doc comments in the same line as the respective member with a special syntax for the effect.
This seems to be correctly interpreted, as bindgen is associating these comment blocks with the correct item. Removing
<
from the input would have resulted in the comments being linked to the subsequent item. However, the leading<
character is retained in the Rust doc comment.Expected behavior
Since the
<
is part of the comment syntax, it should not be included in thedoc
string.The text was updated successfully, but these errors were encountered: