#include "SourceCoverageView.h"
#include "SourceCoverageViewHTML.h"
#include "SourceCoverageViewText.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/LineIterator.h"
#include "llvm/Support/Path.h"
usingnamespacellvm;
void CoveragePrinter::StreamDestructor::operator()(raw_ostream *OS) const { … }
std::string CoveragePrinter::getOutputPath(StringRef Path, StringRef Extension,
bool InToplevel,
bool Relative) const { … }
Expected<CoveragePrinter::OwnedStream>
CoveragePrinter::createOutputStream(StringRef Path, StringRef Extension,
bool InToplevel) const { … }
std::unique_ptr<CoveragePrinter>
CoveragePrinter::create(const CoverageViewOptions &Opts) { … }
unsigned SourceCoverageView::getFirstUncoveredLineNo() { … }
std::string SourceCoverageView::formatCount(uint64_t N) { … }
bool SourceCoverageView::shouldRenderRegionMarkers(
const LineCoverageStats &LCS) const { … }
bool SourceCoverageView::hasSubViews() const { … }
std::unique_ptr<SourceCoverageView>
SourceCoverageView::create(StringRef SourceName, const MemoryBuffer &File,
const CoverageViewOptions &Options,
CoverageData &&CoverageInfo) { … }
std::string SourceCoverageView::getSourceName() const { … }
void SourceCoverageView::addExpansion(
const CounterMappingRegion &Region,
std::unique_ptr<SourceCoverageView> View) { … }
void SourceCoverageView::addBranch(unsigned Line,
SmallVector<CountedRegion, 0> Regions) { … }
void SourceCoverageView::addMCDCRecord(unsigned Line,
SmallVector<MCDCRecord, 0> Records) { … }
void SourceCoverageView::addInstantiation(
StringRef FunctionName, unsigned Line,
std::unique_ptr<SourceCoverageView> View) { … }
void SourceCoverageView::print(raw_ostream &OS, bool WholeFile,
bool ShowSourceName, bool ShowTitle,
unsigned ViewDepth) { … }