representation of C++ by clang
I would like to know which classes clang uses to represent C++(not C) source information
I need the internal represe开发者_开发问答ntation ,that can be useful in the DWARF(http://en.wikipedia.org/wiki/DWARF) .For example for the type the relevant info could be :size in bytes of this type,byte alignment of this type etc
I have downloaded LLVM + Clang. I have looked at http://clang.llvm.org/docs/InternalsManual.html but didn't found my answer so could someone direct me maybe I missed something and tell me in which classes I have to start looking for this data?
I think you should look at the AST Library since the AST (Abstract Syntax Tree) is used to represent parsed information. If you want to learn by example, the Clang Static Analyzer might be of interest for you, because it parses the C source and performs static code checks to find bugs.
精彩评论