This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] hicpp-signed-bitwise IgnorePositiveIntegerLiterals now partially recursive
Needs ReviewPublic

Authored by njames93 on Feb 25 2020, 1:28 AM.

Details

Summary

Addresses hicpp-signed-bitwise.IgnorePositiveIntegerLiterals should be recursive.
Only recursive for |, ^ and & operations and their assignment counterparts.

Diff Detail

Event Timeline

njames93 created this revision.Feb 25 2020, 1:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2020, 1:28 AM

What about bit shifting operations? e.g., ~(1 << 2) or 8 >> (1 << 2)

ping.
@njames93 are you revisiting this patch? What is the missing piece? Maybe i can help out a bit?