Doug Gregor
22eecacc35
Adopt unsafe annotations throughout the standard library
2025-02-26 14:28:01 -08:00
Alejandro Alonso
1e2192e018
Update CommandLine.swift
2024-06-27 10:41:59 -07:00
Alejandro Alonso
3285f56dad
Ignore argc
2024-06-26 10:54:57 -07:00
Nate Chandler
f9ad81e106
[BitwiseCopyable] Remove #ifs.
2024-04-25 11:44:15 -07:00
Nate Chandler
b1fbe4ea91
[BitwiseCopyable] Remove underscore.
2024-04-25 11:44:15 -07:00
Nate Chandler
eb1f0ac68a
[BitwiseCopyable] Suppress via ~.
...
In addition to the existing language mechanism of
`@available(*, unavailable)`.
2024-04-15 16:46:24 -07:00
Nate Chandler
deeea710ae
[NFC] stdlib: Separate type decl from members.
2024-04-15 16:46:00 -07:00
Alejandro Alonso
9d318220b9
Deprecate CommandLine.arguments setter
2024-03-12 09:54:53 -07:00
Nate Chandler
4472178eca
[stdlib] Suppress CommandLine : _BitwiseCopyable.
...
Mark it always unavailable per LWG feedback.
2024-03-04 16:17:06 -08:00
Jonathan Grynspan
75dfb56b67
Clarify documentation for CommandLine.unsafeArgv re: the trailing nil. ( #58484 ) ( #63413 )
2023-02-03 16:28:45 -05:00
Kuba (Brecka) Mracek
7538949859
Split out CommandLine enum into a separate static library, allow removing it from stdlib ( #39591 )
...
This is for the 'freestanding' build to stop assuming the platform has argc/argv.
- Introduce a new sub-library, libswiftCommandLineSupport.a
- Move stubs/CommandLine.cpp into this library
- Conditionally embed it into libswiftCore
- Conditionally embed it into libswiftPrivateLibcExtras if not in libswiftCore to support testing
- Add SWIFT_STDLIB_HAS_COMMANDLINE CMake (and build-script) flag
2021-10-13 07:02:43 -07:00
Ed Greenaway
a92357ab05
Update documentation for CommandLine.arguments ( #25304 )
...
Addresses SR-6776 Documentation comment for CommandLine.arguments contains implementation remarks
2019-06-19 15:47:17 -07:00
Ben Cohen
e9d4687e31
De-underscore @frozen, apply it to structs ( #24185 )
...
* De-underscore @frozen for enums
* Add @frozen for structs, deprecate @_fixed_layout for them
* Switch usage from _fixed_layout to frozen
2019-05-30 17:55:37 -07:00
Ben Cohen
dd2f3b4386
[stdlib] More inalienable auditing ( #18925 )
...
* Removing FIXME from methods also marked always/never
* Unavailable/deprecated things don't need inlining
* Trivial implementations
* Enum namespaces
* Unsafe performance of opaque/raw pointer
* Dump doesn't need to be fast
* Error paths shouldn't require inlining
* Consistency with surrounding code
* Lazy performance needs specialization
2018-08-23 18:52:21 -07:00
Slava Pestov
e1f50b2d36
SE-0193: Rename @_inlineable to @inlinable, @_versioned to @usableFromInline
2018-03-30 21:55:30 -07:00
Jordan Rose
9034ba617b
Ban @_fixed_layout on enums in favor of @_frozen
...
In theory there could be a "fixed-layout" enum that's not exhaustive
but promises not to add any more cases with payloads, but we don't
need that distinction today.
(Note that @objc enums are still "fixed-layout" in the actual sense of
"having a compile-time known layout". There's just no special way to
spell that.)
2018-03-20 14:49:10 -07:00
Max Moiseev
5650f80937
[stdlib] Annotate types with @_fixed_layout
...
This will allows us to build the standard library in resilient mode by
default, hopefully, without performance regression.
<rdar://problem/36362648>
2018-01-09 14:46:30 -08:00
Max Moiseev
53b8419279
[stdlib] Make all the stdlib APIs @_inlineable
...
This change in theory should allow us to remove a special stdlib-only
sil-serialize-all compilation mode.
<rdar://problem/34138683>
2017-09-29 11:26:56 -07:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
Robert Widmann
fe00dc74ea
Get rid of _stdlib_didEnterMain
...
Process arguments are now fetched per-platform
2016-12-12 23:47:48 -05:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
airspeedswift
ed5231b47c
Numbered all FIXME(ABI) entries for tracking purposes. ( #4868 )
2016-09-19 16:41:41 -07:00
Tony Parker
be316f5035
Rename NSTask to Process
2016-07-21 15:23:12 -07:00
Tony Parker
80c85e6905
Add a temporary typealias to avoid build breakage
2016-07-19 09:04:12 -07:00
Tony Parker
f65c1390cb
Rename Process to CommandLine
...
Rename Process to CommandLine [SE-0086].
2016-07-18 17:02:02 -07:00