Semantic plugin: handling pointers and references