mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Explanation: Some functions are implemented both in libc and libc++. Clang uses the enable_if attribute to resolve otherwise ambiguous functions calls. This PR makes the name lookup aware of this attribute. Issue: rdar://152192945 Risk: Low, only C/C++ APIs with enable_if attributes are affected. Testing: Regression test added. Original PR: #82019 Reviewer: @hnrklssn
30 lines
455 B
Plaintext
30 lines
455 B
Plaintext
module Namespaces {
|
|
header "namespace.h"
|
|
requires cplusplus
|
|
}
|
|
|
|
module TopLevelModule {
|
|
module SubModule {
|
|
module DeepSubModule {
|
|
header "deep-submodule.h"
|
|
export *
|
|
}
|
|
module AnotherDeepSubModule {
|
|
header "another-deep-submodule.h"
|
|
export *
|
|
}
|
|
export *
|
|
}
|
|
export *
|
|
}
|
|
|
|
module AmbiguousA {
|
|
header "ambiguous_a.h"
|
|
requires cplusplus
|
|
}
|
|
|
|
module AmbiguousB {
|
|
header "ambiguous_a.h"
|
|
requires cplusplus
|
|
}
|