We are planning to build a tool which takes compilable C++ source file and a number as input and outputs name of the function for which the line number belongs to.
IDEs have folding\unfolding support of functions. Meaning, they are able to parse the file and know the starting line number and ending line numbers of all functions within the file. But I think IDEs dont expose any APIs to use those functionalities outside.
Is there any tool/framework available which is exposing APIs to achieve this functionality.
Thanks...