Skip to content

Commit 97a1644

Browse files
committed
find problem
1 parent 06642f0 commit 97a1644

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

server/src/Tests.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ namespace tests {
548548
[[nodiscard]] static MethodDescription fromFunctionInfo(const types::FunctionInfo& fInfo) {
549549
MethodDescription method;
550550
method.name = fInfo.name;
551+
method.callName;
551552
method.returnType = fInfo.returnType;
552553
for (const auto& param: fInfo.params) {
553554
method.params.emplace_back(param.type, param.name, std::nullopt);

server/src/printers/Printer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ namespace printer {
392392
bool makeStatic) {
393393
auto methodCopy = method;
394394
methodCopy.name = method.name;
395+
methodCopy.callName = method.callName;
395396

396397
std::string stubSymbolicVarName = getStubSymbolicVarName(nameForStub);
397398
if (!types::TypesHandler::omitMakeSymbolic(method.returnType)) {
@@ -400,11 +401,14 @@ namespace printer {
400401
types::PointerUsage::PARAMETER);
401402
}
402403

404+
// TODO delete copy paste
403405
if (!prefix.empty()) {
404406
methodCopy.name = prefix + "_" + methodCopy.name;
407+
methodCopy.callName = prefix + "_" + methodCopy.callName;
405408
}
406409
if (!suffix.empty()) {
407410
methodCopy.name += "_" + suffix;
411+
methodCopy.callName += "_" + suffix;
408412
}
409413
std::vector<std::string> modifiers;
410414
if (makeStatic) {

0 commit comments

Comments
 (0)