================
@@ -213,30 +213,33 @@ Check for undefined arithmetic operations with null 
pointers.
 
 The checker can detect the following cases:
 
-  - `p + x` and `x + p` where `p` is a null pointer and `x` is a nonzero 
integer
+  - ``p + x`` and ``x + p`` where ``p`` is a null pointer and ``x`` is a 
nonzero
+    integer value.
+  - ``p - x`` where ``p`` is a null pointer and ``x`` is a nonzero integer
     value.
-  - `p - x` where `p` is a null pointer and `x` is a nonzero integer
-    value.
-  - `p1` - `p2` where one of `p1` and `p2` is null and the other a non-null
-    pointer.
+  - ``p1`` - ``p2`` where one of ``p1`` and ``p2`` is null and the other a
----------------
NagyDonat wrote:

```suggestion
  - ``p1 - p2`` where one of ``p1`` and ``p2`` is null and the other a
```
For the sake of consistency I think here the whole subtraction should be a 
single code fragment. 

https://github.com/llvm/llvm-project/pull/157129
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to