Skip to content

[index] Use a #pragma to apply module namespacing for exported ObjC header and match Swift namespaced USRs with the clang side #8972

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

Merged
merged 4 commits into from
Apr 25, 2017

Conversation

akyrtzi
Copy link
Contributor

@akyrtzi akyrtzi commented Apr 24, 2017

No description provided.

…eader and match Swift namespaced USRs with the clang side
@akyrtzi
Copy link
Contributor Author

akyrtzi commented Apr 24, 2017

@swift-ci smoke test

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Apr 24, 2017

@swift-ci smoke test

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Apr 24, 2017

@jrose-apple , could you review the PrintAsObjC.cpp part ?
@nathawes , please take a look at the rest.

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Apr 25, 2017

@swift-ci smoke test

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Apr 25, 2017

@swift-ci smoke test

@akyrtzi akyrtzi merged commit 9b9c84a into swiftlang:master Apr 25, 2017
@akyrtzi akyrtzi deleted the index-external-symbol-namespacing branch April 25, 2017 04:14
Copy link
Contributor

@jrose-apple jrose-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PrintAsObjC LGTM, other than one comment.

@@ -2682,8 +2701,15 @@ class ModuleWriter {
out <<
"#pragma clang diagnostic ignored \"-Wproperty-attribute-mismatch\"\n"
"#pragma clang diagnostic ignored \"-Wduplicate-method-arg\"\n"
"#if __has_warning(\"-Wpragma-clang-attribute\")\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't "pragma clang diagnostic ignored" already ignore unknown warnings?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, you get warning: unknown warning group

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, okay.

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