CWARN.INLINE.NONFUNC

Keyword inline used with non-function

The CWARN.INLINE.NONFUNC checker finds instances in which the inline keyword is applied to something other than a function or method.

Vulnerable code example

Copy
  inline int x;

Klocwork flags this example, in which the inline keyword is applied to an int declaration.