diff options
Diffstat (limited to 'contrib/llvm/tools/llvm-cov/CoverageViewOptions.h')
-rw-r--r-- | contrib/llvm/tools/llvm-cov/CoverageViewOptions.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/llvm/tools/llvm-cov/CoverageViewOptions.h b/contrib/llvm/tools/llvm-cov/CoverageViewOptions.h index 350c264..266b380 100644 --- a/contrib/llvm/tools/llvm-cov/CoverageViewOptions.h +++ b/contrib/llvm/tools/llvm-cov/CoverageViewOptions.h @@ -34,6 +34,9 @@ struct CoverageViewOptions { OutputFormat Format; std::string ShowOutputDirectory; std::vector<std::string> DemanglerOpts; + uint32_t TabSize; + std::string ProjectTitle; + std::string CreatedTimeStr; /// \brief Change the output's stream color if the colors are enabled. ColoredRawOstream colored_ostream(raw_ostream &OS, @@ -46,6 +49,19 @@ struct CoverageViewOptions { /// \brief Check if a demangler has been specified. bool hasDemangler() const { return !DemanglerOpts.empty(); } + + /// \brief 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. + bool hasCreatedTime() const { return !CreatedTimeStr.empty(); } + + /// \brief Get the LLVM version string. + std::string getLLVMVersionString() const { + std::string VersionString = "Generated by llvm-cov -- llvm version "; + VersionString += LLVM_VERSION_STRING; + return VersionString; + } }; } |