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,8 +2372,9 @@ CommandObjectTypeSynthClear::CommandOptions::g_option_table[] =
 | 
				
			||||||
//-------------------------------------------------------------------------
 | 
					//-------------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char *g_synth_addreader_instructions =   "Enter your Python command(s). Type 'DONE' to end.\n"
 | 
					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"
 | 
					                                                      "You must define a Python class with these methods:\n"
 | 
				
			||||||
                                                      "     def __init__(self, valobj, dict):\n"
 | 
					                                                      "     def __init__(self, valobj, dict):\n"
 | 
				
			||||||
 | 
					                                                      "     def num_children(self):\n"
 | 
				
			||||||
                                                      "     def get_child_at_index(self, index):\n"
 | 
					                                                      "     def get_child_at_index(self, index):\n"
 | 
				
			||||||
                                                      "     def get_child_index(self, name):\n"
 | 
					                                                      "     def get_child_index(self, name):\n"
 | 
				
			||||||
                                                      "class synthProvider:";
 | 
					                                                      "class synthProvider:";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue