Skip to content

III:A does not check compound literals #2

Description

@kdkasad

Compound literals have parentheses followed by curly braces, so they should be checked by rule III:A.

Example of uncaught violation

struct s {
  int val;
};

int main() {
  struct s object = (struct s){
     .val = 0,
  };
  return object.val;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

missing checkA rule is missing a check for certain behavior

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions