Files
swift-mirror/test/SourceKit/Indexing/index_func_import.swift.response
Arnold Schwaighofer f442dd93bd CompilerInvocation: If no optimization flag is set default to Onone
I noticed in a follow-up patch that if you just swiftc without passing Onone
these flags are not set and sometimes happen to default to right thing ... or
not; as can be seen by the test cases modified. For example, at Onone we are
supposed to include an extra swift module "SwiftOnoneSupport".
2017-08-04 11:49:16 -07:00

68 lines
1.7 KiB
Plaintext

{
key.hash: <hash>,
key.dependencies: [
{
key.kind: source.lang.swift.import.module.swift,
key.name: "Swift",
key.filepath: Swift.swiftmodule,
key.hash: <hash>,
key.is_system: 1
},
{
key.kind: source.lang.swift.import.module.swift,
key.name: "test_module",
key.filepath: test_module.swiftmodule,
key.hash: <hash>,
key.dependencies: [
{
key.kind: source.lang.swift.import.module.swift,
key.name: "Swift",
key.filepath: Swift.swiftmodule,
key.hash: <hash>,
key.is_system: 1
},
{
key.kind: source.lang.swift.import.module.swift,
key.name: "SwiftOnoneSupport",
key.filepath: SwiftOnoneSupport.swiftmodule,
key.hash: <hash>,
key.dependencies: [
{
key.kind: source.lang.swift.import.module.swift,
key.name: "Swift",
key.filepath: Swift.swiftmodule,
key.hash: <hash>,
key.is_system: 1
}
]
}
]
}
],
key.entities: [
{
key.kind: source.lang.swift.ref.function.free,
key.name: "globalFunc()",
key.usr: "s:11test_module10globalFuncyyF",
key.line: 8,
key.column: 25
},
{
key.kind: source.lang.swift.decl.function.free,
key.name: "test()",
key.usr: "s:17index_func_import4testyyF",
key.line: 10,
key.column: 6,
key.entities: [
{
key.kind: source.lang.swift.ref.function.free,
key.name: "globalFunc()",
key.usr: "s:11test_module10globalFuncyyF",
key.line: 11,
key.column: 3
}
]
}
]
}