mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[interop][SwiftToCxx] Annotate emitted declarations with Clang's external_source_symbol attribute
Each emitted declaration is annotated with the external_source_symbol with its own USR, to allow Clang's indexer to recognize this declaration as a Swift declaration with a specific USR
This commit is contained in:
@@ -32,6 +32,6 @@ public func testFunction() -> String {
|
||||
return ""
|
||||
}
|
||||
|
||||
// CHECK: namespace Swift __attribute__((swift_private)) {
|
||||
// CHECK: namespace SwiftMod __attribute__((swift_private)) {
|
||||
// CHECK: namespace Swift __attribute__((swift_private)) SWIFT_SYMBOL_MODULE("Swift") {
|
||||
// CHECK: namespace SwiftMod __attribute__((swift_private)) SWIFT_SYMBOL_MODULE("SwiftMod") {
|
||||
// CHECK-NOT: namespace Swift {
|
||||
|
||||
Reference in New Issue
Block a user