[cxxtags_query] Changed the way to decide the USR.
[test] added test for cxxtags_query.
[cxxtags_query] Suppress duplicated output.