[cfe-dev] From QualType to clang::NamedDecl?

Jay Wang frefire at gmail.com
Tue Mar 17 06:38:42 PDT 2015


Hi all:

I am wondering if there is an interface for locating clang::NamedDecl for a
QualType?
example:
  struct foo { int a; int b; };
  void bar(struct foo param);

>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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150317/bf6a8ec0/attachment.html>


More information about the cfe-dev mailing list