| 71 | } |
| 72 | |
| 73 | void 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 | |
| 88 | char* Demangle::demangle(const char* s, bool full_signature) { |
| 89 | if (isRustSymbol(s)) { |
nothing calls this directly
no outgoing calls
no test coverage detected