LLVM 20.0.0git
Macros | Variables
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 "llvm/Support/Program.h"
#include <optional>
#include <stdlib.h>
#include "Unix/Process.inc"

Go to the source code of this file.

Macros

#define COLOR(FGBG, CODE, BOLD)   "\033[0;" BOLD FGBG CODE "m"
 
#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 73 of file Process.cpp.

◆ COLOR

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

Definition at line 71 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:73

Definition at line 99 of file Process.cpp.

◆ coreFilesPrevented

bool coreFilesPrevented = !LLVM_ENABLE_CRASH_DUMPS
static

Definition at line 107 of file Process.cpp.

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