#include "llvm/Support/WithColor.h"
#include "DebugOptions.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ManagedStatic.h"
usingnamespacellvm;
cl::OptionCategory &llvm::getColorCategory() { … }
namespace {
struct CreateUseColor { … };
}
static ManagedStatic<cl::opt<cl::boolOrDefault>, CreateUseColor> UseColor;
void llvm::initWithColorOptions() { … }
static bool DefaultAutoDetectFunction(const raw_ostream &OS) { … }
WithColor::AutoDetectFunctionType WithColor::AutoDetectFunction = …;
WithColor::WithColor(raw_ostream &OS, HighlightColor Color, ColorMode Mode)
: … { … }
raw_ostream &WithColor::error() { … }
raw_ostream &WithColor::warning() { … }
raw_ostream &WithColor::note() { … }
raw_ostream &WithColor::remark() { … }
raw_ostream &WithColor::error(raw_ostream &OS, StringRef Prefix,
bool DisableColors) { … }
raw_ostream &WithColor::warning(raw_ostream &OS, StringRef Prefix,
bool DisableColors) { … }
raw_ostream &WithColor::note(raw_ostream &OS, StringRef Prefix,
bool DisableColors) { … }
raw_ostream &WithColor::remark(raw_ostream &OS, StringRef Prefix,
bool DisableColors) { … }
bool WithColor::colorsEnabled() { … }
WithColor &WithColor::changeColor(raw_ostream::Colors Color, bool Bold,
bool BG) { … }
WithColor &WithColor::resetColor() { … }
WithColor::~WithColor() { … }
void WithColor::defaultErrorHandler(Error Err) { … }
void WithColor::defaultWarningHandler(Error Warning) { … }
WithColor::AutoDetectFunctionType WithColor::defaultAutoDetectFunction() { … }
void WithColor::setAutoDetectFunction(
AutoDetectFunctionType NewAutoDetectFunction) { … }