@@ -69,13 +69,13 @@ struct InstantiationView {
69
69
70
70
// / A view that represents one or more branch regions on a given source line.
71
71
struct BranchView {
72
- std::vector <CountedRegion> Regions;
72
+ SmallVector <CountedRegion, 0 > Regions;
73
73
std::unique_ptr<SourceCoverageView> View;
74
74
unsigned Line;
75
75
76
- BranchView (unsigned Line, ArrayRef <CountedRegion> Regions,
76
+ BranchView (unsigned Line, SmallVector <CountedRegion, 0 > Regions,
77
77
std::unique_ptr<SourceCoverageView> View)
78
- : Regions(Regions), View(std::move(View)), Line(Line) {}
78
+ : Regions(std::move( Regions) ), View(std::move(View)), Line(Line) {}
79
79
80
80
unsigned getLine () const { return Line; }
81
81
@@ -86,13 +86,13 @@ struct BranchView {
86
86
87
87
// / A view that represents one or more MCDC regions on a given source line.
88
88
struct MCDCView {
89
- std::vector <MCDCRecord> Records;
89
+ SmallVector <MCDCRecord, 0 > Records;
90
90
std::unique_ptr<SourceCoverageView> View;
91
91
unsigned Line;
92
92
93
- MCDCView (unsigned Line, ArrayRef <MCDCRecord> Records,
93
+ MCDCView (unsigned Line, SmallVector <MCDCRecord, 0 > Records,
94
94
std::unique_ptr<SourceCoverageView> View)
95
- : Records(Records), View(std::move(View)), Line(Line) {}
95
+ : Records(std::move( Records) ), View(std::move(View)), Line(Line) {}
96
96
97
97
unsigned getLine () const { return Line; }
98
98
@@ -175,10 +175,10 @@ class SourceCoverageView {
175
175
std::vector<ExpansionView> ExpansionSubViews;
176
176
177
177
// / A container for all branches in the source on display.
178
- std::vector <BranchView> BranchSubViews;
178
+ SmallVector <BranchView, 0 > BranchSubViews;
179
179
180
180
// / A container for all MCDC records in the source on display.
181
- std::vector <MCDCView> MCDCSubViews;
181
+ SmallVector <MCDCView, 0 > MCDCSubViews;
182
182
183
183
// / A container for all instantiations (e.g template functions) in the source
184
184
// / on display.
@@ -304,11 +304,11 @@ class SourceCoverageView {
304
304
std::unique_ptr<SourceCoverageView> View);
305
305
306
306
// / Add a branch subview to this view.
307
- void addBranch (unsigned Line, ArrayRef <CountedRegion> Regions,
307
+ void addBranch (unsigned Line, SmallVector <CountedRegion, 0 > Regions,
308
308
std::unique_ptr<SourceCoverageView> View);
309
309
310
310
// / Add an MCDC subview to this view.
311
- void addMCDCRecord (unsigned Line, ArrayRef <MCDCRecord> Records,
311
+ void addMCDCRecord (unsigned Line, SmallVector <MCDCRecord, 0 > Records,
312
312
std::unique_ptr<SourceCoverageView> View);
313
313
314
314
// / Print the code coverage information for a specific portion of a
0 commit comments