Files
llvm-project/clang/lib/CodeGen/ModuleBuilder.cpp
Paweł Bylica e3ebeeca95 [Coverage] Skip coverage mapping for consteval member functions (#190870)
Static consteval member functions were incorrectly getting a coverage
mapping with zero count, making them appear as uncovered lines. Free
consteval functions were already correctly excluded because
EmitTopLevelDecl returns early for immediate functions.

The fix adds an isImmediateFunction() check in
HandleInlineMemberFunction before adding deferred coverage mappings,
consistent with the top-level check.

Fixes #164448.
2026-04-23 12:16:25 +02:00

15 KiB