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
8 lines
293 B
Plaintext
8 lines
293 B
Plaintext
command script import ./example.py
|
|
type summary add --expand --recognizer-function --python-function example.message_summary example.is_message_type
|
|
type synth add --recognizer-function --python-class example.MessageChildProvider example.is_message_type
|
|
b program.cpp:112
|
|
r
|
|
p customer
|
|
p order
|