Skip to content

Commit a23d0a0

Browse files
committed
[lldb][NFC] Fix documentation formatting in ASTResultSynthesizer
This comment apparently didn't survive the great LLDB reformatting unharmed.
1 parent 4699a7e commit a23d0a0

File tree

1 file changed

+13
-24
lines changed

1 file changed

+13
-24
lines changed

lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -248,48 +248,37 @@ bool ASTResultSynthesizer::SynthesizeBodyResult(CompoundStmt *Body,
248248
// For Lvalues
249249
//
250250
// - In AST result synthesis (here!) the expression E is transformed into an
251-
// initialization
252-
// T *$__lldb_expr_result_ptr = &E.
251+
// initialization T *$__lldb_expr_result_ptr = &E.
253252
//
254253
// - In structure allocation, a pointer-sized slot is allocated in the
255-
// struct that is to be
256-
// passed into the expression.
254+
// struct that is to be passed into the expression.
257255
//
258256
// - In IR transformations, reads and writes to $__lldb_expr_result_ptr are
259-
// redirected at
260-
// an entry in the struct ($__lldb_arg) passed into the expression.
261-
// (Other persistent
262-
// variables are treated similarly, having been materialized as
263-
// references, but in those
264-
// cases the value of the reference itself is never modified.)
257+
// redirected at an entry in the struct ($__lldb_arg) passed into the
258+
// expression. (Other persistent variables are treated similarly, having
259+
// been materialized as references, but in those cases the value of the
260+
// reference itself is never modified.)
265261
//
266262
// - During materialization, $0 (the result persistent variable) is ignored.
267263
//
268264
// - During dematerialization, $0 is marked up as a load address with value
269-
// equal to the
270-
// contents of the structure entry.
265+
// equal to the contents of the structure entry.
271266
//
272267
// For Rvalues
273268
//
274269
// - In AST result synthesis the expression E is transformed into an
275-
// initialization
276-
// static T $__lldb_expr_result = E.
270+
// initialization static T $__lldb_expr_result = E.
277271
//
278272
// - In structure allocation, a pointer-sized slot is allocated in the
279-
// struct that is to be
280-
// passed into the expression.
273+
// struct that is to be passed into the expression.
281274
//
282275
// - In IR transformations, an instruction is inserted at the beginning of
283-
// the function to
284-
// dereference the pointer resident in the slot. Reads and writes to
285-
// $__lldb_expr_result
286-
// are redirected at that dereferenced version. Guard variables for the
287-
// static variable
288-
// are excised.
276+
// the function to dereference the pointer resident in the slot. Reads and
277+
// writes to $__lldb_expr_result are redirected at that dereferenced
278+
// version. Guard variables for the static variable are excised.
289279
//
290280
// - During materialization, $0 (the result persistent variable) is
291-
// populated with the location
292-
// of a newly-allocated area of memory.
281+
// populated with the location of a newly-allocated area of memory.
293282
//
294283
// - During dematerialization, $0 is ignored.
295284

0 commit comments

Comments
 (0)