Libclang: Get Symbol (e.g. function) at SourceLocation

  automated-refactoring, c++, libclang, libtooling

I want to write a refactor tool, where I want to move the function at the cursor(cursor is in the function name) to the source file.

I found the in which is a good starting point to move the function.
However, I cannot find anything how to get the symbol (i.e. in my case function) from a file:line:column (or file:offset) combination.
I imagine this should be quite easy with the AST, SourceManager and libtooling of clang, but I cannot find anything about it.

Thanks for any help in advance!

Source: Windows Questions C++