Skip to content
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

Merged
merged 5 commits into from
Sep 19, 2019

Conversation

indragiek
Copy link
Contributor

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.

@keith keith requested a review from kastiglione September 19, 2019 21:14
@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

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

😂

Copy link
Contributor

@kastiglione kastiglione Sep 19, 2019

Choose a reason for hiding this comment

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

revelevn't – obviously

Copy link
Contributor

@kastiglione kastiglione left a 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.

@kastiglione
Copy link
Contributor

I guess I can commit the suggestions myself…

@kastiglione
Copy link
Contributor

Scratch that, I don't have permission to commit the suggestions.

Copy link
Contributor

@kastiglione kastiglione left a comment

Choose a reason for hiding this comment

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

Thanks!

@kastiglione kastiglione merged commit 715b7d2 into MobileNativeFoundation:master Sep 19, 2019
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