Replies: 2 comments 6 replies
-
@xmfcx Thank you for opening this thread.
I don't think so because in the
Seeing AUTOSAR says Maybe CodeQL can check it? |
Beta Was this translation helpful? Give feedback.
-
What about handling of: using bool8_t = bool;
using char8_t = char;
using uchar8_t = unsigned char; These are not defined in Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
Follow up from: autowarefoundation/autoware.universe#2234
Autosar
Autosar CPP14 Guidelines: https://www.autosar.org/fileadmin/user_upload/standards/adaptive/21-11/AUTOSAR_RS_CPP14Guidelines.pdf
6.3.9 Types
Rule A3-9-1 (required, implementation, automated)
MISRA
Autosar extends the MISRA-CPP-2008: http://www.tlemp.com/download/rule/MISRA-CPP-2008-STANDARD.pdf
Rule 3–9–2 (Advisory)
Example
The ISO (POSIX) typedefs as shown below are recommended and are used for all basic numerical and character types in this document. For a 32-bit integer machine, these are as follows:
Autoware
In Autoware.Auto, we used to use for integer types and typedefs for floating point types.
https://gitlab.com/autowarefoundation/autoware.auto/AutowareAuto/-/blob/master/src/common/autoware_auto_common/include/common/types.hpp#L39
cc @kenji-miyake @mitsudome-r @wep21 @isamu-takagi
Beta Was this translation helpful? Give feedback.
All reactions