MCPcopy Create free account
hub / github.com/Cambricon/mlu-ops / MakeCheckOpValueString

Function MakeCheckOpValueString

core/logging.cpp:191–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189
190template <>
191void MakeCheckOpValueString(std::ostream* os, const char& v) {
192 if (v >= 32 && v <= 126) {
193 (*os) << "'" << v << "'";
194 } else {
195 (*os) << "char value " << static_cast<short>(v); // NOLINT
196 }
197}
198
199template <>
200void MakeCheckOpValueString(std::ostream* os, const signed char& v) { // NOLINT

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected