Author: Hans Wennborg
Date: 2026-01-26T18:03:09+01:00
New Revision: b19238d0d0a7d026de8e2ad28775db57afccb01d

URL: 
https://github.com/llvm/llvm-project/commit/b19238d0d0a7d026de8e2ad28775db57afccb01d
DIFF: 
https://github.com/llvm/llvm-project/commit/b19238d0d0a7d026de8e2ad28775db57afccb01d.diff

LOG: [BoundsSafety] Small fixes to BoundsSafety.rst (#177961)

While reading the doc I noticed a few things that weren't rendered right
in the html output.

Added: 
    

Modified: 
    clang/docs/BoundsSafety.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/BoundsSafety.rst b/clang/docs/BoundsSafety.rst
index e3cb78eecbea4..b82e68eb7555a 100644
--- a/clang/docs/BoundsSafety.rst
+++ b/clang/docs/BoundsSafety.rst
@@ -352,7 +352,7 @@ Annotations for sentinel-delimited arrays
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 A C string is an array of characters. The null terminator — the first null
-character ('\0') element in the array — marks the end of the string.
+character (``'\0'``) element in the array — marks the end of the string.
 ``-fbounds-safety`` provides ``__null_terminated`` to annotate C strings and 
the
 generalized form ``__terminated_by(T)`` to annotate pointers and arrays with an
 end marked by a sentinel value. The model prevents dereferencing a
@@ -439,17 +439,17 @@ extension`_ for more details about the toolchain header):
 
 .. code-block:: C
 
-#define __ptrcheck_abi_assume_single() \
-   _Pragma("clang abi_ptr_attr set(single)")
+   #define __ptrcheck_abi_assume_single() \
+      _Pragma("clang abi_ptr_attr set(single)")
 
-#define __ptrcheck_abi_assume_indexable() \
-  _Pragma("clang abi_ptr_attr set(indexable)")
+   #define __ptrcheck_abi_assume_indexable() \
+     _Pragma("clang abi_ptr_attr set(indexable)")
 
-#define __ptrcheck_abi_assume_bidi_indexable() \
-  _Pragma("clang abi_ptr_attr set(bidi_indexable)")
+   #define __ptrcheck_abi_assume_bidi_indexable() \
+     _Pragma("clang abi_ptr_attr set(bidi_indexable)")
 
-#define __ptrcheck_abi_assume_unsafe_indexable() \
-  _Pragma("clang abi_ptr_attr set(unsafe_indexable)")
+   #define __ptrcheck_abi_assume_unsafe_indexable() \
+     _Pragma("clang abi_ptr_attr set(unsafe_indexable)")
 
 
 ABI implications of default bounds annotations


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

Reply via email to