MCPcopy Create free account
hub / github.com/bytedance/bolt / useTypeName

Function useTypeName

bolt/expression/fuzzer/ExpressionFuzzer.cpp:467–479  ·  view source on GitHub ↗

Determine whether the signature has an argument or return type that contains typeName. typeName should be in lower case.

Source from the content-addressed store, hash-verified

465// Determine whether the signature has an argument or return type that
466// contains typeName. typeName should be in lower case.
467bool useTypeName(
468 const exec::FunctionSignature& signature,
469 const std::string& typeName) {
470 if (containTypeName(signature.returnType(), typeName)) {
471 return true;
472 }
473 for (const auto& argument : signature.argumentTypes()) {
474 if (containTypeName(argument, typeName)) {
475 return true;
476 }
477 }
478 return false;
479}
480
481bool isSupportedSignature(
482 const exec::FunctionSignature& signature,

Callers 1

isSupportedSignatureFunction · 0.85

Calls 1

containTypeNameFunction · 0.85

Tested by

no test coverage detected