1 //===- CoverageExporterLcov.h - Code coverage lcov exporter ---------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This class implements a code coverage exporter for lcov trace file format.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_COV_COVERAGEEXPORTERLCOV_H
15 #define LLVM_COV_COVERAGEEXPORTERLCOV_H
17 #include "CoverageExporter.h"
21 class CoverageExporterLcov
: public CoverageExporter
{
23 CoverageExporterLcov(const coverage::CoverageMapping
&CoverageMapping
,
24 const CoverageViewOptions
&Options
, raw_ostream
&OS
)
25 : CoverageExporter(CoverageMapping
, Options
, OS
) {}
27 /// Render the CoverageMapping object.
28 void renderRoot(const CoverageFilters
&IgnoreFilters
) override
;
30 /// Render the CoverageMapping object for specified source files.
31 void renderRoot(ArrayRef
<std::string
> SourceFiles
) override
;
34 } // end namespace llvm
36 #endif // LLVM_COV_COVERAGEEXPORTERLCOV_H