mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This better matches what the clang importer does normally, avoids a Clang issue where `getPreprocessedEntitiesInRange` returns incorrect results, and avoids the need to enable the preprocessor record. This then lets us re-enable `print_clang_headers.swift`. rdar://102151774
33 lines
458 B
Plaintext
33 lines
458 B
Plaintext
import Foundation
|
|
import CoreFoundation
|
|
import Dispatch
|
|
|
|
var MY_MACRO: Int32 { get }
|
|
|
|
var MACRO_DUP: Int32 { get }
|
|
|
|
func doSomethingInHead(_ arg: Int32)
|
|
|
|
class BaseInHead {
|
|
class func doIt(_ arg: Int32)
|
|
func doIt(_ arg: Int32)
|
|
}
|
|
|
|
/// Awesome name.
|
|
class SameName {
|
|
}
|
|
protocol SameNameProtocol {
|
|
}
|
|
|
|
extension BaseInHead {
|
|
class func doItInCategory()
|
|
func doItInCategory()
|
|
}
|
|
|
|
protocol Superproto {
|
|
func lala()
|
|
}
|
|
|
|
class MyLittleCFType : _CFObject {
|
|
}
|