We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__attribute__((swift_attr("sensitive")))
@sensitive
1 parent a980452 commit 3097cceCopy full SHA for 3097cce
lib/ClangImporter/ImportDecl.cpp
@@ -8075,6 +8075,14 @@ ClangImporter::Implementation::importSwiftAttrAttributes(Decl *MappedDecl) {
8075
continue;
8076
}
8077
8078
+ if (swiftAttr->getAttribute() == "sensitive") {
8079
+ if (!SwiftContext.LangOpts.hasFeature(Feature::Sensitive))
8080
+ continue;
8081
+ auto attr = new (SwiftContext) SensitiveAttr(/*implicit=*/true);
8082
+ MappedDecl->getAttrs().add(attr);
8083
8084
+ }
8085
+
8086
// Dig out a buffer with the attribute text.
8087
unsigned bufferID = getClangSwiftAttrSourceBuffer(
8088
swiftAttr->getAttribute());
0 commit comments