Summary: 261 instances, 207 unique Text Count // FIXME: Darwin also compares the userInfo dictionary. 1 // TODO: Don't treat many encodings like they are UTF8 1 // TODO: We register all the native protocols here. 1 //TODO: Do we remove the timeout timer here if / when runningHandles == 0 ? 1 if previousError != .noError { // FIXME is this the intent? 2 // FIXME: Remove @usableFromInline from MeasurementBridgeType once 1 # TODO: Probably this should be another 'product', but for now it's simply a phase 1 case .totalFileSizeKey: fallthrough // FIXME: This should add the size of any metadata. 1 * TODO (xji) make a general solution 1 // TODO: move these back into extensions once extension methods can be overriden 1 // FIXME are we supposed to do anything here? 1 // TODO: We don't have the SSLProtocol type from Security 1 //TODO: The public API does not allow us to use CFURLSessionOptionSTREAM_DEPENDS / CFURLSessionOptionSTREAM_DEPENDS_E 1 //TODO: the timeout value needs to be reset on every data transfer 1 // TODO: remove this in some way to avoid the malloc? 1 //TODO: Make sure this one can't be written to? 2 // FIXME: A class because we can't pass a struct with class fields through an 1 // TODO: Implement sftp and ftps 1 // TODO: Fixup namelen in Unix socket name. 1 // FIXME this implementation reads the entire property list into memory 1 // TODO: It should be possible to reflect the constraint that MutableType is a subtype of ImmutableType in the generics for the class, but I haven't figured out how yet. For now, cheat and unsafe bit cast. 4 // FIXME is there a better way to do this with Swift stdlib? 1 case is NSNumber: /* FIXME: If swift-corelibs-foundation isn't updated to use NSNumber, this check will be necessary: || value is Int || value is Double */ 1 // FIXME use a generic function, unfortunately this seems to promote the size to 8 1 // TODO: NSCalendar.m has additional logic here but it depends on stuff not yet ported to this C implementation 1 if previousError != .noError { // FIXME is this the intent? 1 // TODO: Add method to CFCharacterSet to do this in one call 1 // TODO: These should use DBL_MAX but it's not available as part of Glibc on Linux 1 // FIXME: This currently crashes compilation in the Late Inliner. 2 // TODO: - revisit this once bridging story gets fully figured out 1 // FIXME: Handle directly via API Notes 2 //TODO: it's possible? 1 parseCDSect_pl(pInfo, stringData); // TODO: move to return boolean 1 //TODO: Set default protocol for schemeless URLs 1 // TODO - Determine if we want to return the starting boundary if the approximation options are set. 1 * TODO (xji): make it general 1 // So handling set content on XML_ELEMENT_DECL is listed as a TODO !!! in libxml2's source code. 1 // TODO is it required to validate the superclass hierarchy? 1 #if false // FIXME: XCTest doesn't support crash tests yet rdar://20195010&22387653 2 /* TODO: API review 1 // TODO: this should use the real buffer API 1 // FIXME: Log a warning if `member` is already in the set. 1 //TODO: update this to use _CFStringCreateTaggedPointerString once we can 1 // TODO: pathComponents keeps final path separator if any. Check that logic. 1 // FIXME: Converting an arbitrary value to AnyObject won't use a 1 //TODO: Avoid copying data 1 //TODO: At this point we should call setsockopt(2) to set the QoS on 1 //TODO: Proxy setting, namely CFURLSessionOptionPROXY, CFURLSessionOptionPROXYPORT, 1 representation = .empty // TODO: remove this when mgottesman lands optimizations 4 // FIXME: Would prefer to have a clear "extract an NSError 1 // TODO: This is disabled, as functions which return unsafe interior pointers are inherently unsafe when we have no autorelease pool. 2 //FIXME: CFURLIsFileReferenceURL is limited to macOS/iOS 1 // TODO: Evaluate deprecating with a message in favor of IndexSet. 1 * TODO: turn @throws into UErrorCode specifics? 1 // FIXME should this be a fatal error? 1 case .totalFileAllocatedSizeKey: fallthrough // FIXME: This should add the size of any metadata. 1 // TODO: Should files over a certain size always be mmap()'d? 1 // FIXME: the documentation states that this method can return nil if the 1 // TODO: Pretty sure this is not 100% correct 1 // TODO: figure out why the simulator is claiming this as a failure. 1 // TODO: Do we need to call up to [NSTextView _URLForString:] on macOS here? 1 // TODO: real error codes 1 // TODO: this could possibly be made more robust (imagine if pInfo->curr is stomped; pInfo->end - 1 might be safer. Unless its smashed too :-/ 1 if (!uName) { // TODO: Handle other cases here? See SIM: CFCopyHomeDirectoryURLForUser should not call getpwuid 1 // TODO: Fact check above statement 1 // FIXME: This used to return nil, but the corresponding Darwin 2 } else if (format == kCFPropertyListBinaryFormat_v1_0) { // TODO: Is it more efficient to create a stream here or just use a mutable data? 1 // FIXME: This will result in reading garbage memory. 1 // TODO: This should probably return the truth, but figuring it out requires two calls into NSCharacterSet 4 //TODO: Move things in this file? 1 // TODO: Refactor the following to just get the custom callbacks value directly, or refactor helper function 1 // FIXME: once CFString supports finding glyph boundaries walk by glyph boundaries instead of by unichars 1 * TODO: Fix for plain C. Doesn't work on Mac. 1 // TODO: read the localized version from the Foundation "bundle" 1 * TODO: document & propose as public API 1 // TODO: Use IndexingGenerator instead? 1 //TODO: Added in libcurl 7.45.0 1 // TODO: Move other work out of here 1 * TODO (xji): set field weight or 1 // TODO: Populate this dictionary differently on non-Darwin platforms 1 //TODO: Could simply change the existing timer by using DispatchSourceTimer again. 1 // FIXME: This will return a class that may not be associated with the receiver. https://bugs.swift.org/browse/SR-10347. 1 /* FIXME: If swift-corelibs-foundation doesn't change to use NSNumber, this code path will need to be included and tested: 5 /// - TODO: Is is not clear if using API that takes a URLRequest will override 1 //TODO: Should probably use sysctl(3) to get these: 1 // TODO: Remove this SPI, it appears no one is using it 1 // FIXME: Unfortunately while we have 8 different notifications, 1 * TODO need to revisit usefulness of this function 1 // FIXME: We should feed `object` to the hasher, too. However, this 1 //TODO: Do we ever want to redirect for HEAD requests? 1 //TODO: Do we remove the EasyHandle from the session here? This might run on the wrong thread / queue. 1 // TODO: Add a flag to coerce non-boolean numbers into Bools? 3 // TODO: swift-3-indexing-model: add tests for this function. 1 //TODO: Introduce something like an #if, if we want to set them here 1 // FIXME: This is a weak hash. We should rather normalize self to a 2 //TODO: Should the `public response: URLResponse` property be updated 1 //FIXME: no SwiftFoundation version of CFURLIsFileReferenceURL at time of writing! 1 // FIXME: We would like to call CFSetCreateCopy() to avoid doing an 1 // FIXME: On Darwin, these can be set with setattrlist(); and of course chown/chgrp on other OSes. 1 // TODO: Throw an exception if we aren't in a change edit? 1 //TODO: is this necessary? If yes, this guard needs an alternate implementation 1 /// - TODO: We could re-use EasyHandles once they're complete. That'd be a 1 // TODO Sometime in the future. Implement operator==(). 1 // Another thread stole the wakeup for this fd. (FIXME Can this actually 1 // FIXME: Remove in favor of opaque type on `regions`. 2 // FIXME: CharacterSet delegates equality and hashing to 1 /// - TODO: Might move the `EasyHandle` into this `struct` ? 1 // TODO: should be `checkResourceIsReachableAndReturnError` with autoreleased error parameter. 1 //TODO: The right way to do this is using URLProtocol.property(forKey:in) and URLProtocol.setProperty(_:forKey:in) 1 /// TODO: If the result here is negative the error should be obtained from the stream to propagate as a throw 1 // FIXME: completePath(...) is incorrectly annotated as requiring 1 * TODO: figure out how to make this be non-public. 1 // FIXME: Why not just compare _values, calendar & timeZone? 1 /// - TODO: Could make `workQueue` concurrent and use a multiple reader / single 1 // FIXME: handle optional locale with default arguments 1 // TODO: Add method to NSCharacterSet to do this in one call 1 // TODO: Add method to NSIndexSet to do this in one call 2 // TODO: verify that the return value here is never going to be nil; it seems like it may - thusly making the return value here optional which would result in sadness and regret 1 // FIXME: This should have different names for different kinds of volumes, and be localized. 1 // FIXME: We should feed the object to the hasher, but using 1 * TODO: 1 // TODO: Consider jumping ahead by week here instead of day. 1 } else if value is NSNumber /* FIXME: If swift-corelibs-foundation isn't updated to use NSNumber, this check will be necessary: || value is Int || value is Double */ { 1 // TODO: Better error handling. What should happen if we get an error on a file descriptor? 1 // TODO: We have multiple options: 2 // FIXME: we don't care about this, but Any only finds == on Hashables 1 // FIXME: one day this will be bridged from CoreFoundation and we 1 #if TARGET_OS_WIN32 // TODO: Unify this and CFTimeZoneGetNextDaylightSavingTimeTransition. 1 // TODO: Detect mutations 1 # TODO: remove non-ASCII characters from module, class and method names 1 // TODO: Could perhaps be an extension of NSCoding instead. 1 //TODO: Handle disposition. For now, we default to .useCredential 1 // FIXME: Split expression as a work-around for slow type 2 parseEntityReference_pl(pInfo, stringData); // TODO: move to return boolean 1 //TODO: fast paths for _fastContents != nil / _fastCString != nil 1 tokenRanges: UnsafeMutablePointer<[Range]>? = nil // FIXME:Can this be nil? 1 // TODO: Use the array method here when available. 2 //TODO: set { super.URL = newValue.map{ $0.copy() as! NSURL } } 1 //TODO: Use Bundle to get the version number? 1 //TODO: There's some confusion about [NSObject:AnyObject] vs. [String:String] for headers. 1 // TODO: in the future we might want to consider interjecting a temporary publisher that does this, so that all KVO subscriptions don't incur the cost. 1 // FIXME: When possible, expand conformance to `where Element : Trivial`. 14 // TODO: It may be worth looking into starting over a task that gets 1 // FIXME: This violates reflexivity when userInfo contains any 1 // FIXME: == compares `userInfo` by bridging it to NSDictionary, so its 1 //TODO: We could add a strong reference from the easy handle back to 1 // TODO: Combine with other switch on single unit, use a table 1 // TODO: Why isn't `addr` passed as a mutable pointer? 1 // FIXME: This makes for weak hashes. We really should hash everything 1 // FIXME: the documentation states that this method can return nil if the 1 // FIXME: PersonNameComponents hashes aren't seeded. 1 // TODO: support encodings other than UTF-8 1 // FIXME: handle optional locale with default arguments 1 # FIXME: It would be nice to detect the host ABI here 1 ///TODO: Set numerical stream weight when CURLOPT_PIPEWAIT is enabled 1 // FIXME: completePath(...) is incorrectly annotated as requiring 1 // FIXME: This doesn't return bundles that weren't loaded using CFBundle or class Bundle. https://bugs.swift.org/browse/SR-10433 1 // FIXME: Should this use KeyValuePair parsing to handle quoting properly? 1 * TODO: optimize 1 //TODO: throw a generic error? 1 // FIXME handle NSCalculationOverflow here? 1 // FIXME: We would like to call CFArrayCreateCopy() to avoid doing an 1 # TODO: This should be a bit more exhaustive 1 // FIXME check whether class hints should be subject to mapping or not 1 // TODO: Double check this logic vs that in _NSCFCalendar 1 // FIXME: We would like to call CFDictionaryCreateCopy() to avoid doing an 1 // FIXME: This violates reflexivity if object isn't Hashable. 1 // TODO: figure out how to return the truth here 4 // TODO: Throw an error 1 //TODO: The CURLOPT_PIPEDWAIT option is unavailable on Ubuntu 14.04 (libcurl 7.36) 1 //TODO: Need to map to one of the NSURLError... constants 1 // TODO: We do not yet resolve symlinks, but we must for compatibility 1 tokenRanges: UnsafeMutablePointer<[Range]>? = nil // FIXME:Can this be nil? 1 // FIXME: These three options (kCFBookmarkFileCreationWithoutOverwritingExistingFile, kCFBookmarkFileCreationWithoutAppendingAliasExtension, and kCFBookmarkFileCreationWithoutCreatingResourceFork) are not implemented and have never been used. 1 // TODO: This is probably not required, but left in place to more accurately duplicate previous behavior for time being. 1 // FIXME: Get rid of this allocation 1 // TODO: This protocol should be replaced with a native Swift object like the other Foundation bridged types. However, NSIndexSet does not have an abstract zero-storage base class like NSCharacterSet, NSData, and NSAttributedString. Therefore the same trick of laying it out with Swift ref counting does not work.and 2 // FIXME: swift-corelibs-foundation does not currently support querying this kind of filesystem information. We return reasonable assumptions for now, with the understanding that by noting support we are encouraging the application to try performing corresponding I/O operations (and handle those errors, which they already must) instead. Where those keys would inform I/O decisions that are not single operations, we assume conservatively. 1 //TODO: There's a problem with libcurl / with how we're using it. 1 // TODO: reporting 1 //TODO: Check the policy & consult the cache. 1 // TODO: Implement info value providers and return the code that was deleted here. 1 // FIXME: Darwin also hashes the keys in the userInfo dictionary. 1 * TODO: deprecate this function? 1 // FIXME: Why not just feed _values, calendar & timeZone to 1 #if false // FIXME: This test is broken; it was commented out in the original StdlibUnittest setup. 1 // TODO: NSDateComponents would compare leapMonth, not checking isLeapMonthSet first. 'isLeapMonth' returns NO in the case where 'isLeapMonthSet' returns NO. 1 //TODO: We may want to set 1 //TODO: Error handling 1 // FIXME: This should be in a separate package: 3 // TODO: `uname -r` probably works here too. 2 /* FIXME: Import from %S/Inputs/Coding/SharedTypes.swift somehow. */ 2 //TODO: Create / open the file for writing 1 // FIXME: The creation of this temporary string is unfortunate. 1 // TODO: Nested scopes 2 //TODO: switch with nil when signature is fixed 1 // TODO: We completely ignore attrp, because at the moment, the only 1 // TODO: This can still fail on Linux if the time zone is not recognized by ICU later 1 /* TODO: Be agnostic of the deleter function signature from the user-provided std::unique_ptr? */ \ 2 // TODO: These should not be necessary, since they're already provided by 1 // FIXME: This uses about 1/3 of the time spent in CFURLCreateStringByReplacingPercentEscapes 1 // TODO: invoke `swift_getForeignTypeMetadata` to do this directly 1 // TODO: handle DST 4 //TODO: set { super.mainDocumentURL = newValue.map{ $0.copy() as! NSURL } } 1 //TODO: throw error 1 ///TODO: Wait for pipelining/multiplexing. Unavailable on Ubuntu 14.0 1 // TODO: Error handling if fts_read fails. 1