Skip to content

Commit ff3a3df

Browse files
committed
Fix formatting
1 parent 38d9009 commit ff3a3df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/docs/DebuggingCoroutines.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ type of a task is a template argument. For simplicity's sake, we hard-coded the
360360
``int`` type in this example.
361361

362362
Stack traces of in-flight coroutines
363-
-----------------------------------
363+
------------------------------------
364364

365365
Let's assume you have the following program and set a breakpoint inside the
366366
``write_output`` function. There are multiple call paths through which this
@@ -466,7 +466,7 @@ One such solution is to store the list of in-flight coroutines in a collection:
466466
};
467467
468468
With this in place, it is possible to inspect ``inflight_coroutines`` from the
469-
debugger, and rely on LLDB's pretty-printer for ``std::coroutine_handle``s to
469+
debugger, and rely on LLDB's ``std::coroutine_handle`` pretty-printer to
470470
inspect the coroutines.
471471

472472
This technique will track *all* coroutines, also the ones which are currently
@@ -542,7 +542,7 @@ hence might have to set breakpoints in the ramp function and its ``.noalloc``
542542
variant.
543543

544544
Artificial ``__promise`` and ``__coro_frame`` variables
545-
---------------------------------------------------
545+
-------------------------------------------------------
546546

547547
Inside all coroutine functions, clang / LLVM synthesize a ``__promise`` and
548548
``__coro_frame`` variable. These variables are used to store the coroutine's
@@ -632,7 +632,7 @@ the resume function, devirtualization would hence fail for all coroutines that
632632
have reached their final suspension point.
633633

634634
Interpreting the coroutine frame in optimized builds
635-
---------------------------------------------------
635+
----------------------------------------------------
636636

637637
The ``__coro_frame`` variable usually refers to the coroutine frame of an
638638
*in-flight* coroutine. This means, the coroutine is currently executing.

0 commit comments

Comments
 (0)