I am dealing with the following problem:
Given a number of source code written in C. They are scanned with CppCheck and the output is the CppCheck XML output format. The output per each error found is simply:
error: $filePath, $lineNumber
Question: I would like to find the function name in C that this $lineNumber belongs to.
Is it possible to retrieve this information from CppCheck
somehow? Is it possible to implement a Java
code to retrieve this information?
Any comment, idea or suggestion is appreciated. Thank you!