MCPcopy Create free account
hub / github.com/GPUOpen-Tools/GPU-Reshape / ParseString

Method ParseString

Source/Test/Device/Generator/Source/Parser.cpp:503–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503bool Parser::ParseString(Parser::Context &context, std::string_view *out) {
504 if (context.Tok().type != TokenType::String) {
505 context.Error("Expected string");
506 return false;
507 }
508
509 *out = context.Next().str;
510 return true;
511}
512
513bool Parser::ParseInt(Parser::Context &context, int64_t* out) {
514 if (context.Tok().type != TokenType::Int) {

Callers

nothing calls this directly

Calls 3

TokMethod · 0.80
ErrorMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected