danmar/cppcheck — comment on commit 4342fd254ca2d77e76b700e6b00dccf3e4fd2f61
File: lib/checkstl.cpp line 1037
By reif:

This check doesn't use the symbol database. If it did and iteratored over all functions, the return type would be available. Other checks check the return type from the symbol database. The return type is the token before the function name token and any namespace qualification. The only trickey case is functions returning function pointers.

Code in other checks that check the return type should be refactored to move that code into the symbol database so the start and end tokens of the type could be saved just like variable type info is stored now.