Merge "Add support for LINE_COVERAGE (1/2)" am: 08cc141860
Change-Id: Iaaaf0e8aef9775784a173e8fd022380833df38f5
This commit is contained in:
@@ -1028,8 +1028,12 @@ func (c *deviceConfig) DeviceKernelHeaderDirs() []string {
|
||||
return c.config.productVariables.DeviceKernelHeaders
|
||||
}
|
||||
|
||||
func (c *config) NativeLineCoverage() bool {
|
||||
return Bool(c.productVariables.NativeLineCoverage)
|
||||
}
|
||||
|
||||
func (c *deviceConfig) NativeCoverageEnabled() bool {
|
||||
return Bool(c.config.productVariables.Native_coverage)
|
||||
return Bool(c.config.productVariables.Native_coverage) || Bool(c.config.productVariables.NativeLineCoverage)
|
||||
}
|
||||
|
||||
func (c *deviceConfig) ClangCoverageEnabled() bool {
|
||||
|
@@ -252,6 +252,7 @@ type productVariables struct {
|
||||
ClangTidy *bool `json:",omitempty"`
|
||||
TidyChecks *string `json:",omitempty"`
|
||||
|
||||
NativeLineCoverage *bool `json:",omitempty"`
|
||||
Native_coverage *bool `json:",omitempty"`
|
||||
ClangCoverage *bool `json:",omitempty"`
|
||||
CoveragePaths []string `json:",omitempty"`
|
||||
|
Reference in New Issue
Block a user