-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[NameLookup] Add requests for module and AnyObject lookup #28395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NameLookup] Add requests for module and AnyObject lookup #28395
Conversation
@swift-ci please test |
@swift-ci please test compiler performance |
@swift-ci please test source compatibility |
Build failed |
@@ -15,6 +15,9 @@ | |||
// | |||
//===----------------------------------------------------------------------===// | |||
|
|||
// Used to escape commas used within template arguments. | |||
#define COMMA , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clever, but can we use a using declaration or a separate type to help out here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CodaFi Hmm, I guess for now we could just declare something using QualifiedLookupResult = SmallVector<ValueDecl *, 4>
. It might make sense to eventually return LookupResult
for both qualified and unqualified lookups though, what do you think?
@swift-ci please test source compatibility |
Looks like source compat failures are for configurations which are XFAIL'ed on master. |
We now have an equivalent counter for LookupInModuleRequest.
We now have an equivalent counter for AnyObjectLookupRequest.
f12de1a
to
6811586
Compare
@swift-ci please smoke test |
Just noticed the compiler benchmark doesn't realize that a higher |
ddaf82d
into
swiftlang:swift-incremental-dependency-tracking
Add
LookupInModuleRequest
for module-level lookup, andAnyObjectLookupRequest
for AnyObject lookup.