| 1 |
.. title:: clang-tidy - hicpp-signed-bitwise |
| 2 |
|
| 3 |
hicpp-signed-bitwise |
| 4 |
==================== |
| 5 |
|
| 6 |
Finds uses of bitwise operations on signed integer types, which may lead to |
| 7 |
undefined or implementation defined behavior. |
| 8 |
|
| 9 |
The according rule is defined in the `High Integrity C++ Standard, Section 5.6.1 <http://www.codingstandard.com/section/5-6-shift-operators/>`_. |
| 10 |
|
| 11 |
Options |
| 12 |
------- |
| 13 |
|
| 14 |
.. option:: IgnorePositiveIntegerLiterals |
| 15 |
|
| 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`. |