Skip to content

Clang should recognize 'foo-bar' as a typo for 'foo->bar' #9426

@rjmccall

Description

@rjmccall
Bugzilla Link 9054
Version trunk
OS All
CC @ggreif

Extended Description

This would be gravy.

struct foo {
  int bar;
};

void test(struct foo *foo) {
  foo-bar = 0;
}

Currently this is just an unrecoverable error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerconfirmedVerified by a second party

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions