Commit Graph

104175 Commits

Author SHA1 Message Date
Pavel Yaskevich
103630296d [Diagnostics] Add a getLoc method to FailureDiagnostic 2020-04-14 11:30:11 -07:00
Holly Borla
66e85721cb Merge pull request #30807 from hborla/property-wrapper-refactoring
[Property Wrappers] Refactor property wrappers so the synthesized backing init is only type checked once
2020-04-14 10:48:22 -07:00
Michael Gottesman
9b1c4c6189 Merge pull request #30942 from gottesmm/debug_compiler_autobisect
[debugging-the-compiler] Add to bisecting optimization passes a short example of how to use llvm's bisect tool to autobisect the optimizer.
2020-04-14 10:24:54 -07:00
Ben Langmuir
43bb415668 Merge pull request #30963 from benlangmuir/isdb-san
[build-script] Add sanitizer support to indexstore-db product
2020-04-14 09:28:55 -07:00
AG
f9610de25b Merge pull request #31000 from bitjammer/acgarland/rdar-61178480-indirect-default-impls
[SymbolGraph] Look at inherited protocols for default implementations
2020-04-14 09:18:15 -07:00
Saleem Abdulrasool
36667b9629 Merge pull request #31006 from compnerd/explicit-paths
build: explicitly pass the path to python2,python3
2020-04-14 08:41:44 -07:00
swift-ci
6f018260a8 Merge pull request #31010 from davezarzycki/pr31010 swift-DEVELOPMENT-SNAPSHOT-2020-04-14-a 2020-04-14 06:00:01 -07:00
swift-ci
683722515a Merge pull request #31009 from eeckstein/merge-funcs 2020-04-14 05:04:32 -07:00
David Zarzycki
80f0e39e1a [line-directive] Escape literal '['
New versions of Python warn if the literal is not escaped. Specifically:

    "Support for nested sets and set operations in regular expressions as in
    Unicode Technical Standard #18 might be added in the future. This would
    change the syntax. To facilitate this future change a FutureWarning will
    be raised in ambiguous cases for the time being. That include sets
    starting with a literal '[' or containing literal character sequences
    '--', '&&', '~~', and '||'. To avoid a warning, escape them with a
    backslash. (Contributed by Serhiy Storchaka in bpo-30349.)"

