swift-ci
8f88e3d522
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-19 15:44:32 -08:00
Artem Chikin
a59db26a55
[Dependency Scanner] Rename 'GlobalModuleDependenciesCache' -> 'SwiftDependencyScanningService'
2022-12-19 11:08:50 -08:00
Valeriy Van
5878082674
Remove one of two identical cases in switch
2022-12-18 11:59:29 +02:00
swift-ci
0c21127b11
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-15 10:34:28 -08:00
Artem Chikin
3db767843e
[Dependency Scanning] Record whether discovered binary Swift modules are frameworks
...
Part of rdar://102824777
2022-12-13 10:44:37 -08:00
swift-ci
446f63fdc1
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-13 07:53:58 -08:00
Alex Hoppen
fe2ae72ad2
[IDE] Rename CodeCompletion to IDEInspection in cases where the code path no longer exclusively applies to code completion
...
The code completio infrastructure is also being used for cursor info now, so it should no longer be called code completion.
rdar://103251187
2022-12-13 11:41:05 +01:00
swift-ci
80c5a0e472
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-12 03:54:02 -08:00
Alex Hoppen
d9382b1bdb
Merge pull request #62362 from ahoppen/ahoppen/completion-like-cursor-info
...
[IDE] Implement completion-like cursor info for ValueDecls
2022-12-12 12:40:40 +01:00
swift-ci
fcdbbfe6d8
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-09 16:23:24 -08:00
Rintaro Ishizaki
6cd1302b07
Merge pull request #62473 from rintaro/cmake-gyb-depends
...
[CMake] Don't add unnecessary gyb support .py files
2022-12-09 15:55:20 -08:00
swift-ci
fe8e34d910
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-09 15:53:08 -08:00
QuietMisdreavus
8d548efbb9
install a list of symbols generated by the PrintAsClang header ( #59072 )
...
rdar://93504690
2022-12-09 16:38:02 -07:00
Rintaro Ishizaki
d05f45b7f0
[CMake] Don't add unnecessary gyb support .py files
...
'add_gyb_target' can accept 'DEPENDS'. Utilize it.
2022-12-08 14:49:08 -08:00
Alex Hoppen
a8dd6819b5
[IDE] Implement completion-like cursor info for ValueDecls
...
This brings up the ability to compute cursor info results using the completion-like type checking paradigm, which an reuse ASTContexts and doesn’t need to type check the entire file.
For now, the new implementation only supports cursor info on `ValueDecl`s (not on references) because they were easiest to implement. More cursor info kinds are coming soon.
At the moment, we only run the new implementation in a verification mode: It is only invoked in assert toolchains and when run, we check that the results are equivalent to the old implementation. Once more cursor info kinds are implemented and if the SourceKit stress tester doesn’t find any verification issues, we can enable the new implementation, falling back to the old implementation if the new one didn’t produce any results.
2022-12-08 14:39:14 +01:00
swift-ci
d484655d3d
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-07 14:53:22 -08:00
Rintaro Ishizaki
31b1820322
Merge pull request #62425 from rintaro/sourcekit-macroexpand-rdar102739026
...
[SourceKit/Refactoring] Macro expansion
2022-12-07 14:48:35 -08:00
Rintaro Ishizaki
9f137074af
[SourceKit/Refactoring] Macro expansion
...
Add refactoring "Expand Macro" that expands macro expressions.
rdar://102739026
2022-12-06 16:20:07 -08:00
swift-ci
663df4a9e2
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-06 15:53:28 -08:00
Rintaro Ishizaki
a28b92e7ff
Merge pull request #62308 from rintaro/sourcekitd-rdar102765542
...
[SourceKit] Don't link 'sourcekitd' to service related code
2022-12-06 15:41:30 -08:00
swift-ci
e0abefd949
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-06 09:34:41 -08:00
Ben Barham
5b9aef91f8
Merge pull request #62416 from bnbarham/fix-sourcekit-rpath
...
[SourceKit] Add required rpath back to sourcekitd RPATH_LIST
2022-12-06 09:19:32 -08:00
swift-ci
40bb6d650d
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-05 21:53:52 -08:00
Doug Gregor
1b8b706dac
Merge pull request #62405 from DougGregor/macro-diagnostics
2022-12-05 21:37:27 -08:00
Ben Barham
c8e092d078
[SourceKit] Add required rpath back to sourcekitd RPATH_LIST
...
This was modified to `.../swift/host` in
b338472a2b , but the SourceKit libraries
are not under `swift/host`.
Resolves rdar://103006159.
2022-12-05 20:24:49 -08:00
Doug Gregor
f0fc1c51bb
Remove compiler plugin support library
...
The functionality of the compiler plugin support library has been
subsumed into parts of the compiler. Remove the functionality and its
last test.
2022-12-05 12:54:36 -08:00
swift-ci
9638cd3de8
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-02 12:37:21 -08:00
Adrian Prantl
6d84dffaff
Merge pull request #62345 from adrian-prantl/validate-search-paths
...
Expose Swift search paths in validateSerializedAST
2022-12-02 12:21:00 -08:00
swift-ci
4eaff05e0f
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-02 01:57:21 -08:00
Alex Hoppen
8e857d55c3
Merge pull request #62292 from ahoppen/ahoppen/solver-based-cursor-info-prep
...
[SourceKit] Preparation for solver-based cursor info
2022-12-02 10:52:30 +01:00
swift-ci
21b2cf9c50
Merge remote-tracking branch 'origin/main' into rebranch
2022-12-01 20:14:31 -08:00
Adrian Prantl
a5e1786a99
Expose Swift search paths in validateSerializedAST
...
This is for the benefit of LLDB, which currently does an expensive import of all
modules to get to the same information.
rdar://40097459
2022-12-01 13:14:08 -08:00
Doug Gregor
1e93fb34f8
[CMake] Add rpath for the installed location of lib_InternalSwiftScan.
2022-12-01 13:03:22 -08:00
Doug Gregor
4bacf6dfc2
Make sure that the _InternalSwiftScan library can find host dylibs
2022-12-01 09:32:55 -08:00
Alex Hoppen
9f6bc90d6d
[SourceKit] Accept a file system in SwiftASTManager::getMemoryBuffer
2022-12-01 12:11:39 +01:00
Alex Hoppen
04ff291ae0
[SourceKit] Allow executing a completion-like operation without inserting a code completion token into the buffer
...
We will use this for solver-based cursor info, which doesn’t use code completion tokens.
2022-12-01 12:11:39 +01:00
Alex Hoppen
1485fe554f
[SourceKit] Add print and dump methods for cursor info results
...
We will be using the string serialized results to verify that solver-based cursor info results match the old implementation. This is necessary because cursor info results on their own contain stack references that cannot be stored.
2022-12-01 12:11:39 +01:00
Alex Hoppen
54360ad0fb
[SourceKit] Remove unused MainModule param from cursor info results
2022-12-01 12:11:39 +01:00
Alex Hoppen
652686034c
[IDE] Split ResolvedCursorInfo into subclasses
...
This way, each kind of `ResolvedCursorInfo` can define its own set of properties and it’s obvious which properties are used for which kind. Also switch to getters and setters because that makes it easier to search for usages of properties by looking at the call hierarchy of the getter / setter.
2022-12-01 12:11:39 +01:00
Doug Gregor
b338472a2b
Start building libswift_CompilerPluginSupport into lib/swift/host.
2022-11-30 13:54:03 -08:00
Doug Gregor
20013181e1
[CMake] Link to swift-syntax libriares from lib/swift/host.
2022-11-30 13:54:03 -08:00
Rintaro Ishizaki
0a791e8827
Don't link 'sourcekitd' to service related code
...
Separate 'sourcekitd/lib/API/Requests.cpp' to a library
'sourcekitdService' so the XPC client libary (i.e.
sourcektid.framework/sourcekid) doesn't include unnecessary code.
rdar://102765542
2022-11-30 09:06:34 -08:00
swift-ci
1acf8b039b
Merge remote-tracking branch 'origin/main' into rebranch
2022-11-29 10:14:02 -08:00
Doug Gregor
af6b30a195
[Code completion] Add code completion support for macro expansions.
2022-11-28 18:33:10 -08:00
swift-ci
713223eb4c
Merge remote-tracking branch 'origin/main' into rebranch
2022-11-28 18:14:43 -08:00
Xi Ge
5987654b3a
Merge branch 'main' into allowable-serialization
2022-11-28 09:36:04 -08:00
Xi Ge
67bbab7e02
serialization: encode allowable client names in binary module format
2022-11-25 18:43:40 -08:00
Erik Eckstein
ab1b343dad
use new llvm::Optional API
...
`getValue` -> `value`
`getValueOr` -> `value_or`
`hasValue` -> `has_value`
`map` -> `transform`
The old API will be deprecated in the rebranch.
To avoid merge conflicts, use the new API already in the main branch.
rdar://102362022
2022-11-21 19:44:24 +01:00
Rintaro Ishizaki
d458c8b74a
Merge remote-tracking branch 'origin/main' into rebranch
...
Conflicts:
include/swift/Sema/ConstraintSystem.h
include/swift/Syntax/AbsoluteRawSyntax.h
include/swift/Syntax/Syntax.h
include/swift/Syntax/SyntaxData.h
lib/DependencyScan/ModuleDependencyCacheSerialization.cpp
lib/Syntax/SyntaxFactory.cpp.gyb
lib/Syntax/SyntaxNodes.cpp.gyb
tools/SourceKit/lib/SwiftLang/SwiftEditor.cpp
tools/swift-syntax-test/swift-syntax-test.cpp
2022-11-18 09:37:38 -08:00
Alexis Laferrière
888fe84013
Merge pull request #62073 from xymus/module-alias-disambiguate-more
...
[ModuleInterface] AliasModuleNames workaround support for indirect dependencies and missing imports
2022-11-17 10:33:56 -08:00