llvm-capstone/lldb/scripts
Pavel Labath eba97426d4 Clean up docstrings in swig interface files
Summary:
This patch removes the "//----" frames and "///" leading lines from
docstring comments.  We already have code doing transformations like this in
modify-python-lldb.py, but that's a script I'd like to remove. Instead
of running these transformations everytime we run swig, we can just
perform equivalent on its input once.

This patch can be reproduced (e.g. for downstream merges) with the
following "sweet" perl command:

  perl -i -p -e 'BEGIN{ $/ = undef;} s:(" *\n) *//-----*\n:\1:gs; s:^(     *)/// ?:\1:gsm; s:^ *//------*\n( *\n)?( *"):\2:gsm; s: *$::gsm; s:\n *"\):"):gsm' scripts/interface/*.i

This command produces nearly equivalent python files to those produced
by the relevant code in modify-python-lldb.py. The only difference I
noticed is that here I am slightly more agressive in removing trailing
newlines from docstring comments (the python script seems to leave
newlines in class-level docstrings).

Reviewers: amccarth, clayborg, jingham, aprantl

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D60498

llvm-svn: 358683
2019-04-18 16:23:33 +00:00
..
interface Clean up docstrings in swig interface files 2019-04-18 16:23:33 +00:00
Python [Shell] Simplify Extracting Python Version 2019-04-18 01:37:19 +00:00
swig_bot_lib Use list comprehension instead of map/filter to prepare Python2/3 compat 2019-03-21 07:19:09 +00:00
Xcode Python 2/3 compatibility: from __future__ import print_function 2019-03-21 18:27:40 +00:00
analyze-project-deps.py Use list comprehension instead of map/filter to prepare Python2/3 compat 2019-03-21 07:19:09 +00:00
build-lldb-llvm-clang Change build-llvm.py and build-lldb-llvm-clang's patching mechanisms to 2017-09-27 23:44:54 +00:00
buildbot.py Python 2/3 compatibility: from __future__ import print_function 2019-03-21 18:27:40 +00:00
checkpoint-llvm.pl
CMakeLists.txt [Cmake] Unify python variables 2019-03-29 17:35:42 +00:00
disasm-gdb-remote.pl
finish-swig-wrapper-classes.sh
finishSwigWrapperClasses.py Install six.py conditionally 2017-02-04 00:20:24 +00:00
framework-header-fix.sh Update framework-header-fix to force system sed 2018-11-04 15:55:28 +00:00
generate-vers.pl
get_relative_lib_dir.py
install_custom_python.py Python 2/3 compatibility: from __future__ import print_function 2019-03-21 18:27:40 +00:00
install-lldb.sh
lldb.swig modify-python-lldb.py: Insert initialization code with swig instead 2019-04-05 09:56:55 +00:00
macos-setup-codesign.sh Add a script to setup codesigning on macOS. 2018-06-14 18:04:13 +00:00
prepare_bindings.py Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
sed-sources
shush
sort-pbxproj.rb Change sort-pbxproj.rb to find the project.pbxproj in the 2018-07-23 23:34:50 +00:00
swig_bot.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
use_lldb_suite.py use_lldb_suite.py: Fix potential infinite loop 2019-02-07 14:03:43 +00:00
utilsArgsParse.py Install six.py conditionally 2017-02-04 00:20:24 +00:00
utilsDebug.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
utilsOsType.py The Python 3 part of the script was missed when adding OpenBSD support. 2018-10-04 20:34:58 +00:00
verify_api.py python 2/3 compat: commands vs subprocess 2019-03-26 14:46:15 +00:00