https://docs.python.org/dev/whatsnew/3.7.html
2020-04-14 07:19:25 -04:00
Erik Eckstein
f1b4101295 MergeFunctions: use new LLVM API to create a call.
rdar://problem/61734317
2020-04-14 12:28:51 +02:00
swift-ci
5243d3c809 Merge pull request #31008 from CodaFi/i-just-want-to-be-clean 2020-04-14 00:39:51 -07:00
swift-ci
2fa71b2e9d Merge pull request #29752 from roop/dev_tips_mem_usage 2020-04-14 00:27:00 -07:00
swift-ci
96ea34f5da Merge pull request #30010 from sjavora/ascii-only-paths-note 2020-04-14 00:07:43 -07:00
Kuba Mracek
9fc98bf1d8 Add a test for a compiler crasher with -O -whole-module-optimization -sanitize=address 2020-04-13 22:22:10 -07:00
Robert Widmann
dc122a3d6d Merge pull request #30999 from CodaFi/mystery-flavored-cereal
Tighten-up a Foundation Deserialization Test
2020-04-13 22:08:23 -07:00
Doug Gregor
674490aba5 Merge pull request #30944 from DougGregor/import-module-for-empty-extensions
Revert "[PrintAsObjC] Don't include the module for empty extensions"
2020-04-13 21:14:08 -07:00
Holly Borla
48b6bcd869 Merge pull request #31002 from hborla/property-wrapper-contextual-type
[Property Wrappers] Use the outermost wrapper attribute type as the contextual type for property wrapper initialization
2020-04-13 20:38:43 -07:00
Saleem Abdulrasool
fa6bedeccd build: explicitly pass the path to python2,python3
Explicitly pass the path to the python interpreter on macOS by using
`xcrun` to find the tools.
2020-04-13 20:29:29 -07:00
swift-ci
c4b6f8912a Merge pull request #31003 from zoecarver/sil-parser/move-lib 2020-04-13 20:14:17 -07:00
Valeriy Van
9821976c69 Removes redundant buffer zeroing in CGColorSpace.swift by using `init(unsafeUninitializedCapacity:initializingWith:) (#30134)
* Removes redundant buffer zeroing

* Fix compile error
2020-04-13 19:49:17 -07:00
Holly Borla
df7735e545 [Property Wrappers] Use the outermost wrapper attribute type as the
contextual type for property wrapper initialization
2020-04-13 18:17:40 -07:00
zoecarver
6f339f800d [SIL] [Parser] Move ParserSIL into SIL library.
Move the source files from ParserSIL into the SIL library and remove the
ParserSIL library. ParsersSIL doesn't need to be its own library and this change will
simplify our builds.
2020-04-13 17:23:08 -07:00
Saleem Abdulrasool
41958f95fc Merge pull request #30992 from compnerd/the-impossible-future
build: explicitly execute `line-directive-tool` with Python3
2020-04-13 17:11:19 -07:00
Rintaro Ishizaki
5d6298ad05 Merge pull request #30996 from rintaro/ide-completion-performcachedoperaiton
[CodeCompletion][NFC] Fix typo
2020-04-13 16:20:09 -07:00
Ben Langmuir
65fe324733 Fix macOS indexstore-db preset 2020-04-13 16:13:52 -07:00
AG
21eb60fc3c Merge pull request #30998 from bitjammer/acgarland/rdar-60963924-ignore-some-self-reqs
[SymbolGraph] Ignore some Self requirements
2020-04-13 15:48:27 -07:00
Ashley Garland
72dbdb097d [SymbolGraph] Look at inherited protocols for default implementations
rdar://61178480
2020-04-13 15:47:46 -07:00
Ben Langmuir
1d7ce7efe5 [build-script] Add sanitizer support to indexstore-db product
Support the usual `--enable-*san options`, but also add a
`--test-indexstore-db-santitize-all` that runs the tests once for each
sanitizer. Sanitizing just indexstore-db with a regular toolchain should
be much faster than using sanitized compilers.
2020-04-13 15:39:36 -07:00
Saleem Abdulrasool
850cd86909 Merge pull request #30997 from compnerd/svelte-fp
stdlib: android does not support FP80
2020-04-13 14:50:06 -07:00
Robert Widmann
86fa2f7ef9 Tighten-up a Foundation Deserialization Test
CocoaError.Code.fileReadUnknown conflicts with the CHECK-NOT line here.
We should be checking more specifically for UnknownBlock and UnknownCode
anyways.

rdar://53284293
2020-04-13 13:59:55 -07:00
Doug Gregor
091f987e28 Revert "[PrintAsObjC] Test that we don't leak extended implementationOnly types"
This reverts commit 4e8867e021.
2020-04-13 13:58:07 -07:00
Dario Rexin
20b2fec8a9 Merge pull request #30978 from compnerd/variants
build: duplicate and rename the `_add_variant_*` functions
2020-04-13 13:55:47 -07:00
swift-ci
9a0efcac2a Merge pull request #30548 from AnthonyLatsis/sr-7855 2020-04-13 13:20:27 -07:00
Ashley Garland
06d1d502a1 [SymbolGraph] Ignore some Self requirements
To ease the burden on the client, ignore some generic requirements involving
Self. For example, `Self: P` where we already know that `Self` conforms to `P`.

An example case:

```
public struct S: Equatable {
  public static func ==(lhs: S, rhs: S) -> Bool { ... }
}
```

`!=` is defined in terms of `Self` and the default implementation has a `Self:
Equatable`. For the purposes of documentation, it's not necessary to specify
that again on the page of documentation for `!=`.

rdar://60963924
2020-04-13 13:17:33 -07:00
Robert Widmann
bdabeae98c Merge pull request #30609 from gribozavr/sil-rst
Removed a description of curried functions
2020-04-13 13:14:20 -07:00
Saleem Abdulrasool
d0048ccc61 stdlib: android does not support FP80
Correct the maximal floating point width.  Although technically, Android
could support FP128 on AArch64, Swift does not currently support FP128.
For now, ensure that we use FP64 on Android.
2020-04-13 12:23:26 -07:00
Nathan Hawes
6f50aa4957 Merge pull request #30891 from nathawes/indent-enum-case-decl
[SourceKit/CodeFormat] Column-align enum element decls and the items in their parameter lists.
2020-04-13 12:08:05 -07:00
Rintaro Ishizaki
2bf9dde17b [CodeCompletion][NFC] Fix typo 2020-04-13 11:55:34 -07:00
Nathan Hawes
b3b7aa8ecf Merge pull request #30964 from nathawes/syntactic-rename-for-callAsFunction
[IDE][Refactoring] Handle 'callAsFunction' specially in syntactic rename
2020-04-13 11:36:53 -07:00
Mishal Shah
3e33a8ba30 Merge pull request #30698 from AustinConlon/patch-1
[Gardening] Change Xcode link
2020-04-13 11:34:33 -07:00
Nathan Hawes
e03e130f6a Merge pull request #30989 from CodaFi/of-no-avail
[Index][SR-9567] Allow unavailable decls to be walked
2020-04-13 11:26:54 -07:00
Saleem Abdulrasool
cba8723d61 build: explicitly execute line-directive-tool with Python3
The `line-directive-tool` is Python3 compliant.  Use the Python3
interpreter to execute this tool.
2020-04-13 09:53:50 -07:00
marcrasi
99356cd9f4 [AutoDiff upstream] add more differentiation tests (#30933) 2020-04-13 09:40:45 -07:00
Saleem Abdulrasool
f069371083 Merge pull request #30988 from compnerd/constantly-improving
WinSDK: add some constants for the SDK overlay
2020-04-13 08:53:08 -07:00
Saleem Abdulrasool
fa4b7ead4e Merge pull request #30990 from compnerd/shellcore
Platform: add ShellCore to WinSDK modulemap
2020-04-13 08:52:23 -07:00
swift-ci
263cdd07a8 Merge pull request #30991 from eeckstein/fix_string_array_test swift-DEVELOPMENT-SNAPSHOT-2020-04-13-a 2020-04-13 00:54:57 -07:00
Erik Eckstein
5b77f64356 tests: The large_string_array test only works for 64 bits. 2020-04-13 08:19:16 +02:00
Saleem Abdulrasool
b9e3109fe8 Platform: add ShellCore to WinSDK modulemap
Add the ShellCore module to the Windows SDK modulemap.
2020-04-12 21:37:41 -07:00
Bruno Rocha
160eb6cfd8 Update index test response to cover unavailable calls 2020-04-12 19:18:47 -07:00
Slava Pestov
ab45d517d5 Merge pull request #29931 from theblixguy/fix/SR-12178
[Typechecker] Fix _modify for wrapped properties with observers
2020-04-12 22:11:10 -04:00