llvm/llvm-project 8535
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Note: the repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org.
A code visualizer for Swift. Made for April Fools' Day 2019.
A proposal for adding diffing functionality to the Swift standard library
This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.
jrose-apple/jrose-apple.github.io 1
For hosting HTML renderings of things
The Swift Programming Language
This is the version of LLDB that supports the Swift programming language & REPL.
Pull request review commentapple/swift
[DNM] Placeholder types: take two
Expr *ExprRewriter::coerceToType(Expr *expr, Type toType, Optional<Pattern*> typeFromPattern) { auto &ctx = cs.getASTContext(); + // Diagnose conversions to invalid function types that couldn't be performed+ // beforehand because of placeholders.+ if (auto *fnTy = toType->getAs<FunctionType>()) {+ auto contextTy = cs.getContextualType(expr);+ if (cs.getConstraintLocator(locator)->isForContextualType() &&+ contextTy && contextTy->hasPlaceholder()) {+ TypeChecker::diagnoseInvalidFunctionType(fnTy, expr->getLoc(), None, dc,+ None);
🤞
comment created time in an hour
pull request commentapple/swift
Add support to skip watchOS 32-bit simulator by default
@swift-ci test macOS
comment created time in an hour
pull request commentapple/swift
Add support to skip watchOS 32-bit simulator by default
@swift-ci smoke test Linux
comment created time in an hour
push eventapple/swift
commit sha 3e81252f00961968b9589e0c83e572cb1b4cb303
Disable test to verify watchOS host tests are skipped (76823842)
push time in an hour
Pull request review commentapple/swift
[DNM] Placeholder types: take two
Expr *ExprRewriter::coerceToType(Expr *expr, Type toType, Optional<Pattern*> typeFromPattern) { auto &ctx = cs.getASTContext(); + // Diagnose conversions to invalid function types that couldn't be performed+ // beforehand because of placeholders.+ if (auto *fnTy = toType->getAs<FunctionType>()) {+ auto contextTy = cs.getContextualType(expr);+ if (cs.getConstraintLocator(locator)->isForContextualType() &&+ contextTy && contextTy->hasPlaceholder()) {+ TypeChecker::diagnoseInvalidFunctionType(fnTy, expr->getLoc(), None, dc,+ None);
Ok! I’ll give that a shot and see if there’s any unexpected fallout.
comment created time in 2 hours
pull request commentapple/swift
Add support to skip watchOS 32-bit simulator by default
Build failed Swift Test OS X Platform Git Sha - df28939255e45326189ee956ce9c088665c91f24
comment created time in 3 hours
pull request commentapple/swift
C++ Interop: fix crash for Swift extensions of C++ classes declared in namespaces
@swift-ci please smoke test macOS
comment created time in 4 hours
Pull request review commentapple/swift
[DNM] Placeholder types: take two
Expr *ExprRewriter::coerceToType(Expr *expr, Type toType, Optional<Pattern*> typeFromPattern) { auto &ctx = cs.getASTContext(); + // Diagnose conversions to invalid function types that couldn't be performed+ // beforehand because of placeholders.+ if (auto *fnTy = toType->getAs<FunctionType>()) {+ auto contextTy = cs.getContextualType(expr);+ if (cs.getConstraintLocator(locator)->isForContextualType() &&+ contextTy && contextTy->hasPlaceholder()) {+ TypeChecker::diagnoseInvalidFunctionType(fnTy, expr->getLoc(), None, dc,+ None);
Frankly I'm not sure exactly why it wasn't made to fail, I'd suggest you try to return ErrorType
wrapping fnTy
for cases when diagnoseInvalidFunctionType
would produce an error in resolveASTFunctionType
(so that code completion would still have access to underlying type) and return nullptr
in coerceToType
.
comment created time in 4 hours
pull request commentapple/swift
Add support to skip watchOS 32-bit simulator by default
00:03:20.860 + ./utils/python_lint.py
00:03:25.777 ./test/attr/Inputs/access-note-gen.py:28:10: E127 continuation line over-indented for visual indent
00:03:25.777 ./test/attr/Inputs/access-note-gen.py:29:10: E127 continuation line over-indented for visual indent
Not related to this PR
comment created time in 5 hours
pull request commentapple/swift
Add support to skip watchOS 32-bit simulator by default
@swift-ci Python lint
comment created time in 5 hours
pull request commentapple/swift
Add support to skip watchOS 32-bit simulator by default
@swift-ci test macOS
comment created time in 5 hours
pull request commentapple/swift
Add support to skip watchOS 32-bit simulator by default
@swift-ci smoke test Linux
comment created time in 5 hours
pull request commentapple/swift
[DiagnosticQol][SR-14505] Use DeclDescriptive kind in missing return data flow diagnostics
@swift-ci Please smoke test
comment created time in 5 hours
push eventapple/swift
commit sha 3fd82a182b1bdf33cd0079e28fb62ecbf8ba2273
[5.5] Add support for release/5.5 branch in update-checkout script
commit sha 3b3f173ebde6e3b723ce9c81c10ae7b7c881f37b
Merge pull request #36950 from apple/shahmishal/5.5-support-new-branch [5.5] Add support for release/5.5 branch in update-checkout script
push time in 5 hours
pull request commentapple/swift
[silmem2reg] Compute DomTreeLevels lazily.
@swift-ci smoke test
comment created time in 9 hours
PR opened apple/swift
We previously were computing this eagerly meaning that if we did not actually need the DomTreeLevel map, we would calculate it and additionally incur a relatively large malloc for the DenseMap (which stores by default IIRC 64 key value pairs).
Now, we do it lazily ensuring that we only compute this if we actually need it (when promoting non-single block stack allocations).
pr created time in 9 hours
push eventapple/swift
commit sha adb916849d1eb3e8d14b5e611aa757fee8cc1cd7
[AutoDiff] [AST] Handle null decl in 'printDifferentiableAttrArguments'. `DeclAttribute::print()` accepts null decls and has a null default argument. A segfault was triggered in SourceKitService because `printDifferentiableAttrArguments()` took a null decl and deferenced it. This patch makes `printDifferentiableAttrArguments()` handle null decls — if the decl is null, we do not print the differentiability parameters or the `where` clause. I have not added a unit test however because I haven't been able to reproduce it independently. This will be done later as this change is low-risk. Resolves rdar://76095289.
commit sha f17142883421ec0a240dd7d2208dd4dd79aec612
Merge pull request #36954 from rxwei/76095289
commit sha 8a34f2907c7f22a95d7cd83557435a25398e8e12
Merge remote-tracking branch 'origin/main' into next
push time in 9 hours
push eventapple/swift
commit sha adb916849d1eb3e8d14b5e611aa757fee8cc1cd7
[AutoDiff] [AST] Handle null decl in 'printDifferentiableAttrArguments'. `DeclAttribute::print()` accepts null decls and has a null default argument. A segfault was triggered in SourceKitService because `printDifferentiableAttrArguments()` took a null decl and deferenced it. This patch makes `printDifferentiableAttrArguments()` handle null decls — if the decl is null, we do not print the differentiability parameters or the `where` clause. I have not added a unit test however because I haven't been able to reproduce it independently. This will be done later as this change is low-risk. Resolves rdar://76095289.
commit sha f17142883421ec0a240dd7d2208dd4dd79aec612
Merge pull request #36954 from rxwei/76095289
push time in 9 hours
PR merged apple/swift
DeclAttribute::print()
accepts null decls and has a null default argument. A segfault was triggered in SourceKitService because printDifferentiableAttrArguments
took a null decl and deferenced it. This patch makes printDifferentiableAttrArguments()
handle null decls — if the decl is null, we do not print the differentiability parameters or the where
clause.
I have not added a unit test however because I haven't been able to reproduce it independently. This will be done later as this change is low-risk.
Resolves rdar://76095289.
pr closed time in 9 hours
push eventapple/swift
commit sha 90c0bf6e14b3d87e445f07fba63ff5e2c96e066d
[gardening] Remove an unnecessary bounds check on a container. As suggested by @atrick in review feedback in #36913.
commit sha 7345fd8e47f3b5ca6861eb34586d3283d56d6c4a
Merge pull request #36924 from gottesmm/pr-9a40bc50803b002b698f4b755a1f07fdaf6bd02d [gardening] Remove an unnecessary bounds check on a container.
commit sha 80a677fde5949ed2c76a698f8ffe6a50bd258856
Merge remote-tracking branch 'origin/main' into next
push time in 10 hours
push eventapple/swift
commit sha 90c0bf6e14b3d87e445f07fba63ff5e2c96e066d
[gardening] Remove an unnecessary bounds check on a container. As suggested by @atrick in review feedback in #36913.
commit sha 7345fd8e47f3b5ca6861eb34586d3283d56d6c4a
Merge pull request #36924 from gottesmm/pr-9a40bc50803b002b698f4b755a1f07fdaf6bd02d [gardening] Remove an unnecessary bounds check on a container.
push time in 10 hours
PR merged apple/swift
As suggested by @atrick in review feedback in #36913.
pr closed time in 10 hours
pull request commentapple/swift
[DiagnosticQol][SR-14505] Use DeclDescriptive kind in missing return data flow diagnostics
@swift-ci Please smoke test
comment created time in 10 hours
pull request commentapple/swift
[DiagnosticQol][SR-14505] Use DeclDescriptive kind in missing return data flow diagnostics
@swift-ci Please smoke test
comment created time in 12 hours
pull request commentapple/swift
Fix long-standing soundness hole in rethrows checking
Instead of an underscored attribute, we could instead formalize it by introducing a new
rethrows(unsafe)
spelling in the function signature.
This would make sense to me—that, or some scoped bridging mechanism to allow an engineer to say "I'm going to call an intermediate function that can't throw an error itself (e.g. because it's @convention(c)
), but which may need to catch an error thrown by the passed closure. Trust me." Which is of course what the new attribute does, but having a with
-like function might be better from a readability standpoint (and would allow us to limit the scope of such behaviour to a specific subsection of the rethrowing function's body rather than the whole body.)
If nothing else, we could reserve the @_rethrowsUnchecked
attribute for this with
-like function only and tell everyone else to call it and not use the attribute directly.
comment created time in 12 hours
Pull request review commentapple/swift
Fix long-standing soundness hole in rethrows checking
SIMPLE_DECL_ATTR(reasync, AtReasync, ABIBreakingToAdd | ABIBreakingToRemove | APIBreakingToAdd | APIBreakingToRemove, 110) +SIMPLE_DECL_ATTR(_rethrowsUnchecked, RethrowsUnchecked,
It would be valuable to land this attribute before the checker changes so that code that relies on the current behaviour (such as DispatchQueue
) has an opportunity to migrate.
comment created time in 12 hours