CoverageViewOptions.h revision 281049
1//===- 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;
27
28  /// \brief Change the output's stream color if the colors are enabled.
29  ColoredRawOstream colored_ostream(raw_ostream &OS,
30                                    raw_ostream::Colors Color) const {
31    return llvm::colored_ostream(OS, Color, Colors);
32  }
33};
34}
35
36#endif // LLVM_COV_COVERAGEVIEWOPTIONS_H
37