MISRA.DECL.FUNC.INLINE.STATIC.2012MISRA C 2012 Rule 8.10: An inline function shall be declared with the static storage classC99 [Unspecified 20; Undefined 67] Category: Required Analysis: Decidable, Single Translation Unit Applies to: C99 RationaleIf an inline function is declared with external linkage but not defined in the same translation unit, the behaviour is undefined. A call to an inline function declared with external linkage may call the external definition of the function, or it may use the inline definition. Although this should not affect the behaviour of the called function, it might affect execution timing and therefore have an impact on a real-time program.
Note: an inline function can be made available to several translation units by placing its definition in a header file.
|