[PATCH] D87532: Sema: add support for `__attribute__((__swift_bridge__))`
Saleem Abdulrasool via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 15 13:30:11 PDT 2020
compnerd marked an inline comment as done.
compnerd added inline comments.
================
Comment at: clang/include/clang/Basic/Attr.td:2134
+def SwiftBridge : Attr {
+ let Spellings = [GNU<"swift_bridge">];
+ let Args = [StringArgument<"SwiftType">];
----------------
aaron.ballman wrote:
> Is it intentional that this is `swift_bridge` but we just added `swift_bridged_typedef` (bridge vs bridged)? That seems like a bit of a spelling gotcha, if it can be corrected.
Yes, that is intentional. This has already shipped, so Im afraid that changing the spelling isn't really reasonable at this point. I agree that it is is a spelling gotcha, but fortunately, most of the uses of these are done through macros (e.g. `CF_REFINED_FOR_SWIFT`).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87532/new/
https://reviews.llvm.org/D87532
More information about the cfe-commits
mailing list