From 135f63fb301ac000a6fcaf40dcc10cc97ce6de07 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 15 Jul 2011 20:46:19 +0000 Subject: Add some more docstrings for SBCompileUnit and SBBreakpoint, plus incorporate the doxgen doc block of SBValue::GetChildAtIndex(uint32_t idx, lldb::DynamicValueType use_dynamic, bool can_create_synthetic); into the SBValue docstrings. llvm-svn: 135295 --- lldb/scripts/Python/modify-python-lldb.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lldb/scripts/Python/modify-python-lldb.py') diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index c33a3dd..cc24ab6 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -223,7 +223,7 @@ for line in content.splitlines(): # Adding support for eq and ne for the matched SB class. state |= DEFINING_EQUALITY - elif (state & DEFINING_ITERATOR) or (state & DEFINING_EQUALITY): + if (state & DEFINING_ITERATOR) or (state & DEFINING_EQUALITY): match = init_pattern.search(line) if match: # We found the beginning of the __init__ method definition. @@ -244,15 +244,16 @@ for line in content.splitlines(): # Next state will be NORMAL. state = NORMAL - elif (state & CLEANUP_DOCSTRING): + if (state & CLEANUP_DOCSTRING): # Cleanse the lldb.py of the autodoc'ed residues. if c_ifdef_swig in line or c_endif_swig in line: continue # As well as the comment marker line and trailing blank line. if c_comment_marker in line or line == trailing_blank_line: continue - # Also remove the '\a ' substrings. + # Also remove the '\a ' and '\b 'substrings. line = line.replace('\a ', '') + line = line.replace('\b ', '') # And the leading '///' substring. doxygen_comment_match = doxygen_comment_start.match(line) if doxygen_comment_match: -- cgit v1.1