COVESA / capicxx-someip-tools

Common API C++ SOMEIP tooling
Mozilla Public License 2.0
76 stars 55 forks source link

generated code of enumeration type error(default uint8_t) #23

Closed dzvoid closed 2 years ago

dzvoid commented 3 years ago

I use newest version of tool(v3.2.0.1) to generate code by .fidl file: Using Franca Version 0.13.1.201807231814 and CommonAPI Version 3.2.0.v202012010850

In .fidl file, I define a enumeration : enumeration TransforType { Message_TCP = 300 Message_UDP = 400 }

The generated code: struct TransforType : CommonAPI::Enumeration< uint8_t> { enum Literal : uint8_t { Message_TCP = 300, Message_UDP = 400 };

I think default type uint8_t is wrong, it need uint32_t.

arik000 commented 2 years ago

I have the same issue, but the error is comming from common API genrator and not from someip generator

arik000 commented 2 years ago

Please shift the issue into https://github.com/GENIVI/capicxx-core-tools

dzvoid commented 2 years ago

Please shift the issue into https://github.com/GENIVI/capicxx-core-tools

OK

dzvoid commented 2 years ago

I have the same issue, but the error is comming from common API genrator and not from someip generator

I have solved this issue. Pls refer to https://github.com/COVESA/capicxx-core-tools/issues/32