forked from OSchip/llvm-project
Python synthetic providers must provide a num_children call; this was not specified in the docs up to now
llvm-svn: 135933
This commit is contained in:
parent
918f98ab42
commit
f73dcc7b71
|
@ -2372,10 +2372,11 @@ CommandObjectTypeSynthClear::CommandOptions::g_option_table[] =
|
|||
//-------------------------------------------------------------------------
|
||||
|
||||
static const char *g_synth_addreader_instructions = "Enter your Python command(s). Type 'DONE' to end.\n"
|
||||
"You must define a Python class with three methods:\n"
|
||||
"def __init__(self, valobj, dict):\n"
|
||||
"def get_child_at_index(self, index):\n"
|
||||
"def get_child_index(self, name):\n"
|
||||
"You must define a Python class with these methods:\n"
|
||||
" def __init__(self, valobj, dict):\n"
|
||||
" def num_children(self):\n"
|
||||
" def get_child_at_index(self, index):\n"
|
||||
" def get_child_index(self, name):\n"
|
||||
"class synthProvider:";
|
||||
|
||||
class TypeSynthAddInputReader : public InputReaderEZ
|
||||
|
|
Loading…
Reference in New Issue