From 27e9d982eb1e5aaa4c06a8771a3430eb803c1edf Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Sun, 21 Apr 2019 12:48:53 +0000 Subject: 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 --- lldb/scripts/Python/modify-python-lldb.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 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 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) -- cgit v1.1