(debugger, internal_dict)
| 328 | |
| 329 | # Add your CustomVector class type here |
| 330 | def __lldb_init_module(debugger, internal_dict): |
| 331 | lldb.formatters.Logger._lldb_formatters_debug_level = 2 |
| 332 | |
| 333 | ########################################################################################################### |
| 334 | # Buffers |
| 335 | ########################################################################################################### |
| 336 | # SmallBuffer must be registered BEFORE Buffer in order for the synthetic provider to be matched first |
| 337 | debugger.HandleCommand('type synthetic add -l SCLLDB.buffer_SynthProvider -x "^(SC::)SmallBuffer<.+>$"') |
| 338 | debugger.HandleCommand('type summary add -F SCLLDB.buffer_SummaryProvider -e -x "^(SC::)SmallBuffer<.+>$"') |
| 339 | |
| 340 | debugger.HandleCommand('type synthetic add -l SCLLDB.buffer_SynthProvider -x "^(SC::)Buffer$"') |
| 341 | debugger.HandleCommand('type summary add -F SCLLDB.buffer_SummaryProvider -e -x "^(SC::)Buffer$"') |
| 342 | |
| 343 | ########################################################################################################### |
| 344 | # Arrays |
| 345 | ########################################################################################################### |
| 346 | debugger.HandleCommand('type synthetic add -l SCLLDB.vector_SynthProvider -x "^(SC::)Array<.+>$"') |
| 347 | debugger.HandleCommand('type summary add -F SCLLDB.vector_SummaryProvider -e -x "^(SC::)Array<.+>$"') |
| 348 | |
| 349 | ########################################################################################################### |
| 350 | # Vectors |
| 351 | ########################################################################################################### |
| 352 | # SmallVector must be registered BEFORE Vector in order for the synthetic provider to be matched first |
| 353 | debugger.HandleCommand('type synthetic add -l SCLLDB.vector_SynthProvider -x "^(SC::)SmallVector<.+,.+>$"') |
| 354 | debugger.HandleCommand('type summary add -F SCLLDB.vector_SummaryProvider -e -x "^(SC::)SmallVector<.+,.+>$"') |
| 355 | |
| 356 | debugger.HandleCommand('type synthetic add -l SCLLDB.vector_SynthProvider -x "^(SC::)Vector<.+>$"') |
| 357 | debugger.HandleCommand('type summary add -F SCLLDB.vector_SummaryProvider -e -x "^(SC::)Vector<.+>$"') |
| 358 | |
| 359 | ########################################################################################################### |
| 360 | # Strings |
| 361 | ########################################################################################################### |
| 362 | debugger.HandleCommand('type summary add -F SCLLDB.string_SummaryProvider -e -x "^(SC::)SmallString<.+>$"') |
| 363 | debugger.HandleCommand('type summary add -F SCLLDB.string_SummaryProvider -e -x "^(SC::)String$"') |
| 364 | debugger.HandleCommand('type summary add -F SCLLDB.string_SummaryProvider -e -x "^(SC::)StringView$"') |
| 365 | debugger.HandleCommand('type summary add -F SCLLDB.string_SummaryProvider -e -x "^(SC::)StringSpan$"') |
| 366 | |
| 367 | ########################################################################################################### |
| 368 | # Spans |
| 369 | ########################################################################################################### |
| 370 | debugger.HandleCommand('type synthetic add -l SCLLDB.span_SynthProvider -x "^(SC::)Span<.+>$"') |
| 371 | debugger.HandleCommand('type summary add -F SCLLDB.span_SummaryProvider -e -x "^(SC::)Span<.+>$"') |
nothing calls this directly
no outgoing calls
no test coverage detected