aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/modify-python-lldb.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-07-15 20:46:19 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-07-15 20:46:19 +0000
commit135f63fb301ac000a6fcaf40dcc10cc97ce6de07 (patch)
tree4d50306f5e265c560b6e10ca38d328c7639b65cd /lldb/scripts/Python/modify-python-lldb.py
parentb72bd53f7d046420fa64ff3e684b912b258a27f0 (diff)
downloadllvm-135f63fb301ac000a6fcaf40dcc10cc97ce6de07.zip
llvm-135f63fb301ac000a6fcaf40dcc10cc97ce6de07.tar.gz
llvm-135f63fb301ac000a6fcaf40dcc10cc97ce6de07.tar.bz2
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
Diffstat (limited to 'lldb/scripts/Python/modify-python-lldb.py')
-rw-r--r--lldb/scripts/Python/modify-python-lldb.py7
1 files changed, 4 insertions, 3 deletions
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: