I can’t seem to get any of:
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.