[all-commits] [llvm/llvm-project] 868186: [lldb] Make callback-based formatter matching avai...

Jorge Gorbe Moya via All-commits all-commits at lists.llvm.org
Thu Nov 10 10:34:02 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 868186cf6cb7edba08c916f98f5f87a942bf50ba
      https://github.com/llvm/llvm-project/commit/868186cf6cb7edba08c916f98f5f87a942bf50ba
  Author: Jorge Gorbe Moya <jgorbe at google.com>
  Date:   2022-11-10 (Thu, 10 Nov 2022)

  Changed paths:
    M lldb/docs/use/variable.rst
    A lldb/examples/synthetic/recognizer_function/example.py
    A lldb/examples/synthetic/recognizer_function/lldb-commands
    A lldb/examples/synthetic/recognizer_function/program.cpp
    M lldb/source/Commands/CommandObjectType.cpp
    M lldb/source/Commands/Options.td
    M lldb/test/API/functionalities/data-formatter/callback-matching/TestDataFormatterCallbackMatching.py
    M lldb/test/API/functionalities/data-formatter/callback-matching/formatters_with_callback.py

  Log Message:
  -----------
  [lldb] Make callback-based formatter matching available from the CLI.

This change adds a `--recognizer-function` (`-R`) to `type summary add`
and `type synth add` that allows users to specify that the names in
the command are not type names but python function names.

It also adds an example to lldb/examples, and a section in the data
formatters documentation on how to use recognizer functions.

Differential Revision: https://reviews.llvm.org/D137000




More information about the All-commits mailing list