swift-ci
77fa67c3c9
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-23 14:13:27 -08:00
Rintaro Ishizaki
c6387a5450
[Macros] Small changes for review
2023-02-22 17:41:43 -08:00
Rintaro Ishizaki
0e31393024
[Macros] Add executable plugin support
...
Executable compiler plugins are programs invoked by the host compiler
and communicate with the host with IPC via standard IO (stdin/stdout.)
Each message is serialized in JSON, prefixed with a header which is a
64bit little-endian integer indicating the size of the message.
* Basic/ExecuteWithPipe: External program invocation. Lik
llvm::sys::ExecuteNoWait() but establishing pipes to the child's
stdin/stdout
* Basic/Sandbox: Sandboxed execution helper. Create command line
arguments to be executed in sandbox environment (similar to SwiftPM's
pluging sandbox)
* AST/PluginRepository: ASTContext independent plugin manager
* ASTGen/PluginHost: Communication with the plugin. Messages are
serialized by ASTGen/LLVMJSON
rdar://101508815
2023-02-22 10:22:14 -08:00
BJ Homer
f876f26aaf
Add a feature flag for DisableActorInferenceFromPropertyWrapperUsage.
...
This will be enabled by default in Swift 6, but can now also be enabled by passing `-enable-upcoming-feature DisableActorInferenceFromPropertyWrapperUsage` to the compiler.
2023-02-22 08:45:44 -07:00
swift-ci
76b7966ccb
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-20 22:16:03 -08:00
Alejandro Alonso
10f85db170
Merge pull request #63734 from Azoy/builtin-flag
...
[Frontend] Add option to explicitly import Builtin
2023-02-20 22:08:02 -08:00
swift-ci
2f942098d5
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-20 15:33:54 -08:00
swift-ci
4bfd4e3281
Merge pull request #63785 from kavon/strict-concurrency-minimal-cherry
...
Use `-strict-concurrency=minimal` as the default for Swift 5.x mode.
2023-02-20 15:20:25 -08:00
Doug Gregor
165827ce9d
Use -strict-concurrency=minimal as the default for Swift 5.x mode.
...
Emulate the behavior of Swift 5.5/5.6 by default, using
`-strict-concurrency=minimal`.
2023-02-20 11:14:46 -08:00
swift-ci
dd1259be79
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-20 10:33:59 -08:00
swift-ci
815e8cc8e7
Merge pull request #63714 from ahoppen/ahoppen/ideinspectiontarget-charsourcerange
...
[IDE] Check whether an AST node contains the IDE inspection point based on `CharSourceRange`
2023-02-20 10:20:45 -08:00
Alex Hoppen
8bdf68d483
[IDE] Check whether an AST node contains the IDE inspection point based on CharSourceRange
...
This fixes an issue if the range ends with a string literal that contains the IDE inspection target. In that case the end of the range will point to the start of the string literal but the IDE inspection target is inside the string literal and thus after the range’s end.
2023-02-20 15:37:38 +01:00
swift-ci
08bc6ec292
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-17 12:35:58 -08:00
L-j-h-c
913dcd62b8
[Gardening] fix typos across docs and codebase
...
fix typos across docs and codebase
2023-02-17 23:55:16 +09:00
Alejandro Alonso
023c40c809
Add option to explicitly import Builtin
2023-02-16 15:23:45 -08:00
swift-ci
f5f3acff89
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-15 15:33:54 -08:00
Rintaro Ishizaki
d93183141c
Merge pull request #63689 from rintaro/astgen-llvmserialization
...
[ASTGen] Add Encoder/Decoder implementation backed by llvm::json::Value
2023-02-15 15:29:13 -08:00
swift-ci
969a797b1d
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-15 12:14:18 -08:00
Rintaro Ishizaki
66aba1bc67
[ASTGen] Add Encoder/Decoder implementation backed by llvm::json::Value
...
Preparation for a future use.
2023-02-15 11:55:16 -08:00
Erik Eckstein
748264c45f
Add a unprotectedStackAlloc builtin
...
It's like `Builtin.stackAlloc`, but doesn't set the `[stack_protection]` flag on its containing function.
2023-02-15 08:09:38 +01:00
swift-ci
b08054dcc3
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-14 09:38:50 -08:00
Alexis Laferrière
9a1a32cd9b
Merge pull request #63639 from xymus/serial-precise-tag
...
[Serialization] Don't fail the precise tag check if only the last digit doesn't match
2023-02-14 09:31:31 -08:00
Alexis Laferrière
4579e37e61
[Serialization] Intro distinct compiler revision string for serialization
2023-02-13 13:51:30 -08:00
swift-ci
8c038a1802
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-11 15:34:18 -08:00
Doug Gregor
7ea0e3f096
Switch GeneratedSourceInfo ranges over to CharSourceRange.
...
Macro expansion buffers, along with other generated source buffers,
need more precise "original source ranges" that can be had with the
token-based `SourceRange`. Switch over to `CharSourceRange` and provide
more thoughtfully-determined original source ranges.
2023-02-11 11:23:26 -08:00
swift-ci
96a47e7353
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-11 11:14:21 -08:00
Holly Borla
f04f512184
[Macros] Add a new macro role for attached peer macros.
2023-02-10 14:38:22 -08:00
swift-ci
270394d630
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-10 12:13:32 -08:00
Alexis Laferrière
62a646974f
[Serialization] Move deserialization safety behind an env var or flag
2023-02-09 17:29:06 -08:00
Alexis Laferrière
09b06a8cd3
Revert "[Serialization] Enable deserialization safety by default"
...
This reverts commit af70cc5464 .
# Conflicts:
# test/Serialization/Safety/unsafe-decls.swift
2023-02-09 15:28:42 -08:00
swift-ci
ff1899f6ec
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-09 09:33:22 -08:00
Pavel Yaskevich
8eebb5bec1
Merge pull request #63522 from xedin/revert-type-wrappers
...
[AST/Sema/SIL] Revert TypeWrappers feature functionality
2023-02-09 09:27:18 -08:00
swift-ci
27ada2f087
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-09 06:53:08 -08:00
Doug Gregor
c085f5afd9
Record original source range of generated source buffers into dumped files
...
This helps us establish where the code from a generated source buffer
would go, for external tools that don't understand serialized
diagnostics.
2023-02-08 18:08:33 -08:00
swift-ci
d9c1f28d98
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-08 15:13:37 -08:00
Doug Gregor
85ba74b812
Introduce a separate feature to cover @freestanding(expression)
2023-02-08 11:26:14 -08:00
Pavel Yaskevich
61ab4d539d
[Frontend] Remove TypeWrappers flag and associated attributes
2023-02-08 09:27:07 -08:00
swift-ci
68e72ce6c1
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-07 20:33:37 -08:00
Alex Lorenz
1a763c0cbc
Merge pull request #63336 from hyp/eng/emit-symbolic-interfaces
...
[interop] Emit symbolic interfaces while indexing
2023-02-07 20:24:36 -08:00
swift-ci
6545e20750
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-06 19:53:54 -08:00
Dario Rexin
a8bea1e70a
[SILOpt] Reject existentials in AnyObject specialization application ( #63477 )
...
Also allow this feature to be enabled in non-assert compilers
2023-02-06 19:40:05 -08:00
swift-ci
1a8ead7280
Merge remote-tracking branch 'origin/main' into rebranch
2023-02-06 05:53:34 -08:00
Alex Hoppen
a5f85ee10c
[SourceKit] Make sure we reuse ASTContext in function bodies for solver-based cursor info
...
The main problem that prevented us from reusing the ASTContext was that we weren’t remapping the `LocToResolve` in the temporary buffer that only contains the re-parsed function back to the original buffer. Thus `NodeFinder` couldn’t find the node that we want to get cursor info for.
Getting AST reuse to work for top-level items is harder because it currently heavily relies on the `HasCodeCompletion` state being set on the parser result. I’ll try that in a follow-up PR.
rdar://103251263
2023-02-02 22:03:25 +01:00
Alex Lorenz
f36e5cf641
[interop] add 'ImportSymbolicCXXDecls' experimental import mode for importing class templates syntactically but not semantically
2023-01-31 14:58:13 -08:00
swift-ci
ef62fdf232
Merge remote-tracking branch 'origin/main' into rebranch
2023-01-31 11:53:53 -08:00
Doug Gregor
919da2c6c0
Enable emission of macro expansion buffers for diagnostics by default
...
This feature is too handy to leave off-by-default. Enable it by
default, but allow `-emit-macro-expansion-files no-diagnostics` to
disable it.
2023-01-30 18:16:20 -08:00
Doug Gregor
8871129896
[Macros] Add frontend flag to dump macro expansions for diagnostics.
...
Add frontend flag `-emit-macro-expansion-files diagnostics` to emit any
macro expansion buffers referenced by diagnostics into files in a
temporary directory. This makes debugging type-checking failures in
macro expansions far easier, because you can see them after the
compiler process has exited.
2023-01-30 18:05:53 -08:00
swift-ci
7bab68c056
Merge remote-tracking branch 'origin/main' into rebranch
2023-01-27 07:37:00 -08:00
Holly Borla
f6f57a8099
[Macros] Rename "synthesized member macros" to "member macros".
2023-01-26 21:52:36 -08:00
swift-ci
791d160814
Merge remote-tracking branch 'origin/main' into rebranch
2023-01-26 10:34:25 -08:00