-
Notifications
You must be signed in to change notification settings - Fork 22
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
Remap source/target paths for includes #35
Remap source/target paths for includes #35
Conversation
@@ -173,9 +173,12 @@ static IndexUnitWriter remapUnit(const std::unique_ptr<IndexUnitReader> &reader, | |||
}); | |||
|
|||
reader->foreachInclude([&](const IndexUnitReader::IncludeInfo &info) { | |||
// Note this isn't revelevnt to Swift. |
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.
😂
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.
revelevn't – obviously
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.
Sorry for not being more clear about the formatting of the logs. If you can accept the suggestions I'll merge.
I guess I can commit the suggestions myself… |
Scratch that, I don't have permission to commit the suggestions. |
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.
Thanks!
Apply the remappings to the source/target paths for each
#include
as well. This is relevant to C/C++/ObjC sources and not Swift.The goal of this change was to allow Xcode to correctly resolve
#include
statements from a remapped index that originated from Bazel. This change doesn't fully fix that but is part of the solution.