Commit Graph

6605 Commits

Author SHA1 Message Date
swift-ci
763c61f92f Merge remote-tracking branch 'origin/main' into rebranch 2024-08-30 18:13:35 -07:00
Jim M. R. Teichgräber
f2e57d8c76 [SourceKit] Add optional declarations array to interface gen request (#75802)
Introduces the new DeclarationsArrayBuilder and adds it to the
EditorConsumer. Declaration info always includes a kind, offset, and
length, and includes a USR where applicable.
As the USR is already available for editor.open.interface type requests,
this doesn't compute any new information, it just exposes more of what's
there already.
2024-08-30 18:04:12 -07:00
swift-ci
309ae4b8e6 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-29 09:54:25 -07:00
Rintaro Ishizaki
0ad185ae67 Merge pull request #76130 from rintaro/cmake-package-name-toolchain
[CMake] Build macro plugin and plugin servers as a package
2024-08-29 09:37:49 -07:00
swift-ci
f624072420 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-29 03:33:30 -07:00
Mykola Pokhylets
e0ad7bde82 Merge branch 'main' into mpokhylets/isolated-deinit
# Conflicts:
#	include/swift/Basic/Features.def
#	lib/AST/ASTPrinter.cpp
#	lib/AST/FeatureSet.cpp
2024-08-29 11:28:43 +02:00
Rintaro Ishizaki
371dfe860e [CMake] Build macro plugin and plugin servers as a package
Build 'lib/swift/host' libraries and linking binaries as a single
"package" instead of buillding the linking binaries with
"prefer-interface" hack.
This enables CMO between them.
2024-08-28 15:03:05 -07:00
Hamish Knight
1cb0f8fdd5 [AST] Rename isPrivateStdlibDecl -> isPrivateSystemDecl
This better reflects what we're actually checking
here.
2024-08-28 18:31:51 +01:00
Hamish Knight
9bd042679b [test] Ensure we set an input file for -print-header
This ensures we don't violate the invariant that
a ModuleDecl isn't empty.
2024-08-28 18:31:51 +01:00
swift-ci
3a988fb3f9 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-27 19:18:30 -07:00
Shubham Sandeep Rastogi
24582264c6 Add MCCAS support to SwiftCaching.cpp
To materialize the object file correctly on a cache hit when MCCAS is
enabled, if lib_InternalSwiftScan.dylib is used to detect the cache hit,
we need to add MCCAS support to the replay code in SwiftCaching.cpp
2024-08-22 13:09:48 -07:00
Mykola Pokhylets
50b1313175 Merge branch 'main' into mpokhylets/isolated-deinit
# Conflicts:
#	lib/SILGen/SILGenDistributed.cpp
#	lib/Sema/TypeCheckConcurrency.cpp
2024-08-15 16:58:43 +02:00
swift-ci
88e671860c Merge remote-tracking branch 'origin/main' into rebranch 2024-08-12 23:33:59 -07:00
Kuba (Brecka) Mracek
2941f24da3 Merge pull request #75308 from kubamracek/embedded-indexing-non-wmo
[embedded] Don't produce PerfDiags when in non-WMO mode (e.g. when building during indexing)
2024-08-12 23:29:30 -07:00
swift-ci
30a2b71979 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-12 16:14:01 -07:00
Alex Hoppen
01f3be2c6b Merge pull request #75842 from ahoppen/ast-consumer-failed-pure-virtual
[SourceKit] Make `SwiftASTConsumer::failed` pure virtual
2024-08-12 16:13:19 -07:00
Alex Hoppen
84c0d13b30 [SourceKit] Make SwiftASTConsumer::failed pure virtual
Previously, if a semantic tokens request or diagnostic request failed, we wouldn’t return any response.
2024-08-12 12:46:11 -07:00
Kuba Mracek
a2644683d7 [SourceKit] Add missing failed() override in computeDiagnostics, fix missing propagation of errors 2024-08-12 12:44:35 -07:00
Kuba Mracek
80056c15cd [embedded] Explicitly disable PerfDiags from SourceKit instead of always disabling when WMO is off 2024-08-10 14:50:22 -07:00
Ben Barham
467e528200 Merge remote-tracking branch 'origin/main' into manual-rebranch-merge
Conflicts:
  - `lib/Serialization/ModuleFormat.h` bumped version to account for
    differences between main and rebranch.
2024-08-09 15:22:39 -07:00
Rintaro Ishizaki
5128ceb74c Merge pull request #75585 from finagolfin/droid
[Macros] Add the correct RPATH flags to the in-process plugin server host library
2024-08-09 10:47:43 -07:00
Slava Pestov
30587184d3 Merge pull request #75789 from slavapestov/global-conformance-lookup-part-2
Move global conformance lookup entry points to ConformanceLookup.h
2024-08-09 10:01:25 -04:00
Egor Zhdan
bfe72b4be9 Merge pull request #75589 from swiftlang/egorzhdan/linux-libcxx-interop
[cxx-interop] Allow compiling with libc++ on Linux
2024-08-09 13:42:29 +01:00
Finagolfin
3888ae338a [Macros] Add the correct RPATH flags to the in-process plugin server host library
Also, make sure it builds for Android.
2024-08-09 10:27:32 +05:30
Slava Pestov
375363a473 AST: Move global conformance lookup entry points to ConformanceLookup.h 2024-08-08 23:35:58 -04:00
swift-ci
5ec87a7c3d Merge remote-tracking branch 'origin/main' into rebranch 2024-08-08 13:37:46 -07:00
Egor Zhdan
059f0f97d1 [cxx-interop] Allow compiling with libc++ on Linux
This makes sure that Swift respects `-Xcc -stdlib=libc++` flags.

Clang already has existing logic to discover the system-wide libc++ installation on Linux. We rely on that logic here.

Importing a Swift module that was built with a different C++ stdlib is not supported and emits an error.

The Cxx module can be imported when compiling with any C++ stdlib. The synthesized conformances, e.g. to CxxRandomAccessCollection also work. However, CxxStdlib currently cannot be imported when compiling with libc++, since on Linux it refers to symbols from libstdc++ which have different mangled names in libc++.

rdar://118357548 / https://github.com/swiftlang/swift/issues/69825
2024-08-08 16:24:58 +01:00
Ian Anderson
578336c859 Build fix for when the Darwin module is split up
After the C standard library headers are split out of Darwin, DumpConcurrency.swift no longer sees string.h. Explicitly import <string.h>'s new module when it's available.
rdar://127076885
2024-08-07 15:46:02 -07:00
swift-ci
4d726b37a8 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-06 19:55:44 -07:00
swift-ci
719a0a9889 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-06 15:54:06 -07:00
Xi Ge
98f4ad840a DependenciesScanner: report user module version for textual Swift interfaces 2024-08-06 15:45:45 -07:00
Xi Ge
b4d64bde55 DependencyScanner: report user module version in dependency scanning results for binary Swift modules 2024-08-06 11:43:53 -07:00
swift-ci
21712d92b7 Merge remote-tracking branch 'origin/main' into rebranch 2024-07-31 10:34:44 -07:00
Alex Hoppen
1f4a7222d2 Merge pull request #75576 from ahoppen/interfacegen-semantic
[SourceKit] Run interface generation request on a deep stack
2024-07-31 10:23:39 -07:00
Alex Hoppen
27fd76da9c [SourceKit] Run interface generation request on a deep stack
Building the generated interface for WinSDK can overflow the stack.
Treat it as a semantic request to run it on a large stack.

Fixes swiftlang/sourcekit-lsp#1115
rdar://123944504
2024-07-30 18:03:37 -07:00
swift-ci
8465f54190 Merge remote-tracking branch 'origin/main' into rebranch 2024-07-30 16:56:50 -07:00
Steven Wu
61e725f57e [Caching] Use swift-frontend as executable name in replays
Don't try to figure out the executable names during replay from
libSwiftScan.dylib. The actual executable path for the process actually
doesn't matter in this case to reconstruct the invocation and might
actually be misleading.

Just use `swift-frontend` as a placeheader executable name for
in-process cache replay.

rdar://132758308
2024-07-30 10:39:25 -07:00
Steven Wu
aaf9e675e4 [Caching] Fix an assertion error when replayDiagnostic failed
Fix an assertion when replayDiagnostics failed in libSwiftScan.
2024-07-30 10:39:25 -07:00
swift-ci
1df4bb130e Merge remote-tracking branch 'origin/main' into rebranch 2024-07-29 15:54:29 -07:00
Alex Hoppen
c5e201dd07 Merge pull request #75490 from ahoppen/swiftparser-on-deep-stack
[SourceKit] Run SwiftParser on a deep stack for the related identifiers request
2024-07-29 15:52:43 -07:00
Alex Hoppen
3bffa7970d [SourceKit] Run SwiftParser on a deep stack for the related identifiers request
We ran SwiftParser in `handlePrimaryAST` for related identifiers. That function is called on a dispatch queue with reduced stack size and could cause the parser to stack overflow if the program is very nested.

Run `handlePrimaryAST` on a deep stack for this request to fix the issue.

rdar://129960285
2024-07-25 16:57:08 -07:00
swift-ci
c803e464ab Merge remote-tracking branch 'origin/main' into rebranch 2024-07-25 16:54:00 -07:00
Allan Shortlidge
5a4440787e Macros: Resolve CompilerPluginMessageHandler deprecation warnings.
NFC.
2024-07-25 11:30:10 -07:00
swift-ci
d87d3c3be8 Merge remote-tracking branch 'origin/main' into rebranch 2024-07-19 17:35:15 -07:00
Rintaro Ishizaki
f0808e5335 [SwiftSyntax] Workaround a crash
The compiler crashes when compiling swift files importing package-cmo
enabled '.swiftmodule'. Avoid that by not-using '.swiftmodule'.
2024-07-17 14:29:28 -07:00
swift-ci
4ba49ce78f Merge remote-tracking branch 'origin/main' into rebranch 2024-07-16 09:56:11 -07:00
Steven Wu
ed936853dc [ScanDependencies] Fix a memory leak in dependency graph
Fix a memory leak from https://github.com/swiftlang/swift/pull/75134.
2024-07-15 20:41:40 -07:00
swift-ci
deb4d86f60 Merge remote-tracking branch 'origin/main' into rebranch 2024-07-11 16:35:36 -07:00
Alexander Cyon
4a2942bb4e Fix typos in: cmake, tools, utils, unittests, validation-test
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
2024-07-12 02:34:00 +03:00
swift-ci
fffd12b39b Merge remote-tracking branch 'origin/main' into rebranch 2024-07-11 09:16:06 -07:00