mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ABI-checker: include Swift symbols only when ABI checking is enabled
ABI checking logics are largely Swift-specific, so we should exclude symbols from the underlying Clang module. rdar://64373983
This commit is contained in:
@@ -1573,6 +1573,7 @@ SwiftDeclCollector::constructInitNode(ConstructorDecl *CD) {
|
||||
bool swift::ide::api::
|
||||
SDKContext::shouldIgnore(Decl *D, const Decl* Parent) const {
|
||||
// Exclude all clang nodes if we're comparing Swift decls specifically.
|
||||
// FIXME: isFromClang also excludes Swift decls with @objc. We should allow those.
|
||||
if (Opts.SwiftOnly && isFromClang(D)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user