[llvm] [clang] [coverage] skipping code coverage for 'if constexpr' and 'if consteval' (PR #78033)
Hana Dusíková via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 22 00:20:08 PST 2024
================
@@ -174,6 +179,10 @@ class SourceMappingRegion {
void setGap(bool Gap) { GapRegion = Gap; }
+ bool isSkipped() const { return SkippedRegion; }
----------------
hanickadot wrote:
SkippedRegions are also created by preprocessor for comments and whitespaces, then they are squeezed out of line with any coverage. This patch allows making them also while walking AST and fixes `LineCoverageStats` to properly show such lines as mapped.
https://github.com/llvm/llvm-project/pull/78033
More information about the cfe-commits
mailing list