cmd+click symbol lookup can get confused by C++ namespaces

Originator:mattias.wadman
Number:rdar://13462302 Date Originated:
Status:Closed Resolved:Dup of 13078693
Product:Developer Tools Product Version:4.6.1
Classification:UI/Useability Reproducible:Always
 
Summary:
cmd+click symbol lookup can get confused by C++ namespaces

Steps to Reproduce:

Test source code:
#import <Foundation/Foundation.h>

namespace TestNamespace {
    const int testvar = 0;
}

@interface TestClass : NSObject
- (void)method:(int)var;
@end

@implementation TestClass
- (void)method:(int)var {
}
@end

int main(int argc, const char * argv[])
{
    @autoreleasepool {
        // can't cmd+click symbol lookup method: 
        [[TestClass alloc] method:TestNamespace::testvar];
    }
    return 0;
}

Expected Results:
Go to objc method

Actual Results:
Symbol not found

Regression:

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!