I am using clang 3.8.1 libtooling library. I have written visitor for c++ auto types. When I try to get the deduced type I get NULL-TYPE.
Did anybody face a similar issue? Please enlighten me on auto type deduction in clang as it is leading me nowhere.
sample code:
bool ASTPrinter::VisitAutoTypeLoc(AutoTypeLoc TL) {
std::string deducedTypeSig = TL.getType().getAsString();
if (TL.getTypePtr()->isDeduced()) {
deducedTypeSig = TL.getTypePtr()->getDeducedType().getAsString();
}
}