3131#include " llvm/ADT/APInt.h"
3232#include " llvm/ADT/bit.h"
3333
34-
3534using namespace lldb ;
3635using namespace lldb_private ;
3736using namespace lldb_private ::formatters;
@@ -267,21 +266,21 @@ bool lldb_private::formatters::NSIndexSetSummaryProvider(
267266 if (class_name == " NSIndexSet" || class_name == " NSMutableIndexSet" ) {
268267 // Foundation version 2000 added a bitmask if the index set fit in 64 bits
269268 // and a Tagged Pointer version if the bitmask is small enough to fit in
270- // the tagged pointer payload.
269+ // the tagged pointer payload.
271270 // It also changed the layout (but not the size) of the set descriptor.
272271
273272 // First check whether this is a tagged pointer. The bitmask will be in
274273 // the payload of the tagged pointer.
275274 uint64_t payload;
276- if (runtime->GetFoundationVersion () >= 2000
277- && descriptor->GetTaggedPointerInfo (nullptr , nullptr , &payload)) {
275+ if (runtime->GetFoundationVersion () >= 2000 &&
276+ descriptor->GetTaggedPointerInfo (nullptr , nullptr , &payload)) {
278277 count = llvm::popcount (payload);
279278 break ;
280279 }
281280 // The first 32 bits describe the index set in all cases:
282281 Status error;
283282 uint32_t mode = process_sp->ReadUnsignedIntegerFromMemory (
284- valobj_addr + ptr_size, 4 , 0 , error);
283+ valobj_addr + ptr_size, 4 , 0 , error);
285284 if (error.Fail ())
286285 return false ;
287286 // Now check if the index is held in a bitmask in the object:
@@ -292,7 +291,7 @@ bool lldb_private::formatters::NSIndexSetSummaryProvider(
292291 if ((mode & 2 ) == 2 ) {
293292 // The bitfield is a 64 bit uint at the beginning of the data var.
294293 uint64_t bitfield = process_sp->ReadUnsignedIntegerFromMemory (
295- valobj_addr + 2 * ptr_size, 8 , 0 , error);
294+ valobj_addr + 2 * ptr_size, 8 , 0 , error);
296295 if (error.Fail ())
297296 return false ;
298297 count = llvm::popcount (bitfield);
@@ -309,7 +308,7 @@ bool lldb_private::formatters::NSIndexSetSummaryProvider(
309308 count = 0 ;
310309 break ;
311310 }
312-
311+
313312 if ((mode & 2 ) == 2 )
314313 mode = 1 ; // this means the set only has one range
315314 else
0 commit comments