Skip to content

[clangd] Add CodeAction to swap operands to binary operators #78998

@torshepherd

Description

@torshepherd

Title. Turn:

if (p == nullptr) ...
if (x <= 5) ...

into

if (nullptr == p) ...
if (5 >= x) ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangdenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions