Skip to content

RULE-15-1-4: Aggregate member initialized with "{}" falsely flagged #1165

Description

@MichaelRFairhurst

Affected rules

  • RULE-15-1-4

Description

It seems that we're checking if this field has an "initializer" and that's not the case in the database so we get a false positive.

Example

class C1 {
  size_t x = static_cast<size_t>(0);
};

class C2 {
  C2() {}; // False positive here
  C1 y {}; // is initialized by this syntax but apparently does not have an initializer...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions