diff options
Diffstat (limited to 'gnu/llvm/tools/llvm-cov/CoverageViewOptions.h')
| -rw-r--r-- | gnu/llvm/tools/llvm-cov/CoverageViewOptions.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gnu/llvm/tools/llvm-cov/CoverageViewOptions.h b/gnu/llvm/tools/llvm-cov/CoverageViewOptions.h index 17614c4e9ba..20085a957bb 100644 --- a/gnu/llvm/tools/llvm-cov/CoverageViewOptions.h +++ b/gnu/llvm/tools/llvm-cov/CoverageViewOptions.h @@ -10,12 +10,13 @@ #ifndef LLVM_COV_COVERAGEVIEWOPTIONS_H #define LLVM_COV_COVERAGEVIEWOPTIONS_H +#include "llvm/Config/llvm-config.h" #include "RenderingSupport.h" #include <vector> namespace llvm { -/// \brief The options for displaying the code coverage information. +/// The options for displaying the code coverage information. struct CoverageViewOptions { enum class OutputFormat { Text, @@ -39,26 +40,27 @@ struct CoverageViewOptions { uint32_t TabSize; std::string ProjectTitle; std::string CreatedTimeStr; + unsigned NumThreads; - /// \brief Change the output's stream color if the colors are enabled. + /// 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. + /// Check if an output directory has been specified. bool hasOutputDirectory() const { return !ShowOutputDirectory.empty(); } - /// \brief Check if a demangler has been specified. + /// Check if a demangler has been specified. bool hasDemangler() const { return !DemanglerOpts.empty(); } - /// \brief Check if a project title has been specified. + /// Check if a project title has been specified. bool hasProjectTitle() const { return !ProjectTitle.empty(); } - /// \brief Check if the created time of the profile data file is available. + /// Check if the created time of the profile data file is available. bool hasCreatedTime() const { return !CreatedTimeStr.empty(); } - /// \brief Get the LLVM version string. + /// Get the LLVM version string. std::string getLLVMVersionString() const { std::string VersionString = "Generated by llvm-cov -- llvm version "; VersionString += LLVM_VERSION_STRING; |
