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