Skip to content

Preparations for special names #8053

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

Closed
wants to merge 1 commit into from

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Mar 13, 2017

Special names will in the future represent names that don't have a surface language identifier like subscript.

For this, change the backing type of DeclName to a new type DeclBaseName that will later be able to represent special names.

ValueDecls may therefore no longer have an identifier name. Thus we move the getName method from ValueDecl to the subtypes that are guaranteed to have identifier names.

Since special names have not been introduced yet, TODOs are left where handling of these will most likely be necessary. Furthermore the SwiftLookupTable will needs to be changed to handle special names.

These TODOs will be addressed in PRs for subsequent commits of #6848. If it would make it easier to reason about the code, we can also do this together with the next commit, but that would make it one big (~1000 lines) PR instead of two small-ish ones (~500 lines)

@ahoppen ahoppen requested a review from jrose-apple March 13, 2017 20:40
@ahoppen
Copy link
Member Author

ahoppen commented Mar 13, 2017

Please test with following pull request:
apple/swift-lldb#165

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - dde2a9626281d27f0bc94d96169f1853803929e9
Test requested by - @ahoppen

@ahoppen
Copy link
Member Author

ahoppen commented Mar 14, 2017

Forgot to push the updated version of the LLDB changes, let's try Linux again.

Please test with following pull request:
apple/swift-lldb#165

@swift-ci Please test Linux platform

@ahoppen ahoppen force-pushed the preparation-declname branch from dde2a96 to 0ea37d3 Compare March 17, 2017 07:07
@ahoppen
Copy link
Member Author

ahoppen commented Mar 17, 2017

Resolved some merge conflicts.

@swift-ci Please smoke test

@ahoppen ahoppen force-pushed the preparation-declname branch from 0ea37d3 to dd7139e Compare March 25, 2017 11:01
@ahoppen
Copy link
Member Author

ahoppen commented Mar 25, 2017

Resolved some new merge conflicts

Please test with following pull request:
apple/swift-lldb#165

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Mar 29, 2017

@jrose-apple Just a friendly ping

@ahoppen ahoppen force-pushed the preparation-declname branch 2 times, most recently from 7601957 to 124bc5f Compare April 5, 2017 07:54
@ahoppen
Copy link
Member Author

ahoppen commented Apr 5, 2017

Resolved another merge conflict

Please test with following pull request:
apple/swift-lldb#165

@swift-ci Please smoke test

@ahoppen ahoppen force-pushed the preparation-declname branch from 124bc5f to a921083 Compare April 19, 2017 08:07
@ahoppen
Copy link
Member Author

ahoppen commented Apr 19, 2017

More merge conflicts resolved.

Please test with following pull request:
apple/swift-lldb#165

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Apr 20, 2017

Linux failure seemed unrelated, let's try again.

Please test with following pull request:
apple/swift-lldb#165

@swift-ci Please test Linux platform

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - a921083412693ab12db6c88238c7a1cc3bcccb8a
Test requested by - @ahoppen

@ahoppen ahoppen force-pushed the preparation-declname branch from a921083 to c5bb6b7 Compare April 20, 2017 06:18
@ahoppen
Copy link
Member Author

ahoppen commented Apr 20, 2017

Next merge conflict.

Please test with following pull request:
apple/swift-lldb#165

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Apr 20, 2017

@jrose-apple It would be great if you (or someone else) could review this so we can get it merged before the final Swift 4 rush starts

@ahoppen ahoppen force-pushed the preparation-declname branch from c5bb6b7 to bd1b12d Compare April 28, 2017 17:11
@ahoppen
Copy link
Member Author

ahoppen commented Apr 28, 2017

Resolved some merge conflicts once again.

Please test with following pull request:
apple/swift-lldb#165

@swift-ci Please smoke test

Special names will in the future represent names that don't have a
surface language identifier like subscript.

For this, change the backing type of DeclName to a new type DeclBaseName
that will later be able to represent special names.

ValueDecls may therefore no longer have an identifier name. Thus we move
the getName method from ValueDecl to the subtypes that are guaranteed
to have identifier names.

Since special names have not been introduced yet, TODOs are left where
handling of these will most likely be necessary. Furthermore the
SwiftLookupTable will needs to be changed to handle special names.
@ahoppen ahoppen force-pushed the preparation-declname branch from d7f59e3 to 161b30f Compare April 30, 2017 20:25
@ahoppen
Copy link
Member Author

ahoppen commented Apr 30, 2017

Once again a minor merge conflict

Please test with following pull request:
apple/swift-lldb#165

@swift-ci Please smoke test

@ahoppen ahoppen closed this May 31, 2017
@ahoppen ahoppen deleted the preparation-declname branch June 26, 2017 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants