Unable to AST Match on Subclasses of TypeLoc

Hi All,

I can’t seem to get any of:
pointeeLoc()
hasElementTypeLoc()
hasValueTypeLoc()
to compile. For instance,

TypeLocMatcher M = pointeeLoc(loc(pointerType()));

fails to compile with the error "no member named ‘getPointeeLoc’ in ‘clang::TypeLoc’. Moreover, it seems I cannot write my own AST matchers which return subclasses of TypeLoc. ast_type_traits::DynTypedNode::BaseCoverter appears to be undefined for subclasses of TypeLoc.

Any help would be much appreciated.

Thanks,

Scott Constable