Dependent types are always unexposed
- cppast version: latest one
- parser:
libclang_parser - clang version: 3.9.1+
The type cpp_depedent_type will never be created, instead a cpp_unexposed_type.
I'm using cppast to generate serialize code of cpp classes, Is there any way I can get the base classes of a class?
What do you mean by anchors? If you want the base classes, they're available via the bases() member function of cpp_class.
Yep, that's what I want, thank you.
how to recognize abstract class?
You have to detect it manually. Loop over members and check whether member functions, conversion operators and destructors are pure virtual by is_pure(func.virtual_info()).
how to get namespace of a class?
Loop over the parents and handle cpp_namespace.
@foonathan thank you