diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-06-14 03:55:41 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-06-14 03:55:41 +0000 |
commit | 059640b521035a79d1c13ed2744c98cdef32e0a1 (patch) | |
tree | 0b5fb7c49f4ba68f14e884fb343d6c93ad70dede /lldb/scripts/Python/modify-python-lldb.py | |
parent | eb994b27ffd1c4c7ad6ee69177d5a175659bd554 (diff) | |
download | llvm-059640b521035a79d1c13ed2744c98cdef32e0a1.zip llvm-059640b521035a79d1c13ed2744c98cdef32e0a1.tar.gz llvm-059640b521035a79d1c13ed2744c98cdef32e0a1.tar.bz2 |
Generalise pattern for matching IsValid signature
Previously the IsValid pattern matched only function signatures of
the form:
def IsValid(*args): ...
However under SWIG 1.3.40 on Linux the signature reads:
def IsValid(self): ...
The new pattern matches both signature types by matching only up to
the left paren.
llvm-svn: 132968
Diffstat (limited to 'lldb/scripts/Python/modify-python-lldb.py')
-rw-r--r-- | lldb/scripts/Python/modify-python-lldb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index efd4fb6..4d3b861 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -123,7 +123,7 @@ class_pattern = re.compile("^class (SB.*)\(_object\):$") init_pattern = re.compile("^ def __init__\(self, \*args\):") # The pattern for recognizing the beginning of the IsValid method definition. -isvalid_pattern = re.compile("^ def IsValid\(\*args\):") +isvalid_pattern = re.compile("^ def IsValid\(") # These define the states of our finite state machine. NORMAL = 0 |