CoverageViewOptions.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef LLVM_COV_COVERAGEVIEWOPTIONS_H
  10. #define LLVM_COV_COVERAGEVIEWOPTIONS_H
  11. #include "RenderingSupport.h"
  12. namespace llvm {
  13. /// \brief The options for displaying the code coverage information.
  14. struct CoverageViewOptions {
  15. bool Debug;
  16. bool Colors;
  17. bool ShowLineNumbers;
  18. bool ShowLineStats;
  19. bool ShowRegionMarkers;
  20. bool ShowLineStatsOrRegionMarkers;
  21. bool ShowExpandedRegions;
  22. bool ShowFunctionInstantiations;
  23. /// \brief Change the output's stream color if the colors are enabled.
  24. ColoredRawOstream colored_ostream(raw_ostream &OS,
  25. raw_ostream::Colors Color) const {
  26. return llvm::colored_ostream(OS, Color, Colors);
  27. }
  28. };
  29. }
  30. #endif // LLVM_COV_COVERAGEVIEWOPTIONS_H