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

Sort headers in the module maps generated by swift_clang_module_aspect, and rewrite generation to use a multi-line Args object as a file writer instead of building up an analysis time string. #596

Conversation

keith
Copy link
Member

@keith keith commented Apr 19, 2021

With this approach, each "arg" (or each entry in a list/depset of args) is treated as its own line in the output file; we use the format_each and map_each parameters to provide any additional text that should surround that value on the line.

More importantly, this adds support for expanding tree artifacts (directories) if one is provided in a compilation context.

PiperOrigin-RevId: 367221120
(cherry picked from commit 5f7af69)

@google-cla google-cla bot added the cla: yes label Apr 19, 2021
keith referenced this pull request Apr 19, 2021
…ct`, and rewrite generation to use a multi-line `Args` object as a file writer instead of building up an analysis time string.

With this approach, each "arg" (or each entry in a list/depset of args) is treated as its own line in the output file; we use the `format_each` and `map_each` parameters to provide any additional text that should surround that value on the line.

More importantly, this adds support for expanding tree artifacts (directories) if one is provided in a compilation context.

PiperOrigin-RevId: 367221120
@keith keith marked this pull request as ready for review April 19, 2021 22:10
@keith
Copy link
Member Author

keith commented Apr 19, 2021

ha seems like nested functions are a newer feature than what is currently released in bazel

@thii
Copy link
Member

thii commented Apr 22, 2021

Maybe it's worth requesting the change for that feature to be cherry-picked into 4.1, if it's not in there yet.

allevato and others added 2 commits May 3, 2021 18:02
…ct`, and rewrite generation to use a multi-line `Args` object as a file writer instead of building up an analysis time string.

With this approach, each "arg" (or each entry in a list/depset of args) is treated as its own line in the output file; we use the `format_each` and `map_each` parameters to provide any additional text that should surround that value on the line.

More importantly, this adds support for expanding tree artifacts (directories) if one is provided in a compilation context.

PiperOrigin-RevId: 367221120
(cherry picked from commit 5f7af69)
@keith keith force-pushed the ks/sort-headers-in-the-module-maps-generated-by-swift_clang_module_aspect-and-rewrite-generation-to-use-a-multi-line-args-object-as-a-file-writer-instead-of-building-up-an-analysis-time-string branch from b8f1c04 to ecb5148 Compare May 4, 2021 01:02
@google-cla
Copy link

google-cla bot commented May 4, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

1 similar comment
@google-cla
Copy link

google-cla bot commented May 4, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no and removed cla: yes labels May 4, 2021
@keith keith merged commit b1cc212 into master May 4, 2021
@keith keith deleted the ks/sort-headers-in-the-module-maps-generated-by-swift_clang_module_aspect-and-rewrite-generation-to-use-a-multi-line-args-object-as-a-file-writer-instead-of-building-up-an-analysis-time-string branch May 4, 2021 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants