[cfe-dev] lookup from AST
Axel Naumann
Axel.Naumann at cern.ch
Tue Oct 13 06:04:58 PDT 2009
Hi,
I need to access reflection gathered from some C++ code, e.g. which
classes are defined, what data members does class "MyClass" have. My
naive approach was to parse the source and query the resulting
ASTContext using Sema, i.e. lookup "MyClass" and walk its decls. But
Sema is a non-public API, which makes me wonder whether this is the
right approach.
Is it?
Cheers, Axel.
More information about the cfe-dev
mailing list