|
premium-misra-c-2025-2.3
|
A project should not contain unused type declarations
|
<Class>_internal_types.h
|
During generation, the generator is not able to know which
type will be used by the model and user.
|
|
premium-misra-c-2025-2.4
|
A project should not contain unused tag declarations
|
Class
|
During generation, the generator is not able to know which
tag will be used by the model and user.
|
|
premium-misra-c-2025-2.5
|
A project should not contain unused macro definitions
|
Cse layer
|
During generation, the generator is not able to know which
macro will be used by the model and user.
|
|
premium-misra-c-2025-2.7
|
A function should not contain unused parameters
|
Cse_hook_usr.c
<Class>.c
|
This function contains a User section and parameters can be
used in this section.
|
|
premium-misra-c-2025-5.5
|
Identifiers shall be distinct from macro names
|
<Class>.h
|
The name of a struct or field is identical to a #define.
Example:
In Button_itf.h
#define Button(…) Button_Button(__VA_ARGS__)
In Button.h
typedef struct Button{}.
|
|
premium-misra-c-2025-5.6
|
A typedef name shall be a unique identifier
|
<Class>.h
<Class>_types.h
<Class>_internal_types.h
|
During generation, in a composition, several components can
declare the same typedef.
|
|
premium-misra-c-2025-8.4
|
A compatible declaration shall be visible when an object or
function with external linkage is defined
|
Cse layer
|
The generator is not able to determine if the declaration is
used.
|
|
premium-misra-c-2025-8.9
|
An object should be defined at block scope if its identifier
only appears in a single function
|
UML without signal
|
Object is used via a pointer.
|
|
premium-misra-c-2025-8.19
|
There should be no external declarations in a source file
|
Cse layer
|
extern is used in Cse.c.
|
|
premium-misra-c-2025-10.3
|
The value of an expression shall not be assigned to an
object with a narrower essential type or of a different
essential type category
|
Statemachine
|
Types are identical but defined using #define.
|
|
premium-misra-c-2025-10.4
|
Both operands of an operator in which the usual arithmetic
conversions are performed shall have the same essential type
category
|
Statemachine
|
Complex condition.
|
|
premium-misra-c-2025-10.5
|
The value of an expression should not be cast to an
inappropriate essential type
|
Cse layer
|
Explicit cast.
|
|
premium-misra-c-2025-15.5
|
A function should have a single point of exit at the end
|
Statemachine
|
Current implementation.
|
|
premium-misra-c-2025-17.2
|
Functions shall not call themselves, either directly or
indirectly
|
ConstraintBlock
|
A mechanism has been implemented to avoid cyclic calls.
|
|
premium-misra-c-2025-17.7
|
The value returned by a function having non-void return type
shall be used
|
Cse layer and itf
|
Return value of memset call is not used.
Return value of basic_<Class> call is not used.
|
|
premium-misra-c-2025-17.12
|
A function identifier should only be used with either a
preceding &, or with a parenthesized parameter list
|
Statemachine
|
Because the function uses a macro:
#define tal_sendChangeEvent(…) …
This is not a real error.
|
|
premium-misra-c-2025-20.5
|
#undef should not be used
|
Activity diagram
|
#undef is used in the current implementation.
|