MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / diagnostic

Method diagnostic

source/binary.cpp:153–156  ·  view source on GitHub ↗

Returns a diagnostic stream object initialized with current position in the input stream, and for the given error code. Any data written to the returned object will be propagated to the current parse's diagnostic object.

Source from the content-addressed store, hash-verified

151 // returned object will be propagated to the current parse's diagnostic
152 // object.
153 spvtools::DiagnosticStream diagnostic(spv_result_t error) {
154 return spvtools::DiagnosticStream({0, 0, _.instruction_count}, consumer_,
155 "", error);
156 }
157
158 // Returns a diagnostic stream object with the default parse error code.
159 spvtools::DiagnosticStream diagnostic() {

Callers 7

encodeImmediateFunction · 0.45
spvTextEncodeOperandFunction · 0.45
spvTextEncodeOpcodeFunction · 0.45
GetNumericIdsFunction · 0.45
spvTextToBinaryInternalFunction · 0.45

Calls 1

DiagnosticStreamClass · 0.85

Tested by

no test coverage detected