LLVM 22.0.0git
Process.cpp File Reference
#include "llvm/Support/Process.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Config/config.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/CrashRecoveryContext.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include <optional>
#include <stdlib.h>
#include "Unix/Process.inc"

Go to the source code of this file.

Macros

#define COLOR(FGBG, CODE, BOLD)
#define ALLCOLORS(FGBG, BRIGHT, BOLD)

Variables

static const char colorcodes [2][2][16][11]
static bool coreFilesPrevented = !LLVM_ENABLE_CRASH_DUMPS

Macro Definition Documentation

◆ ALLCOLORS

#define ALLCOLORS ( FGBG,
BRIGHT,
BOLD )
Value:
{ \
COLOR(FGBG, "0", BOLD), \
COLOR(FGBG, "1", BOLD), \
COLOR(FGBG, "2", BOLD), \
COLOR(FGBG, "3", BOLD), \
COLOR(FGBG, "4", BOLD), \
COLOR(FGBG, "5", BOLD), \
COLOR(FGBG, "6", BOLD), \
COLOR(FGBG, "7", BOLD), \
COLOR(BRIGHT, "0", BOLD), \
COLOR(BRIGHT, "1", BOLD), \
COLOR(BRIGHT, "2", BOLD), \
COLOR(BRIGHT, "3", BOLD), \
COLOR(BRIGHT, "4", BOLD), \
COLOR(BRIGHT, "5", BOLD), \
COLOR(BRIGHT, "6", BOLD), \
COLOR(BRIGHT, "7", BOLD), \
}

Definition at line 72 of file Process.cpp.

◆ COLOR

#define COLOR ( FGBG,
CODE,
BOLD )
Value:
"\033[0;" BOLD FGBG CODE "m"

Definition at line 70 of file Process.cpp.

Variable Documentation

◆ colorcodes

const char colorcodes[2][2][16][11]
static
Initial value:
= {
{ ALLCOLORS("3", "9", ""), ALLCOLORS("3", "9", "1;"),},
{ ALLCOLORS("4", "10", ""), ALLCOLORS("4", "10", "1;")}
}
#define ALLCOLORS(FGBG, BRIGHT, BOLD)
Definition Process.cpp:72

Definition at line 98 of file Process.cpp.

◆ coreFilesPrevented

bool coreFilesPrevented = !LLVM_ENABLE_CRASH_DUMPS
static

Definition at line 106 of file Process.cpp.

Referenced by llvm::sys::Process::AreCoreFilesPrevented().