Skip to content

[clang-tidy] Check request: readability-bitwise-missing-parentheses #141249

@denzor200

Description

@denzor200

Needs the same check as "readability-math-missing-parentheses" but for a bitwise operation combined with an arithmetical operation in one expression.

BEFORE:

netChange[i] = nums[i] ^ k - nums[i];

AFTER:

netChange[i] = nums[i] ^ (k - nums[i]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions