<div dir="ltr">Hi guys,<div><br></div><div>In a FunctionDecl with body, I want to get all the argument names and types.</div><div><br></div><div>I am able to get these on console by printing to llvm::errs() as following</div>
<div><br></div><div><div><b>llvm::errs() << f->getParamDecl(i)->getOriginalType().getAsString() << "\n";</b></div><div><b>llvm::errs() << *f->getParamDecl(i)<< "\n";</b><br>
</div><div><br></div><div>The first one is a string. However, I can not get the string for argument name. Though, I am able to successfully print it using llvm::errs().</div><div><br></div><div>Can someone please help me with it? If I can write it to some file stream, that would also work.</div>
<div><br></div><div>I looked at ParmVarDecl but I didn't find anything useful to achieve it.</div><div><br></div>-- <br>Thanks and regards,<br>Sandeep K Chaudhary.
</div></div>