[Swift] swift_bridge can apply to ObjCInterfaceDecls, of course.
Clang's architectural failure of ObjCInterfaceDecl not being a TypeDecl
continues to surprise us.
diff --git a/include/clang/Basic/Attr.td b/include/clang/Basic/Attr.td
index 63748c3..9daf3a7 100644
--- a/include/clang/Basic/Attr.td
+++ b/include/clang/Basic/Attr.td
@@ -1311,8 +1311,8 @@
def SwiftBridge : Attr {
let Spellings = [GNU<"swift_bridge">];
- let Subjects = SubjectList<[Tag, TypedefName, ObjCProtocol], ErrorDiag,
- "ExpectedType">;
+ let Subjects = SubjectList<[Tag, TypedefName, ObjCInterface, ObjCProtocol],
+ ErrorDiag, "ExpectedType">;
let Args = [StringArgument<"SwiftType">];
let Documentation = [SwiftBridgeDocs];
}