mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
60087383d9
Summary: lcov tracefiles are used by various coverage reporting tools and build systems (e.g., Bazel). It is a simple text-based format to parse and more convenient to use than the JSON export format, which needs additional processing to map regions/segments back to line numbers. It's a little unfortunate that "text" format is now overloaded to refer specifically to JSON for export, but I wanted to avoid making any breaking changes to the UI of the llvm-cov tool at this time. Patch by Tony Allevato (@allevato). Reviewers: Dor1s, vsk Reviewed By: Dor1s, vsk Subscribers: mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D54266 llvm-svn: 346506
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
//===- CoverageExporterLcov.h - Code coverage lcov exporter ---------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This class implements a code coverage exporter for lcov trace file format.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_COV_COVERAGEEXPORTERLCOV_H
|
|
#define LLVM_COV_COVERAGEEXPORTERLCOV_H
|
|
|
|
#include "CoverageExporter.h"
|
|
|
|
namespace llvm {
|
|
|
|
class CoverageExporterLcov : public CoverageExporter {
|
|
public:
|
|
CoverageExporterLcov(const coverage::CoverageMapping &CoverageMapping,
|
|
const CoverageViewOptions &Options, raw_ostream &OS)
|
|
: CoverageExporter(CoverageMapping, Options, OS) {}
|
|
|
|
/// Render the CoverageMapping object.
|
|
void renderRoot(const CoverageFilters &IgnoreFilters) override;
|
|
|
|
/// Render the CoverageMapping object for specified source files.
|
|
void renderRoot(ArrayRef<std::string> SourceFiles) override;
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif // LLVM_COV_COVERAGEEXPORTERLCOV_H
|