If the node is within a class or namespace, do not use its full
qualified name, but strip the namespace prefix.
+Ben who I believe had written a similar function once.
"If the is ..." doesn't parse.
There's some similar code in tools/clang/lib/Tooling/Core/Lookup.cpp, it might make sense to share it. Otherwise this looks good.
Please rebase, it doesn't apply cleanly anymore.
You don't need to check both NamespaceDecl and TagDecl, since you can just do one if with a NamedDecl.
only use Enums as namespace prefix in C++11
FunctionDecl should not be used for example
Oh yeah, makes sense.