File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -6956,12 +6956,6 @@ static bool isForeignReferenceType(const clang::QualType type) {
69566956}
69576957
69586958static bool hasOwnedValueAttr (const clang::RecordDecl *decl) {
6959- // Hard-coded special cases from the standard library (this will go away once
6960- // API notes support namespaces).
6961- if (decl->getNameAsString () == " basic_string" ||
6962- decl->getNameAsString () == " vector" )
6963- return true ;
6964-
69656959 return decl->hasAttrs () && llvm::any_of (decl->getAttrs (), [](auto *attr) {
69666960 if (auto swiftAttr = dyn_cast<clang::SwiftAttrAttr>(attr))
69676961 return swiftAttr->getAttribute () == " import_owned" ;
Original file line number Diff line number Diff line change @@ -6,3 +6,10 @@ Functions:
66- Name: div
77 Availability: nonswift
88 AvailabilityMsg: Use the C standard library function
9+ Namespaces:
10+ - Name: std
11+ Tags:
12+ - Name: basic_string
13+ SwiftImportAs: owned
14+ - Name: vector
15+ SwiftImportAs: owned
You can’t perform that action at this time.
0 commit comments