[clang] [clang][bytecode][NFC] Surround Pointer diagram in \verbatim (PR #158550)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 14 23:42:58 PDT 2025


https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/158550

See if this fixes the documentation.

>From 932ed7eabf7e040ed7b2d40a6c5dff3392de7fa0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Mon, 15 Sep 2025 08:40:40 +0200
Subject: [PATCH] [clang][bytecode][NFC] Surround Pointer diagram in \verbatim

See if this fixes the documentation.
---
 clang/lib/AST/ByteCode/Pointer.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/clang/lib/AST/ByteCode/Pointer.h b/clang/lib/AST/ByteCode/Pointer.h
index 49d701c3e27b6..9e67374c3354f 100644
--- a/clang/lib/AST/ByteCode/Pointer.h
+++ b/clang/lib/AST/ByteCode/Pointer.h
@@ -75,7 +75,7 @@ enum class Storage { Block, Int, Fn, Typeid };
 /// data the pointer decribes can be found at
 /// Pointee->rawData() + Pointer.Offset.
 ///
-///
+/// \verbatim
 /// Pointee                      Offset
 /// │                              │
 /// │                              │
@@ -87,6 +87,7 @@ enum class Storage { Block, Int, Fn, Typeid };
 ///                      │
 ///                      │
 ///                     Base
+/// \endverbatim
 class Pointer {
 private:
   static constexpr unsigned PastEndMark = ~0u;



More information about the cfe-commits mailing list