[llvm-branch-commits] [clang-tools-extra] [clang-tidy][docs] Rewrite short check docs to Markdown (PR #210467)
Zeyi Xu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Jul 19 05:36:15 PDT 2026
================
@@ -11,18 +11,18 @@ lead to undefined or implementation dependent behavior. In particular, right
shift a signed integer is implementation dependent, while left shift a signed
integer may result in undefined behavior.
-.. code-block:: c++
+```cpp
+int main(){
+ int x = -4;
+ int y = x >> 1; // y can be -2 or 2147483646
+}
+```
- int main(){
- int x = -4;
- int y = x >> 1; // y can be -2 or 2147483646
- }
+## Options
-Options
--------
+```{option} IgnorePositiveIntegerLiterals
-.. option:: IgnorePositiveIntegerLiterals
-
- 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.
- Default value is `false`.
+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.
+Default value is `false`.
----------------
zeyi2 wrote:
```suggestion
Default value is *false*.
```
https://github.com/llvm/llvm-project/pull/210467
More information about the llvm-branch-commits
mailing list