Skip to content

[llvm-cov] Add support for -skip-functions to lcov #732

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 1 commit into from
Feb 7, 2020

Conversation

keith
Copy link
Member

@keith keith commented Feb 5, 2020

Summary:
This flag was added for the json format to exclude functions from the
output. This mirrors that behavior in lcov (where it was previously
accepted but ignored). This makes the output file smaller which can be
beneficial depending on how you consume it, especially if you don't use
this data anyways.

Patch by Keith Smiley (@keith).

Reviewers: kastiglione, Dor1s, vsk, allevato

Reviewed By: Dor1s, allevato

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73160

(cherry picked from commit 8ded83f)

@keith
Copy link
Member Author

keith commented Feb 5, 2020

@vedantk another llvm-cov cherry pick for your consideration!

@vedantk
Copy link

vedantk commented Feb 6, 2020

This is a low-risk bugfix and would be nice to have, but I'm not sure this is the right branch. Why not https://github.com/apple/llvm-project/tree/apple/stable/20200108?

At this point the 20190619 branch is fairly locked down, and PRs for it need special approval.

@keith
Copy link
Member Author

keith commented Feb 6, 2020

I don't understand the branching scheme here and I haven't been able to find a doc about them? I'll swap to that branch tho

Summary:
This flag was added for the json format to exclude functions from the
output. This mirrors that behavior in lcov (where it was previously
accepted but ignored). This makes the output file smaller which can be
beneficial depending on how you consume it, especially if you don't use
this data anyways.

Patch by Keith Smiley (@keith).

Reviewers: kastiglione, Dor1s, vsk, allevato

Reviewed By: Dor1s, allevato

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73160

(cherry picked from commit 8ded83f)
@keith keith changed the base branch from apple/stable/20190619 to apple/stable/20200108 February 6, 2020 22:28
@keith keith force-pushed the ks/llvm-cov-cherry branch from 37a4129 to 852b4f2 Compare February 6, 2020 22:28
@keith
Copy link
Member Author

keith commented Feb 6, 2020

Swapped!

@vedantk
Copy link

vedantk commented Feb 7, 2020

@swift-ci test macOS

@vedantk vedantk merged commit 38d781d into swiftlang:apple/stable/20200108 Feb 7, 2020
@keith keith deleted the ks/llvm-cov-cherry branch February 7, 2020 21:46
@keith
Copy link
Member Author

keith commented Feb 7, 2020

Thanks!

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