18 lines · plain
1.. title:: clang-tidy - hicpp-signed-bitwise2 3hicpp-signed-bitwise4====================5 6Finds uses of bitwise operations on signed integer types, which may lead to7undefined or implementation defined behavior.8 9The according rule is defined in the `High Integrity C++ Standard, Section 5.6.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard-expressions>`_.10 11Options12-------13 14.. option:: IgnorePositiveIntegerLiterals15 16 If this option is set to `true`, the check will not warn on bitwise operations with positive integer literals, e.g. `~0`, `2 << 1`, etc.17 Default value is `false`.18