colorprint.h
Go to the documentation of this file.
1 #ifndef BENCHMARK_COLORPRINT_H_
2 #define BENCHMARK_COLORPRINT_H_
3 
4 #include <cstdarg>
5 #include <iostream>
6 #include <string>
7 
8 namespace benchmark {
9 enum LogColor {
18 };
19 
20 std::string FormatString(const char* msg, va_list args);
21 std::string FormatString(const char* msg, ...);
22 
23 void ColorPrintf(std::ostream& out, LogColor color, const char* fmt,
24  va_list args);
25 void ColorPrintf(std::ostream& out, LogColor color, const char* fmt, ...);
26 
27 // Returns true if stdout appears to be a terminal that supports colored
28 // output, false otherwise.
29 bool IsColorTerminal();
30 
31 } // end namespace benchmark
32 
33 #endif // BENCHMARK_COLORPRINT_H_
benchmark::COLOR_CYAN
@ COLOR_CYAN
Definition: colorprint.h:16
benchmark::COLOR_DEFAULT
@ COLOR_DEFAULT
Definition: colorprint.h:10
benchmark
Definition: benchmark.h:241
benchmark::LogColor
LogColor
Definition: colorprint.h:9
color
GLuint color
Definition: glcorearb.h:3267
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
benchmark::FormatString
std::string FormatString(const char *msg, va_list args)
Definition: colorprint.cc:85
benchmark::ColorPrintf
void ColorPrintf(std::ostream &out, LogColor color, const char *fmt,...)
Definition: colorprint.cc:121
testing::internal::fmt
GTEST_API_ const char * fmt
Definition: gtest.h:1835
benchmark::COLOR_MAGENTA
@ COLOR_MAGENTA
Definition: colorprint.h:15
benchmark::COLOR_WHITE
@ COLOR_WHITE
Definition: colorprint.h:17
benchmark::IsColorTerminal
bool IsColorTerminal()
Definition: colorprint.cc:158
benchmark::COLOR_GREEN
@ COLOR_GREEN
Definition: colorprint.h:12
benchmark::COLOR_RED
@ COLOR_RED
Definition: colorprint.h:11
benchmark::COLOR_YELLOW
@ COLOR_YELLOW
Definition: colorprint.h:13
benchmark::COLOR_BLUE
@ COLOR_BLUE
Definition: colorprint.h:14
benchmarks.python.py_benchmark.args
args
Definition: py_benchmark.py:24


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:48