Skip to content

A8-4-8: Allow output parameters in assign operators #370

Closed
@lcartey

Description

@lcartey

Affected rules

  • A8-4-8

Description

Output parameters are required for user defined assign operators, and so should not be reported.

Example

constexpr byte& operator|=(byte& lhs, const byte rhs) noexcept {
  lhs = (lhs | rhs);
  return lhs;
}

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.user-reportIssue reported by an end user of CodeQL Coding Standards

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions