blob: 93bc09ca9d8ce5db400762bb8b8454d965e3e5bd [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 {
Vedant Kumar635c83c2016-06-28 00:15:54 +000019 enum class OutputFormat {
20 Text
21 };
22
Alex Lorenze82d89c2014-08-22 22:56:03 +000023 bool Debug;
24 bool Colors;
25 bool ShowLineNumbers;
26 bool ShowLineStats;
27 bool ShowRegionMarkers;
28 bool ShowLineStatsOrRegionMarkers;
29 bool ShowExpandedRegions;
30 bool ShowFunctionInstantiations;
Vedant Kumarc3c39e72015-09-14 23:26:36 +000031 bool ShowFullFilenames;
Vedant Kumar635c83c2016-06-28 00:15:54 +000032 OutputFormat ShowFormat;
Alex Lorenze82d89c2014-08-22 22:56:03 +000033
34 /// \brief Change the output's stream color if the colors are enabled.
35 ColoredRawOstream colored_ostream(raw_ostream &OS,
36 raw_ostream::Colors Color) const {
37 return llvm::colored_ostream(OS, Color, Colors);
38 }
39};
40}
41
42#endif // LLVM_COV_COVERAGEVIEWOPTIONS_H