diff options
author | Pavel Labath <pavel@labath.sk> | 2019-04-21 12:48:53 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-04-21 12:48:53 +0000 |
commit | 27e9d982eb1e5aaa4c06a8771a3430eb803c1edf (patch) | |
tree | ac321937eb513ae6644ed26c0510f912fd09f7f0 /lldb/scripts/Python/modify-python-lldb.py | |
parent | 0d741507f7ec1cb8925ed2c37408a1b0db079332 (diff) | |
download | llvm-27e9d982eb1e5aaa4c06a8771a3430eb803c1edf.zip llvm-27e9d982eb1e5aaa4c06a8771a3430eb803c1edf.tar.gz llvm-27e9d982eb1e5aaa4c06a8771a3430eb803c1edf.tar.bz2 |
modify-python-lldb.py: Remove docstring formatting code
The strings have been already cleaned up in r358683, so this code is not
doing anything anymore.
While comparing the outputs before and after removing the formatting
code, I've found a couple of docstrings that managed to escape my perl
script in r358683, so I format them manually with this patch.
llvm-svn: 358846
Diffstat (limited to 'lldb/scripts/Python/modify-python-lldb.py')
-rw-r--r-- | lldb/scripts/Python/modify-python-lldb.py | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index 4df1df9..2881d4e 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -43,9 +43,6 @@ else: # # Residues to be removed. # -c_comment_marker = "//------------" -# The pattern for recognizing the doxygen comment block line. -doxygen_comment_start = re.compile("^\s*(/// ?)") # The demarcation point for turning on/off residue removal state. # When bracketed by the lines, the CLEANUP_DOCSTRING state (see below) is ON. toggle_docstring_cleanup_line = ' """' @@ -119,25 +116,14 @@ for line in content.splitlines(): if line == toggle_docstring_cleanup_line: if state & CLEANUP_DOCSTRING: - # Special handling of the trailing blank line right before the '"""' - # end docstring marker. - new_content.del_blank_line() state ^= CLEANUP_DOCSTRING else: state |= CLEANUP_DOCSTRING if (state & CLEANUP_DOCSTRING): - # Remove the comment marker line. - if c_comment_marker in line: - continue - - # Also remove the '\a ' and '\b 'substrings. + # 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: - line = line.replace(doxygen_comment_match.group(1), '', 1) line = char_to_str_xform(line) |