Skip to content

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

Closed
@lcartey

Description

@lcartey

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;
}

Metadata

Metadata

Assignees

Labels

Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addressImpact-Highfalse positive/false negativeAn issue related to observed false positives or false negatives.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions