summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/objc/objc-static-method/static.m
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-08-03 16:23:08 +0000
committerSean Callanan <scallanan@apple.com>2011-08-03 16:23:08 +0000
commita789aa770ee9fc4a3d10ea583f4abff2c9972cde (patch)
tree90e2cd051abdde06ecd6c1382cd2b3f73d7f5fea /lldb/test/lang/objc/objc-static-method/static.m
parent996ab689fbc1ced95a61669b5207fe9e6a0cdfae (diff)
downloadbcm5719-llvm-a789aa770ee9fc4a3d10ea583f4abff2c9972cde.tar.gz
bcm5719-llvm-a789aa770ee9fc4a3d10ea583f4abff2c9972cde.zip
Improved the expression parser's detection of the
current context. Previously, if there was a variable called "self" available, the expression parser assumed it was inside a method. But class methods in Objective-C also take a "self" parameter, of DWARF type "id". We now detect this properly, and only assume we're in an instance method if "self" is a pointer to an Objective-C object. llvm-svn: 136784
Diffstat (limited to 'lldb/test/lang/objc/objc-static-method/static.m')
-rw-r--r--lldb/test/lang/objc/objc-static-method/static.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/test/lang/objc/objc-static-method/static.m b/lldb/test/lang/objc/objc-static-method/static.m
index 7201ce6f802..a069c1502ad 100644
--- a/lldb/test/lang/objc/objc-static-method/static.m
+++ b/lldb/test/lang/objc/objc-static-method/static.m
@@ -2,14 +2,17 @@
@interface Foo : NSObject
+(void) doSomethingWithString: (NSString *) string;
-
+-(void) doSomethingWithNothing;
@end
@implementation Foo
+(void) doSomethingWithString: (NSString *) string
{
NSLog (@"String is: %@.", string); // Set breakpoint here.
+}
+-(void) doSomethingWithNothing
+{
}
@end
OpenPOWER on IntegriCloud