[Libreoffice-bugs] [Bug 132296] New: Improve typedef support in generated C++ headers
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 21 10:45:34 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=132296
Bug ID: 132296
Summary: Improve typedef support in generated C++ headers
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: sdk
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: straub at sb-software.de
cppumaker resolves typedefs in generated header files when defining typedefs in
.idl files:
typedef long XLongTypedef
typedef sequence<XLongTypedef> XLongSequenceTypedef
typedef XKeyValue XStructTypedef
typedef sequence<XStructTypedef> XStructSequenceTypedef
generated .hdl files contain:
typedef ::css::uno::Sequence< ::sal_Int32 > XLongSequenceTypedef;
typedef ::css::uno::Sequence< XKeyValue > XStructSequenceTypedef;
It would be better to generate the following, ie. avoid unrolling the typedef:
typedef ::css::uno::Sequence< XongTypedef > XLongSequenceTypedef;
typedef ::css::uno::Sequence< XStructTypedef > XStructSequenceTypedef;
Method declarations could also benefit:
idl: XLongTypedef aMethod([in] XLongSequenceTypedef arg)
currently results in the following .hdl declaration:
::sal_Int32 aMethod(const Sequence<::sal_Int32>& arg)
but this one would be nicer:
XLongTypdef aMethod(const XLongSequenceTypedef& arg)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200421/1b0bb012/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list