• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
15 namespace llvm {
16 
17 /// \brief The options for displaying the code coverage information.
18 struct 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   bool ShowFullFilenames;
28 
29   /// \brief Change the output's stream color if the colors are enabled.
colored_ostreamCoverageViewOptions30   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
38