Skip to content

Commit a97ab6d

Browse files
committed
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2 parents f4aaece + 4aabe88 commit a97ab6d

File tree

171 files changed

+1362
-595
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+1362
-595
lines changed

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ set(SWIFT_ENABLE_GOLD_LINKER FALSE CACHE BOOL
6969
"Enable using the gold linker when available")
7070

7171
set(_SWIFT_KNOWN_INSTALL_COMPONENTS
72-
"compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;editor-integration;tools;testsuite-tools;dev;sourcekit-xpc-service;sourcekit-inproc")
72+
"compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;editor-integration;tools;testsuite-tools;dev;license;sourcekit-xpc-service;sourcekit-inproc")
7373

7474
# Set the SWIFT_INSTALL_COMPONENTS variable to the default value if it is not passed in via -D
7575
set(SWIFT_INSTALL_COMPONENTS "${_SWIFT_KNOWN_INSTALL_COMPONENTS}" CACHE STRING
@@ -125,6 +125,9 @@ option(SWIFT_RUNTIME_CRASH_REPORTER_CLIENT
125125
"Whether to enable CrashReporter integration"
126126
FALSE)
127127

128+
set(SWIFT_DARWIN_XCRUN_TOOLCHAIN "XcodeDefault" CACHE STRING
129+
"The name of the toolchain to pass to 'xcrun'")
130+
128131
set(SWIFT_DARWIN_ICU_INCLUDE_PATH "" CACHE STRING
129132
"Path to the directory where the ICU headers are located")
130133

@@ -644,6 +647,10 @@ if(SWIFT_INCLUDE_DOCS)
644647
add_subdirectory(docs)
645648
endif()
646649

650+
swift_install_in_component(license
651+
FILES "LICENSE.txt"
652+
DESTINATION "share/swift")
653+
647654
# Add a documentation target so that documentation shows up in the
648655
# Xcode project.
649656
if(XCODE)

bindings/xml/comment-xml-schema.rng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,9 @@
767767

768768
<define name="CodeListing">
769769
<element name="CodeListing">
770+
<attribute name="language">
771+
<data type="string" />
772+
</attribute>
770773
<zeroOrMore>
771774
<ref name="zCodeLineNumbered"/>
772775
</zeroOrMore>

docs/ABI.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,12 +1176,12 @@ for the first time. The first argument type will mangle in long form,
11761176
``CC3zim4zang4zung``, and in doing so, ``zim`` will acquire substitution ``S_``,
11771177
``zim.zang`` will acquire substitution ``S0_``, and ``zim.zang.zung`` will
11781178
acquire ``S1_``. The second argument is the same as the first and will mangle
1179-
using its substitution, ``CS1_``. The
1179+
using its substitution, ``S1_``. The
11801180
third argument type will mangle using the substitution for ``zim``,
11811181
``CS_7zippity``. (It also acquires substitution ``S2_`` which would be used
11821182
if it mangled again.) The result type will mangle using the substitution for
11831183
``zim.zang``, ``CS0_3zoo`` (and acquire substitution ``S3_``). The full
1184-
function type thus mangles as ``fTCC3zim4zang4zungCS1_CS_7zippity_CS0_3zoo``.
1184+
function type thus mangles as ``fTCC3zim4zang4zungS1_CS_7zippity_CS0_3zoo``.
11851185

11861186
::
11871187

docs/Generics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ lets us describe an iteration of values of some given value type::
594594
func next() -> Element
595595
}
596596

597-
Now, we want to express the notion of an enumerable collection, which provides a
597+
Now, we want to express the notion of an enumerable collection, which provides
598598
iteration, which we do by adding requirements into the protocol::
599599

600600
protocol EnumerableCollection : Collection {

docs/Pattern Matching.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ imperative language — in contrast to, say, a functional language where
354354
you're in an expression and you need to produce a value — there's a
355355
colorable argument that non-exhaustive matches should be okay. I
356356
dislike this, however, and propose that it should be an error to
357-
make an non-exhaustive switch; people who want non-exhaustive matches
357+
make a non-exhaustive switch; people who want non-exhaustive matches
358358
can explicitly put in default cases.
359359
Exhaustiveness actually isn't that difficult to check, at least over
360360
ADTs. It's also really the behavior that I would expect from the
@@ -689,13 +689,13 @@ interpreted according to what is found:
689689
value must match the named type (according to the rules below for
690690
'is' patterns). It is okay for this to be trivially true.
691691

692-
In addition, there must be an non-empty arguments clause, and each
692+
In addition, there must be a non-empty arguments clause, and each
693693
element in the clause must have an identifier. For each element,
694694
the identifier must correspond to a known property of the named
695695
type, and the value of that property must satisfy the element
696696
pattern.
697697

698-
- If the name resolves to a enum element, then the dynamic type
698+
- If the name resolves to an enum element, then the dynamic type
699699
of the matched value must match the enum type as discussed above,
700700
and the value must be of the specified element. There must be
701701
an arguments clause if and only if the element has a value type.

docs/SIL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4058,7 +4058,7 @@ select_value
40584058
// %r1, %r2, %r3, etc. must have type $T
40594059
// %n has type $T
40604060

4061-
Selects one of the "case" or "default" operands based on the case of an
4061+
Selects one of the "case" or "default" operands based on the case of a
40624062
value. This is equivalent to a trivial `switch_value`_ branch sequence::
40634063

40644064
entry:

docs/Testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ CPU=i386_or_x86_64`` to ``REQUIRES: CPU=x86_64``.
355355
``swift_test_mode_optimize[_unchecked|none]_<CPUNAME>`` to specify a test mode
356356
plus cpu configuration.
357357

358-
``optimized_stdlib_<CPUNAME>``` to specify a optimized stdlib plus cpu
358+
``optimized_stdlib_<CPUNAME>``` to specify an optimized stdlib plus cpu
359359
configuration.
360360

361361
Feature ``REQUIRES: executable_test``

docs/archive/LangRef.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ <h4 id="attribute-infix">Infix Attributes</h4>
762762
<p>FIXME: Implement these restrictions.</p>
763763

764764
<!-- _____________________________________________________________________ -->
765-
<h4 id="attribute-resilence">Resilience Attribute</h4>
765+
<h4 id="attribute-resilience">Resilience Attribute</h4>
766766

767767
<pre class="grammar">
768768
attribute-resilience ::= 'resilient'

docs/doxygen.cfg.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ PERL_PATH =
10631063
#---------------------------------------------------------------------------
10641064

10651065
# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
1066-
# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
1066+
# generate an inheritance diagram (in HTML, RTF and LaTeX) for classes with base
10671067
# or super classes. Setting the tag to NO turns the diagrams off. Note that
10681068
# this option is superseded by the HAVE_DOT option below. This is only a
10691069
# fallback. It is recommended to install and use dot, since it yields more

docs/proposals/Accessors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ that was technically copied beforehand. For example::
704704
var oldArray : [Int] = []
705705

706706
// This function copies array before modifying it, but because that
707-
// copy is of an value undergoing modification, the copy will use
707+
// copy is of a value undergoing modification, the copy will use
708708
// the same buffer and therefore observe updates to the element.
709709
func foo(inout element: Int) {
710710
oldArray = array

0 commit comments

Comments
 (0)