[PATCH] D87532: Sema: add support for `__attribute__((__swift_bridge__))`
Saleem Abdulrasool via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 14 09:58:43 PDT 2020
compnerd marked 4 inline comments as done.
compnerd added inline comments.
================
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:5535
+ // Don't duplicate annotations that are already set.
+ if (D->hasAttr<SwiftBridgeAttr>()) {
+ S.Diag(AL.getLoc(), diag::warn_duplicate_attribute) << AL.getAttrName();
----------------
aaron.ballman wrote:
> Can a type bridge across multiple types? e.g., could you say this bridges to "foo" and "bar"?
No, I believe that you can not bridge to two different types.
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