CXXBaseOrMemberInitializer ctor path


I'd like to trace the constructor call sequence from a CXXConstructExpr. I get the CXXConstructorDecl and then recursively examine its bases for CXXBaseOrMemberInitializer.

These reveal the base classes whose constructors are subsequently invoked (through ::getBaseClass()), but not the constructor itself. Are the overloads resolved in the AST or is this analysis handled elsewhere?


Hi, you can get the nested CXXConstructExpr through
CXXBaseOrMemberInitializer::getInit() and extract the constructor from