OpenCyphal / nunavut

Generate code from DSDL using PyDSDL and Jinja2
https://nunavut.readthedocs.io/
Other
39 stars 24 forks source link

C++: Superfluous brace in [[deprecated]] causes compilation error. #293

Closed aentinger closed 1 year ago

aentinger commented 1 year ago

Now:

[[deprecated("uavcan.node.ExecuteCommand.Request.1.0 is reaching the end of its life; there may be a newer version available"))]]

causes this error

uavcan/node/port/ServiceIDList_0_1.hpp:128:123: error: expected ‘]’ before ‘)’ token
  128 | [[deprecated("uavcan.node.port.ServiceIDList.0.1 is reaching the end of its life; there may be a newer version available"))]]

should be instead

-[[deprecated("uavcan.node.ExecuteCommand.Request.1.0 is reaching the end of its life; there may be a newer version available"))]]
+[[deprecated("uavcan.node.ExecuteCommand.Request.1.0 is reaching the end of its life; there may be a newer version available")]]