Cppcheck
Enumerations | Functions | Variables
color.h File Reference
#include "config.h"
#include <ostream>
#include <string>

Go to the source code of this file.

Enumerations

enum class  Color {
  Reset = 0 , Bold = 1 , Dim = 2 , FgRed = 31 ,
  FgGreen = 32 , FgBlue = 34 , FgMagenta = 35 , FgDefault = 39
}
 

Functions

CPPCHECKLIB std::ostream & operator<< (std::ostream &os, Color c)
 
CPPCHECKLIB std::string toString (Color c)
 

Variables

CPPCHECKLIB bool gDisableColors
 

Enumeration Type Documentation

◆ Color

enum Color
strong
Enumerator
Reset 
Bold 
Dim 
FgRed 
FgGreen 
FgBlue 
FgMagenta 
FgDefault 

Definition at line 27 of file color.h.

Function Documentation

◆ operator<<()

CPPCHECKLIB std::ostream& operator<< ( std::ostream &  os,
Color  c 
)

Definition at line 43 of file color.cpp.

References gDisableColors, and isStreamATty().

◆ toString()

CPPCHECKLIB std::string toString ( Color  c)

Variable Documentation

◆ gDisableColors

CPPCHECKLIB bool gDisableColors
extern

Definition at line 28 of file color.cpp.

Referenced by operator<<().