<div dir="ltr"><div><div><div><div>Hi all:<br><br></div>I am wondering if there is an interface for locating clang::NamedDecl for a QualType?<br></div>example:<br></div>  struct foo { int a; int b; };<br></div><div>  void bar(struct foo param);<br><br></div><div>From ASTConsumer::HandleTopLevelDecl, I can get a QualType of struct foo as a paramter from function bar, so how do I track back to the definition of foo, which has a type of clang::NamedDecl?<br></div></div>