[cfe-dev] How to get argument names from clang::CallExpr?

Kenth Eriksson via cfe-dev cfe-dev at lists.llvm.org
Tue Oct 22 00:06:56 PDT 2019


Hi!



How can I retrieve the argument names from a clang::CallExpr? I was trying something along the following lines, but the dyn_cast returns null.



const auto *dr = clang::dyn_cast<clang::DeclRefExpr>(expr->getArg(0));

auto name = dr->getDecl()->getName().str();



Thanks,

Kenth

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20191022/7ce7a095/attachment.html>


More information about the cfe-dev mailing list