Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 2, 2017

As per #10965 (comment), escape all keywords when printing DeclBaseNames for SIL dotted paths or the api-digester and not only "subscript" and "deinit".

@ahoppen ahoppen requested a review from jrose-apple August 2, 2017 07:34
@ahoppen
Copy link
Member Author

ahoppen commented Aug 2, 2017

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Aug 2, 2017

@swift-ci Please smoke test Linux platform

@jrose-apple
Copy link
Contributor

I'm not sure we can change the API digester, since we have existing digests with unescaped keywords inside Apple. We're just getting away with it with subscript and deinit because there are only maybe two APIs named subscript and none named deinit in the SDK. @nkcsgexi?

@jrose-apple jrose-apple requested a review from nkcsgexi August 2, 2017 15:54
@jrose-apple
Copy link
Contributor

(SIL part seems fine.)

@nkcsgexi
Copy link
Contributor

nkcsgexi commented Aug 2, 2017

I agree with Jordan here. For swift-api-digester, using names consistently is more important than precisely; also escaping keywords doesn't give the tool any benefit since users may never read them manually. So I prefer we preserve the existing behavior.

@ahoppen ahoppen force-pushed the sil-escape-keywords branch from 1927337 to db02b1b Compare August 5, 2017 13:22
@ahoppen
Copy link
Member Author

ahoppen commented Aug 5, 2017

I have removed the changes to swift-api-digester.

@ahoppen
Copy link
Member Author

ahoppen commented Aug 7, 2017

@swift-ci Please smoke test

@ahoppen ahoppen merged commit db56ddc into swiftlang:master Aug 8, 2017
@ahoppen ahoppen deleted the sil-escape-keywords branch August 22, 2018 15:51
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.

3 participants