1 //===- CoverageExporterJson.h - Code coverage JSON 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 JSON format.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_COV_COVERAGEEXPORTERJSON_H
15 #define LLVM_COV_COVERAGEEXPORTERJSON_H
17 #include "CoverageExporter.h"
21 class CoverageExporterJson
: public CoverageExporter
{
23 CoverageExporterJson(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_COVERAGEEXPORTERJSON_H