MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / cutArguments

Method cutArguments

src/demangle.cpp:73–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void Demangle::cutArguments(char* s) {
74 char* p = strrchr(s, ')');
75 if (p == NULL) return;
76
77 int balance = 1;
78 while (--p > s) {
79 if (*p == '(' && --balance == 0) {
80 *p = 0;
81 return;
82 } else if (*p == ')') {
83 balance++;
84 }
85 }
86}
87
88char* Demangle::demangle(const char* s, bool full_signature) {
89 if (isRustSymbol(s)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected