github/codeql-coding-standards

`A7-1-2`: Do not report functions as possible `constexpr`

lcartey opened this issue · 0 comments

Affected rules

  • A7-1-2

Description

A careful re-reading of the rule, and consideration of the MISRA forum posts (https://forum.misra.org.uk/showthread.php?tid=1657) indicates that we should not be reporting functions for this rule.

Example

void example_function(int x) { // ignore, rule only applies to values
  return x;
}