-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[ASTGen] Fix expanded macro buffer parsing and AST generation #79513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
swiftlang/swift-syntax#2968 |
16c9650
to
c302e79
Compare
swiftlang/swift-syntax#2968 |
1 similar comment
swiftlang/swift-syntax#2968 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
include/swift/AST/ASTBridging.h
Outdated
@@ -1511,6 +1511,12 @@ enum ENUM_EXTENSIBILITY_ATTR(closed) BridgedOperatorFixity { | |||
BridgedOperatorFixityPostfix, | |||
}; | |||
|
|||
SWIFT_NAME("BridgedMissingDecl.createParsed(_:declContext:loc:)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling this createParsed
doesn't feel right since the resulting decl is implicit, maybe just create
, or createImplicit
?
Parse expanded buffer into dedicated syntax. Also rename `BridgedGeneratedSourceFileKindAttribute` to `BridgedGeneratedSourceFileKindAttributeFromClang` because C++ decl (i.e. `GeneratedSourceInfo::Kind::AttributeFromClang`) was renamed a while ago.
c302e79
to
aae50a8
Compare
swiftlang/swift-syntax#2968 |
Parse macro expanded buffers into the dedicated syntax.
Also rename
BridgedGeneratedSourceFileKindAttribute
toBridgedGeneratedSourceFileKindAttributeFromClang
because C++ decl (i.e.GeneratedSourceInfo::Kind::AttributeFromClang
) was renamed a while ago.