blob: 1208fad791766109ab7047022a5a4a61596e9d94 [file] [log] [blame]
Alex Lorenze82d89c2014-08-22 22:56:03 +00001//===- CoverageViewOptions.h - Code coverage display options -------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLVM_COV_COVERAGEVIEWOPTIONS_H
11#define LLVM_COV_COVERAGEVIEWOPTIONS_H
12
13#include "RenderingSupport.h"
14
15namespace llvm {
16
17/// \brief The options for displaying the code coverage information.
18struct CoverageViewOptions {
19 bool Debug;
20 bool Colors;
21 bool ShowLineNumbers;
22 bool ShowLineStats;
23 bool ShowRegionMarkers;
24 bool ShowLineStatsOrRegionMarkers;
25 bool ShowExpandedRegions;
26 bool ShowFunctionInstantiations;
Vedant Kumarc3c39e72015-09-14 23:26:36 +000027 bool ShowFullFilenames;
Alex Lorenze82d89c2014-08-22 22:56:03 +000028
29 /// \brief Change the output's stream color if the colors are enabled.
30 ColoredRawOstream colored_ostream(raw_ostream &OS,
31 raw_ostream::Colors Color) const {
32 return llvm::colored_ostream(OS, Color, Colors);
33 }
34};
35}
36
37#endif // LLVM_COV_COVERAGEVIEWOPTIONS_H