The ending line number field for functions is not being captured in the DOM. There is a callback in the CDTParser.java called exitFunctionBody that probably could be used to do this.
*** This bug has been marked as a duplicate of 3554 ***