<div>I want to judge whether a function take reference parameters. the sample code as "void m(int& a){}", the <b>a</b> is referenced! </div><div>I use the following code to access this, but it can't, whats wrong with me?</div><blockquote formatblock="1" style="margin: 0.8em 0px 0.8em 2em; padding: 0px 0px 0px 0.7em; border-left: 2px solid rgb(221, 221, 221);">   <i>FunctionDecl *funDecl = callExpr->getDirectCallee();<br></i><i>   ParmVarDecl* decl = funDecl->getParamDecl(i);//i=0<br></i><i>   if(decl->getType()->isReferenceType()) {// I use this to judge parameter a is referenced, but cannt!!!<br></i><i>           myfile<<"---Ref type:"<<argNames[i]<<endl;<br></i><i>    }</i></blockquote><div><i></i></div>