diff options
| author | 2017-01-14 19:55:43 +0000 | |
|---|---|---|
| committer | 2017-01-14 19:55:43 +0000 | |
| commit | bd3306aecb3a15e8967143b8cdbbccf2b1b19b74 (patch) | |
| tree | 309a8132b44564b9e634c0da6815187ce8eab27c /gnu/llvm/tools/llvm-cov/CoverageViewOptions.h | |
| parent | killp -a should not kill the window if only one pane. (diff) | |
| download | wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.tar.xz wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.zip | |
Import LLVM 3.9.1 including clang and lld.
Diffstat (limited to 'gnu/llvm/tools/llvm-cov/CoverageViewOptions.h')
| -rw-r--r-- | gnu/llvm/tools/llvm-cov/CoverageViewOptions.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gnu/llvm/tools/llvm-cov/CoverageViewOptions.h b/gnu/llvm/tools/llvm-cov/CoverageViewOptions.h index 1208fad7917..350c264a287 100644 --- a/gnu/llvm/tools/llvm-cov/CoverageViewOptions.h +++ b/gnu/llvm/tools/llvm-cov/CoverageViewOptions.h @@ -11,11 +11,17 @@ #define LLVM_COV_COVERAGEVIEWOPTIONS_H #include "RenderingSupport.h" +#include <vector> namespace llvm { /// \brief The options for displaying the code coverage information. struct CoverageViewOptions { + enum class OutputFormat { + Text, + HTML + }; + bool Debug; bool Colors; bool ShowLineNumbers; @@ -25,12 +31,21 @@ struct CoverageViewOptions { bool ShowExpandedRegions; bool ShowFunctionInstantiations; bool ShowFullFilenames; + OutputFormat Format; + std::string ShowOutputDirectory; + std::vector<std::string> DemanglerOpts; /// \brief Change the output's stream color if the colors are enabled. ColoredRawOstream colored_ostream(raw_ostream &OS, raw_ostream::Colors Color) const { return llvm::colored_ostream(OS, Color, Colors); } + + /// \brief Check if an output directory has been specified. + bool hasOutputDirectory() const { return !ShowOutputDirectory.empty(); } + + /// \brief Check if a demangler has been specified. + bool hasDemangler() const { return !DemanglerOpts.empty(); } }; } |
