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

Method helpMessage

bolt/core/SimpleFunctionMetadata.h:439–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437 }
438
439 std::string helpMessage(const std::string& name) const final {
440 // return fmt::format("{}({})", name, signature_->toString());
441 std::string s{name};
442 s.append("(");
443 bool first = true;
444 for (auto& arg : signature_->argumentTypes()) {
445 if (!first) {
446 s.append(", ");
447 }
448 first = false;
449 s.append(boost::algorithm::to_upper_copy(arg.toString()));
450 }
451
452 if (isVariadic()) {
453 s.append("...");
454 }
455
456 s.append(")");
457 return s;
458 }
459
460 private:
461 struct SignatureTypesAnalysisResults {

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected