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 FunctionMover.cc in https://github.com/lanl/CoARCT 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!