Skip to content

A5-1-9: Avoid reporting duplicate results in macro expansions #856

Closed
@lcartey

Description

@lcartey

Affected rules

  • A5-1-9

Description

A lambda defined in a macro is flagged each time it is expanded, when expanded multiple times.

Example

#define MACRO() [](int i) -> int { return i + 3; }
void test_macros() {
  MACRO(); // COMPLIANT
  MACRO(); // COMPLIANT - no duplication
}

Metadata

Metadata

Assignees

Labels

Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addressImpact-Mediumfalse 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