diff options
author | dim <dim@FreeBSD.org> | 2015-04-03 19:43:39 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-04-03 19:43:39 +0000 |
commit | c660843b7a28be8c4eb316a4c38a9f3cc58ec3e2 (patch) | |
tree | 0be5baf3192b0a86bb58483d62b35e66b3a6feb7 /contrib/llvm/tools/llvm-cov/CoverageViewOptions.h | |
parent | e95804b81f9fa2cf9869afe23a2ad6efb7a750f8 (diff) | |
parent | ea50228cd2ebf54c0ec67624d82c47a11b807869 (diff) | |
download | FreeBSD-src-c660843b7a28be8c4eb316a4c38a9f3cc58ec3e2.zip FreeBSD-src-c660843b7a28be8c4eb316a4c38a9f3cc58ec3e2.tar.gz |
Add the llvm-cov and llvm-profdata tools, when WITH_CLANG_EXTRAS is
defined. These help with processing coverage and profile data.
Diffstat (limited to 'contrib/llvm/tools/llvm-cov/CoverageViewOptions.h')
-rw-r--r-- | contrib/llvm/tools/llvm-cov/CoverageViewOptions.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/contrib/llvm/tools/llvm-cov/CoverageViewOptions.h b/contrib/llvm/tools/llvm-cov/CoverageViewOptions.h new file mode 100644 index 0000000..94b55fe --- /dev/null +++ b/contrib/llvm/tools/llvm-cov/CoverageViewOptions.h @@ -0,0 +1,36 @@ +//===- CoverageViewOptions.h - Code coverage display options -------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_COV_COVERAGEVIEWOPTIONS_H +#define LLVM_COV_COVERAGEVIEWOPTIONS_H + +#include "RenderingSupport.h" + +namespace llvm { + +/// \brief The options for displaying the code coverage information. +struct CoverageViewOptions { + bool Debug; + bool Colors; + bool ShowLineNumbers; + bool ShowLineStats; + bool ShowRegionMarkers; + bool ShowLineStatsOrRegionMarkers; + bool ShowExpandedRegions; + bool ShowFunctionInstantiations; + + /// \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); + } +}; +} + +#endif // LLVM_COV_COVERAGEVIEWOPTIONS_H |