[Lldb-commits] [lldb] r132968 -	/lldb/trunk/scripts/Python/modify-python-lldb.py
    Peter Collingbourne 
    peter at pcc.me.uk
       
    Mon Jun 13 20:55:41 PDT 2011
    
    
  
Author: pcc
Date: Mon Jun 13 22:55:41 2011
New Revision: 132968
URL: http://llvm.org/viewvc/llvm-project?rev=132968&view=rev
Log:
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.
Modified:
    lldb/trunk/scripts/Python/modify-python-lldb.py
Modified: lldb/trunk/scripts/Python/modify-python-lldb.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/modify-python-lldb.py?rev=132968&r1=132967&r2=132968&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/modify-python-lldb.py (original)
+++ lldb/trunk/scripts/Python/modify-python-lldb.py Mon Jun 13 22:55:41 2011
@@ -123,7 +123,7 @@
 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
    
    
More information about the lldb-commits
mailing list