clang 23.0.0git
UnsafeBufferUsage.cpp File Reference

Go to the source code of this file.

Classes

struct  UnsafeBufferUsageJSONFormatInfo

Typedefs

using Array = llvm::json::Array
using Object = llvm::json::Object

Functions

static Object serialize (const EntitySummary &S, JSONFormat::EntityIdToJSONFn Fn)
static llvm::Expected< std::unique_ptr< EntitySummary > > deserializeImpl (const Object &Data, JSONFormat::EntityIdFromJSONFn Fn)
static llvm::Expected< std::unique_ptr< EntitySummary > > deserialize (const Object &Data, EntityIdTable &, JSONFormat::EntityIdFromJSONFn Fn)
static llvm::Registry< JSONFormat::FormatInfo >::Add< UnsafeBufferUsageJSONFormatInfoRegisterUnsafeBufferUsageJSONFormatInfo (UnsafeBufferUsageEntitySummary::Name, "JSON Format info for UnsafeBufferUsageEntitySummary")

Variables

static constexpr llvm::StringLiteral SummarySerializationKey = "UnsafeBuffers"
volatile int UnsafeBufferUsageSSAFJSONFormatAnchorSource = 0

Typedef Documentation

◆ Array

◆ Object

using Object = llvm::json::Object

Definition at line 20 of file UnsafeBufferUsage.cpp.

Function Documentation

◆ deserialize()

llvm::Expected< std::unique_ptr< EntitySummary > > deserialize ( const Object & Data,
EntityIdTable & ,
JSONFormat::EntityIdFromJSONFn Fn )
static

◆ deserializeImpl()

llvm::Expected< std::unique_ptr< EntitySummary > > deserializeImpl ( const Object & Data,
JSONFormat::EntityIdFromJSONFn Fn )
static

◆ RegisterUnsafeBufferUsageJSONFormatInfo()

llvm::Registry< JSONFormat::FormatInfo >::Add< UnsafeBufferUsageJSONFormatInfo > RegisterUnsafeBufferUsageJSONFormatInfo ( UnsafeBufferUsageEntitySummary::Name ,
"JSON Format info for UnsafeBufferUsageEntitySummary"  )
static

◆ serialize()

Variable Documentation

◆ SummarySerializationKey

llvm::StringLiteral SummarySerializationKey = "UnsafeBuffers"
staticconstexpr

Definition at line 22 of file UnsafeBufferUsage.cpp.

Referenced by deserializeImpl(), and serialize().

◆ UnsafeBufferUsageSSAFJSONFormatAnchorSource

volatile int UnsafeBufferUsageSSAFJSONFormatAnchorSource = 0

Definition at line 101 of file UnsafeBufferUsage.cpp.