Unable to AST Match on Subclasses of TypeLoc

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Unable to AST Match on Subclasses of TypeLoc

Sumner, Brian via cfe-dev
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

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Loading...