Conversation
|
Thanks @CodaFi for the initial code that this was built off of. |
98aa144 to
ca6d481
Compare
|
|
||
| void *BridgedSourceLoc_advanced(void *loc, long len) { | ||
| SourceLoc l = ((SourceLoc *)&loc)->getAdvancedLoc(len); | ||
| return &l; // TODO: what? |
There was a problem hiding this comment.
SourceLoc is just a pointer in a trench coat; you can return its opaque value.
| } | ||
|
|
||
| BridgedIdentifier | ||
| SwiftASTContext_getIdentifier(void *ctx, const char *_Nullable str, long len) { |
There was a problem hiding this comment.
This whole file is mind-numbingly dull to write, but at least it's straightforward!
There was a problem hiding this comment.
Yeah. I wonder if we could write a python script that gets us 90% of the way there.
tools/driver/CMakeLists.txt
Outdated
There was a problem hiding this comment.
@DougGregor any idea how to get the link paths for this?
|
I updated this to use your changes from #60888. Much cleaner :) |
|
@swift-ci please test. |
|
@swift-ci please test. |
|
@swift-ci please smoke test. |
include/swift/AST/CASTBridging.h
Outdated
There was a problem hiding this comment.
This type really sucks :(
|
@swift-ci please smoke test |
|
@swift-ci please smoke test. |
|
@swift-ci please smoke test. |
|
@swift-ci please smoke test |
|
@swift-ci please smoke test |
|
@DougGregor pretty sure that resolved all the linker errors. I want to see the CI pass once, then I'll add the cmake option. |
|
Closing in favor of #61426 (review) |
Refs swiftlang/swift-syntax#703