clang 23.0.0git
CallGraphJSONFormat.cpp File Reference

Go to the source code of this file.

Functions

static json::Object serialize (const EntitySummary &Summary, JSONFormat::EntityIdToJSONFn ToJSON)
static Expected< std::unique_ptr< EntitySummary > > deserialize (const json::Object &Obj, EntityIdTable &IdTable, JSONFormat::EntityIdFromJSONFn FromJSON)
static llvm::Registry< JSONFormat::FormatInfo >::Add< CallGraphJSONFormatInfo > RegisterFormatInfo (CallGraphSummary::Name, "JSON Format info for CallGraph summary")

Variables

static const char * FailedToReadObjectAtField
static const char * FailedToReadObjectAtIndex
static const char * ReadingFromField = "reading {0} from field '{1}'"
static const char * ReadingFromIndex = "reading {0} from index '{1}'"
volatile int CallGraphJSONFormatAnchorSource = 0

Function Documentation

◆ deserialize()

◆ RegisterFormatInfo()

llvm::Registry< JSONFormat::FormatInfo >::Add< CallGraphJSONFormatInfo > RegisterFormatInfo ( CallGraphSummary::Name ,
"JSON Format info for CallGraph summary"  )
static

◆ serialize()

json::Object serialize ( const EntitySummary & Summary,
JSONFormat::EntityIdToJSONFn ToJSON )
static

Definition at line 28 of file CallGraphJSONFormat.cpp.

Variable Documentation

◆ CallGraphJSONFormatAnchorSource

volatile int CallGraphJSONFormatAnchorSource = 0

Definition at line 174 of file CallGraphJSONFormat.cpp.

◆ FailedToReadObjectAtField

const char* FailedToReadObjectAtField
static
Initial value:
=
"failed to read {0} from field '{1}': expected JSON {2}"

Definition at line 21 of file CallGraphJSONFormat.cpp.

Referenced by deserialize().

◆ FailedToReadObjectAtIndex

const char* FailedToReadObjectAtIndex
static
Initial value:
=
"failed to read {0} from index '{1}': expected JSON {2}"

Definition at line 23 of file CallGraphJSONFormat.cpp.

Referenced by deserialize().

◆ ReadingFromField

const char* ReadingFromField = "reading {0} from field '{1}'"
static

Definition at line 25 of file CallGraphJSONFormat.cpp.

Referenced by deserialize().

◆ ReadingFromIndex

const char* ReadingFromIndex = "reading {0} from index '{1}'"
static

Definition at line 26 of file CallGraphJSONFormat.cpp.

Referenced by deserialize().