Commits

Ben Langmuir committed 242859eb5f5
[CodeCompletion] Avoid expensive top-level lookups in type-specific completion We can't afford to walk all the top-level results, which includes every type and global function in the SDK. Instead, use the usual caching mechanisms. This means we never get type relations on top-level SDK symbols, but this should be fine for most cases because: 1) For ObjC code, we don't generally care about global functions. And in practice most of the matching global functions for common types are not high-priority anyway (e.g. alignof for Int). 2) In a previous commit I manually added the names of types so that we can do later code completions to get initializers and static methods. E.g. you will still get "CGRect" if you complete inside drawInRect(...). Top-level results from the current module should be unaffected. Swift SVN r31961