Skip to content

Conversation

enum-class
Copy link
Owner

No description provided.

enum-class and others added 3 commits October 1, 2025 16:52
This change enables compatibility for measuring code coverage
with Clang versions 14 through 20 by supporting their
respective raw profile formats.

Signed-off-by: Saman Dehghan <samaan.dehghan@gmail.com>
@whentojump
Copy link
Collaborator

whentojump commented Oct 6, 2025

Let me list some to-do's

  • LLVM v14-trunk (inclusive) line coverage. One thing to figure out is are those char * changes really necessary?
  • Squash into one commit with proper message and Signed-off-by
  • Do a careful review of #ifdef's in this patch comparing to LLVM change history
  • (Potentially as a separate follow-up) LLVM v11-v13 (inclusive) line coverage.
  • (Potentially as a separate follow-up) LLVM v18-trunk (inclusive) MC/DC.
  • (Potentially as a separate follow-up) Documentation and misc.

#define LLVM_PROFILE_VERSION 8
#define LLVM_PROFILE_NUM_KINDS 2
#else
#error "Unsupported Clang version"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: maybe be more specific e.g. "LLVM coverage selected but an unsupported clang version is used" so that people don't wrongly think Clang <14 is not supported at all even w/o coverage.

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