Skip to content

[Clang] -Wself-assign should be enabled by default #151312

@philnik777

Description

@philnik777

Currently, Clang doesn't seem to enable -Wself-assign by default without a good reason I can see. Anything this diagnoses is almost certainly a bug. This doesn't warn on weird user-defined operators either, since there is -Wself-assign-overloaded for that case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions