swift
9fdbb86c - [ClangImporter] Import `extern "C"` declarations from the bridging header

Commit
2 years ago
[ClangImporter] Import `extern "C"` declarations from the bridging header We do iterate into extern C declarations when building the Swift lookup table during PCH generation. https://github.com/apple/swift/blob/0fad799f51f6c5408696379b1fe35cd10c131136/lib/ClangImporter/SwiftLookupTable.cpp#L2140-L2146 However, we don’t import `extern "C"` declarations while parsing the bridging header (eg. when no `-pch-output-dir` is specified during code completion). This caused us to miss functions annotated as `extern "C"` in code completion. rdar://127512985
Author
Committer
Parents
Loading