MISRA Discussion Forums

Full Version: 8.10.3 Is ~ operator composite?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In 8.10.3, ~ operator is not defined as a composite operator.
Is it necessary to treat ~ operator as composite?

If ~ operator is not composite, then is the following code compliant with Rule 10.6?
u16a = ~u8a;
The MISRA C:2012 document does not list the ~operator as a composite operator, and therefore it is not composite. However, this is currently under review by the MISRA-C working group and may change in the future.