[llvm] [llvm-cov] Fix branch counts of template functions (#111743) (PR #113925)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 22 06:23:05 PST 2024


================
@@ -43,9 +43,26 @@
 #include "CoverageReport.h"
 
 using namespace llvm;
+using namespace coverage;
 
 namespace {
 
+struct NestedCountedRegion : public coverage::CountedRegion {
+  // Contains the path to default and expanded branches
+  // Size is 1 for default branches and greater 1 for expanded branches.
+  std::vector<LineColPair> NestedPath;
+  // Indicates whether this item should at rendering
----------------
stma247 wrote:

Ah, I didn't know that and updated all my added comments now.

https://github.com/llvm/llvm-project/pull/113925


More information about the llvm-commits mailing list