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) {
6956
6956
}
6957
6957
6958
6958
static 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
-
6965
6959
return decl->hasAttrs () && llvm::any_of (decl->getAttrs (), [](auto *attr) {
6966
6960
if (auto swiftAttr = dyn_cast<clang::SwiftAttrAttr>(attr))
6967
6961
return swiftAttr->getAttribute () == " import_owned" ;
Original file line number Diff line number Diff line change @@ -6,3 +6,10 @@ Functions:
6
6
- Name: div
7
7
Availability: nonswift
8
8
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