diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-07-03 01:43:29 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-03 01:43:29 +0000 |
commit | b8f7603526f2a24f6eb6ee3ddbf94568855ccad6 (patch) | |
tree | cf7203dac4e513b2471886015a768cf96b96105e /lldb/scripts/Python/modify-python-lldb.py | |
parent | 0c51ac3295ff1864d84c7c3a0096ab0b763354f9 (diff) | |
download | llvm-b8f7603526f2a24f6eb6ee3ddbf94568855ccad6.zip llvm-b8f7603526f2a24f6eb6ee3ddbf94568855ccad6.tar.gz llvm-b8f7603526f2a24f6eb6ee3ddbf94568855ccad6.tar.bz2 |
Add swig docstrings for SBFrame.h.
Add post-processing step to remove the trailing blank lines from the docstrings of lldb.py.
llvm-svn: 134360
Diffstat (limited to 'lldb/scripts/Python/modify-python-lldb.py')
-rw-r--r-- | lldb/scripts/Python/modify-python-lldb.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index 0adf888..1e43ffd 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -29,6 +29,7 @@ else: c_endif_swig = "#endif" c_ifdef_swig = "#ifdef SWIG" c_comment_marker = "//------------" +trailing_blank_line = ' ' # The pattern for recognizing the doxygen comment block line. doxygen_comment_start = re.compile("^\s*( /// ?)") @@ -164,8 +165,8 @@ for line in content.splitlines(): # 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. - if c_comment_marker in line: + # 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. line = line.replace('\a ', '') |