We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01751cc commit 62150a1Copy full SHA for 62150a1
TreeVisitor.cpp
@@ -14,11 +14,14 @@ bool TreeVisitor::VisitFunctionDecl(clang::FunctionDecl *func) {
14
std::string retType = typeTranslator.Translate(func->getReturnType());
15
std::string params = "";
16
17
+ int anonCounter = 0;
18
+
19
for (const clang::ParmVarDecl* parm : func->parameters()){
20
//Handle default values
21
std::string pname = handleReservedWords(parm->getNameAsString());
22
23
if(pname == ""){
- pname = "anonymous";
24
+ pname = "anonymous" + std::to_string(anonCounter++);
25
}
26
27
params += pname;
0 commit comments